Previous 199869 Revisions Next

r18342 Sunday 7th October, 2012 at 21:35:43 UTC by smf
added atn to scsicb for completeness & renamed reset line to rst. (nw)
[src/emu/machine]scsibus.c scsibus.h scsicb.c scsicb.h
[src/mess/drivers]bullet.c rmnimbus.c v1050.c
[src/mess/machine]abc_hdc.c abc_xebec.c d9060.c e01.c lux4105.c

trunk/src/emu/machine/scsicb.c
r18341r18342
2525   out_msg_func.resolve(_out_msg_func, *this);
2626   out_req_func.resolve(_out_req_func, *this);
2727   out_ack_func.resolve(_out_ack_func, *this);
28   out_atn_func.resolve(_out_atn_func, *this);
2829   out_rst_func.resolve(_out_rst_func, *this);
2930}
3031
r18341r18342
6970READ_LINE_MEMBER( scsicb_device::scsi_msg_r ) { return get_scsi_line(SCSI_LINE_MSG); }
7071READ_LINE_MEMBER( scsicb_device::scsi_req_r ) { return get_scsi_line(SCSI_LINE_REQ); }
7172READ_LINE_MEMBER( scsicb_device::scsi_ack_r ) { return get_scsi_line(SCSI_LINE_ACK); }
72READ_LINE_MEMBER( scsicb_device::scsi_rst_r ) { return get_scsi_line(SCSI_LINE_RESET); }
73READ_LINE_MEMBER( scsicb_device::scsi_atn_r ) { return get_scsi_line(SCSI_LINE_ATN); }
74READ_LINE_MEMBER( scsicb_device::scsi_rst_r ) { return get_scsi_line(SCSI_LINE_RST); }
7375
7476WRITE_LINE_MEMBER( scsicb_device::scsi_bsy_w ) { set_scsi_line(SCSI_LINE_BSY, state); }
7577WRITE_LINE_MEMBER( scsicb_device::scsi_sel_w ) { set_scsi_line(SCSI_LINE_SEL, state); }
r18341r18342
7880WRITE_LINE_MEMBER( scsicb_device::scsi_msg_w ) { set_scsi_line(SCSI_LINE_MSG, state); }
7981WRITE_LINE_MEMBER( scsicb_device::scsi_req_w ) { set_scsi_line(SCSI_LINE_REQ, state); }
8082WRITE_LINE_MEMBER( scsicb_device::scsi_ack_w ) { set_scsi_line(SCSI_LINE_ACK, state); }
81WRITE_LINE_MEMBER( scsicb_device::scsi_rst_w ) { set_scsi_line(SCSI_LINE_RESET, state); }
83WRITE_LINE_MEMBER( scsicb_device::scsi_atn_w ) { set_scsi_line(SCSI_LINE_ATN, state); }
84WRITE_LINE_MEMBER( scsicb_device::scsi_rst_w ) { set_scsi_line(SCSI_LINE_RST, state); }
8285
8386const device_type SCSICB = &device_creator<scsicb_device>;
trunk/src/emu/machine/scsicb.h
r18341r18342
3232   devcb_write_line _out_msg_func;
3333   devcb_write_line _out_req_func;
3434   devcb_write_line _out_ack_func;
35   devcb_write_line _out_atn_func;
3536   devcb_write_line _out_rst_func;
3637};
3738
r18341r18342
4950   devcb_resolved_write_line out_msg_func;
5051   devcb_resolved_write_line out_req_func;
5152   devcb_resolved_write_line out_ack_func;
53   devcb_resolved_write_line out_atn_func;
5254   devcb_resolved_write_line out_rst_func;
5355
5456   UINT8 scsi_data_r();
r18341r18342
6769   DECLARE_READ_LINE_MEMBER( scsi_msg_r );
6870   DECLARE_READ_LINE_MEMBER( scsi_req_r );
6971   DECLARE_READ_LINE_MEMBER( scsi_ack_r );
72   DECLARE_READ_LINE_MEMBER( scsi_atn_r );
7073   DECLARE_READ_LINE_MEMBER( scsi_rst_r );
7174
7275   DECLARE_WRITE_LINE_MEMBER( scsi_bsy_w );
r18341r18342
7679   DECLARE_WRITE_LINE_MEMBER( scsi_msg_w );
7780   DECLARE_WRITE_LINE_MEMBER( scsi_req_w );
7881   DECLARE_WRITE_LINE_MEMBER( scsi_ack_w );
82   DECLARE_WRITE_LINE_MEMBER( scsi_atn_w );
7983   DECLARE_WRITE_LINE_MEMBER( scsi_rst_w );
8084
8185protected:
trunk/src/emu/machine/scsibus.c
r18341r18342
168168
169169   switch (lineno)
170170   {
171      case SCSI_LINE_BSY:   result=(linestate & (1<<SCSI_LINE_BSY)) >> SCSI_LINE_BSY; break;
171172      case SCSI_LINE_SEL:   result=(linestate & (1<<SCSI_LINE_SEL)) >> SCSI_LINE_SEL; break;
172      case SCSI_LINE_BSY:   result=(linestate & (1<<SCSI_LINE_BSY)) >> SCSI_LINE_BSY; break;
173      case SCSI_LINE_REQ:   result=(linestate & (1<<SCSI_LINE_REQ)) >> SCSI_LINE_REQ; break;
174      case SCSI_LINE_ACK:   result=(linestate & (1<<SCSI_LINE_ACK)) >> SCSI_LINE_ACK; break;
175173      case SCSI_LINE_CD:    result=(linestate & (1<<SCSI_LINE_CD )) >> SCSI_LINE_CD; break;
176174      case SCSI_LINE_IO:    result=(linestate & (1<<SCSI_LINE_IO )) >> SCSI_LINE_IO; break;
177175      case SCSI_LINE_MSG:   result=(linestate & (1<<SCSI_LINE_MSG)) >> SCSI_LINE_MSG; break;
178      case SCSI_LINE_RESET: result=(linestate & (1<<SCSI_LINE_RESET)) >> SCSI_LINE_RESET; break;
176      case SCSI_LINE_REQ:   result=(linestate & (1<<SCSI_LINE_REQ)) >> SCSI_LINE_REQ; break;
177      case SCSI_LINE_ACK:   result=(linestate & (1<<SCSI_LINE_ACK)) >> SCSI_LINE_ACK; break;
178      case SCSI_LINE_ATN:   result=(linestate & (1<<SCSI_LINE_ATN)) >> SCSI_LINE_MSG; break;
179      case SCSI_LINE_RST:   result=(linestate & (1<<SCSI_LINE_RST)) >> SCSI_LINE_RST; break;
179180   }
180181
181182   LOG(3,"get_scsi_line(%s)=%d\n",linenames[lineno],result);
r18341r18342
328329   void *hdfile;
329330
330331   // Reset aborts and returns to bus free
331   if((line==SCSI_LINE_RESET) && (state==0))
332   if((line==SCSI_LINE_RST) && (state==0))
332333   {
333334      scsi_change_phase(SCSI_PHASE_BUS_FREE);
334335      cmd_idx=0;
r18341r18342
500501      case SCSI_LINE_MSG: m_scsicb->out_msg_func(state); break;
501502      case SCSI_LINE_REQ: m_scsicb->out_req_func(state); break;
502503      case SCSI_LINE_ACK: m_scsicb->out_ack_func(state); break;
503      case SCSI_LINE_RESET: m_scsicb->out_rst_func(state); break;
504      case SCSI_LINE_ATN: m_scsicb->out_atn_func(state); break;
505      case SCSI_LINE_RST: m_scsicb->out_rst_func(state); break;
504506      }
505507   }
506508}
trunk/src/emu/machine/scsibus.h
r18341r18342
2424    CONSTANTS
2525***************************************************************************/
2626
27#define SCSI_LINE_SEL   0
28#define SCSI_LINE_BSY   1
29#define SCSI_LINE_REQ   2
30#define SCSI_LINE_ACK   3
31#define SCSI_LINE_CD    4
32#define SCSI_LINE_IO    5
33#define SCSI_LINE_MSG   6
34#define SCSI_LINE_RESET 7
27#define SCSI_LINE_BSY   0
28#define SCSI_LINE_SEL   1
29#define SCSI_LINE_CD    2
30#define SCSI_LINE_IO    3
31#define SCSI_LINE_MSG   4
32#define SCSI_LINE_REQ   5
33#define SCSI_LINE_ACK   6
34#define SCSI_LINE_ATN   7
35#define SCSI_LINE_RST   8
3536
3637#define REQ_DELAY_NS    90
3738#define ACK_DELAY_NS    90
trunk/src/mess/drivers/v1050.c
r18341r18342
993993   DEVCB_NULL,
994994   DEVCB_NULL,
995995   DEVCB_NULL,
996   DEVCB_NULL,
996997   DEVCB_NULL
997998};
998999
trunk/src/mess/drivers/rmnimbus.c
r18341r18342
9393   DEVCB_DRIVER_LINE_MEMBER(rmnimbus_state, nimbus_scsi_msg_w),
9494   DEVCB_DRIVER_LINE_MEMBER(rmnimbus_state, nimbus_scsi_req_w),
9595   DEVCB_NULL,
96   DEVCB_NULL,
9697   DEVCB_NULL
9798};
9899
trunk/src/mess/drivers/bullet.c
r18341r18342
10471047   DEVCB_NULL,
10481048   DEVCB_DRIVER_LINE_MEMBER(bulletf_state, req_w),
10491049   DEVCB_NULL,
1050   DEVCB_NULL,
10501051   DEVCB_NULL
10511052};
10521053
trunk/src/mess/machine/e01.c
r18341r18342
292292   DEVCB_NULL,
293293   DEVCB_DEVICE_LINE_MEMBER("^^", e01_device, scsi_req_w),
294294   DEVCB_NULL,
295   DEVCB_NULL,
295296   DEVCB_NULL
296297};
297298
trunk/src/mess/machine/lux4105.c
r18341r18342
7373   DEVCB_NULL,
7474   DEVCB_DEVICE_LINE_MEMBER("^^", luxor_4105_device, sasi_req_w),
7575   DEVCB_NULL,
76   DEVCB_NULL,
7677   DEVCB_NULL
7778};
7879
trunk/src/mess/machine/d9060.c
r18341r18342
155155   DEVCB_NULL,
156156   DEVCB_DEVICE_LINE_MEMBER("^^", base_d9060_device, req_w),
157157   DEVCB_NULL,
158   DEVCB_NULL,
158159   DEVCB_NULL
159160};
160161
trunk/src/mess/machine/abc_hdc.c
r18341r18342
100100   DEVCB_NULL,
101101   DEVCB_NULL,
102102   DEVCB_NULL,
103   DEVCB_NULL,
103104   DEVCB_NULL
104105};
105106
trunk/src/mess/machine/abc_xebec.c
r18341r18342
9393   DEVCB_NULL,
9494   DEVCB_NULL,
9595   DEVCB_NULL,
96   DEVCB_NULL,
9697   DEVCB_NULL
9798};
9899

Previous 199869 Revisions Next


© 1997-2024 The MAME Team