Previous 199869 Revisions Next

r18388 Tuesday 9th October, 2012 at 19:01:31 UTC by smf
removed some old commented out code (nw)
[src/emu/machine]scsihle.c scsihle.h

trunk/src/emu/machine/scsihle.c
r18387r18388
1818   scsidev_device::device_start();
1919
2020   //req_timer = timer_alloc(0);
21   //ack_timer = timer_alloc(1);
2221   sel_timer = timer_alloc(2);
2322   dataout_timer = timer_alloc(3);
2423
r18387r18388
162161
163162#define BSY_DELAY_NS    50
164163//#define REQ_DELAY_NS    90
165//#define ACK_DELAY_NS    90
166164
167165static const char *const phasenames[] =
168166{
r18387r18388
220218
221219#define LOG(level,...)      if(LOGLEVEL>=level) logerror(__VA_ARGS__)
222220
223//static const char *const linenames[] =
224//{
225//  "select", "busy", "request", "acknoledge", "C/D", "I/O", "message", "reset"
226//};
227
228//void scsibus_device::set_scsi_line(UINT8 line, UINT8 state)
229//{
230//  UINT8 changed = linestate[line] != state;
231//
232//  LOG(3,"set_scsi_line(%s,%d), changed=%d\n",linenames[line],state,changed);
233//
234//  if(changed)
235//  {
236//      if (line==SCSI_LINE_ACK)
237//          set_scsi_line_ack(state);
238//      else
239//          set_scsi_line_now(line,state);
240//  }
241//}
242//
243//void scsibus_device::set_scsi_line_now( UINT8 line, UINT8 state )
244//{
245//  if( linestate[ line ] != state )
246//  {
247//      linestate[ line ] = state;
248//
249//      for( int i = 0; i < deviceCount; i++ )
250//      {
251//          devices[ i ]->scsi_in_line_changed( line, state );
252//      }
253//  }
254//}
255//
256//void scsibus_device::set_scsi_line_ack(UINT8 state)
257//{
258//  ack_timer->adjust(attotime::from_nsec(ACK_DELAY_NS),state);
259//}
260//
261221//void scsibus_device::scsi_out_line_change(UINT8 line, UINT8 state)
262222//{
263223//  if(line==SCSI_LINE_REQ)
r18387r18388
266226//      scsi_out_line_change_now(line,state);
267227//}
268228//
269//void scsibus_device::scsi_out_line_change_now(UINT8 line, UINT8 state)
270//{
271//  if( linestate[ line ] != state )
272//  {
273//      linestate[ line ] = state;
274//
275//      LOG(3,"scsi_out_line_change(%s,%d)\n",linenames[line],state);
276//  }
277//}
278//
279229//void scsibus_device::scsi_out_line_req(UINT8 state)
280230//{
281231//  req_timer->adjust(attotime::from_nsec(REQ_DELAY_NS),state);
r18387r18388
341291//  case 0:
342292//      scsi_out_line_change_now(SCSI_LINE_REQ, param);
343293//      break;
344//
345//  case 1:
346//      set_scsi_line_now(SCSI_LINE_ACK, param);
347//      break;
348294
349295   case 2:
350296      scsi_out(param * SCSI_MASK_BSY, SCSI_MASK_BSY);
trunk/src/emu/machine/scsihle.h
r18387r18388
5353   void dump_bytes(UINT8 *buff, int count);
5454
5555   //emu_timer *req_timer;
56   //emu_timer *ack_timer;
5756   emu_timer *sel_timer;
5857   emu_timer *dataout_timer;
5958

Previous 199869 Revisions Next


© 1997-2024 The MAME Team