src/mess/machine/pclpt.c
| r4286 | r4287 | |
| 1 | | /* |
| 2 | | pc parallel port/centronics interface |
| 3 | | |
| 4 | | started as some ttl's, is now available on several multi io chips |
| 5 | | */ |
| 6 | | |
| 7 | | |
| 8 | | #include "driver.h" |
| 9 | | #include "memconv.h" |
| 10 | | #include "includes/pclpt.h" |
| 11 | | #include "machine/centroni.h" |
| 12 | | |
| 13 | | |
| 14 | | #define LOG(LEVEL,N,M,A) \ |
| 15 | | do { \ |
| 16 | | if( M ) \ |
| 17 | | logerror("%11.6f: %-24s",attotime_to_double(timer_get_time(machine)),(char*)M ); \ |
| 18 | | logerror A; \ |
| 19 | | } while (0) |
| 20 | | |
| 21 | | |
| 22 | | #define VERBOSE_LPT 1 |
| 23 | | |
| 24 | | #define LPT_LOG(n,m,a) LOG(VERBOSE_LPT,n,m,a) |
| 25 | | |
| 26 | | #define STATUS_NOT_BUSY 0x80 |
| 27 | | #define STATUS_ACKNOWLEDGE 0x40 |
| 28 | | #define STATUS_NO_PAPER 0x20 |
| 29 | | #define STATUS_ONLINE 0x10 |
| 30 | | #define STATUS_NO_ERROR 8 |
| 31 | | |
| 32 | | #define CONTROL_SELECT 8 |
| 33 | | #define CONTROL_NO_RESET 4 |
| 34 | | #define CONTROL_AUTOLINEFEED 2 |
| 35 | | #define CONTROL_STROBE 1 |
| 36 | | #define CONTROL_IRQ 0x10 |
| 37 | | |
| 38 | | typedef struct { |
| 39 | | const CENTRONICS_DEVICE *device; |
| 40 | | const PC_LPT_CONFIG *config; |
| 41 | | int on; |
| 42 | | UINT8 data; |
| 43 | | UINT8 status; |
| 44 | | UINT8 control; |
| 45 | | } PC_LPT; |
| 46 | | static PC_LPT LPT[3]= { |
| 47 | | { 0 } |
| 48 | | }; |
| 49 | | |
| 50 | | void pc_lpt_config(int nr, const PC_LPT_CONFIG *config) |
| 51 | | { |
| 52 | | PC_LPT *This=LPT+nr; |
| 53 | | This->config=config; |
| 54 | | } |
| 55 | | |
| 56 | | void pc_lpt_set_device(int nr, const CENTRONICS_DEVICE *device) |
| 57 | | { |
| 58 | | PC_LPT *This=LPT+nr; |
| 59 | | This->device=device; |
| 60 | | } |
| 61 | | |
| 62 | | static void pc_LPT_w(running_machine *machine, int n, int offset, int data) |
| 63 | | { |
| 64 | | PC_LPT *This=LPT+n; |
| 65 | | if ( !(input_port_read(machine, "DSW1") & (0x08>>n)) ) return; |
| 66 | | // if (!This->on) return; |
| 67 | | switch( offset ) |
| 68 | | { |
| 69 | | case 0: |
| 70 | | if (This->device->write_data) |
| 71 | | This->device->write_data(machine, n, data); |
| 72 | | This->data = data; |
| 73 | | LPT_LOG(1,"LPT_data_w",("LPT%d $%02x\n", n, data)); |
| 74 | | break; |
| 75 | | case 1: |
| 76 | | LPT_LOG(1,"LPT_status_w",("LPT%d $%02x\n", n, data)); |
| 77 | | break; |
| 78 | | case 2: |
| 79 | | This->control = data; |
| 80 | | LPT_LOG(1,"LPT_control_w",("%d $%02x\n", n, data)); |
| 81 | | if (This->device->handshake_out) { |
| 82 | | int lines=0; |
| 83 | | if (data&CONTROL_SELECT) lines|=CENTRONICS_SELECT; |
| 84 | | if (data&CONTROL_NO_RESET) lines|=CENTRONICS_NO_RESET; |
| 85 | | if (data&CONTROL_AUTOLINEFEED) lines|=CENTRONICS_AUTOLINEFEED; |
| 86 | | if (data&CONTROL_STROBE) lines|=CENTRONICS_STROBE; |
| 87 | | This->device->handshake_out(machine, n, lines, CENTRONICS_SELECT |
| 88 | | |CENTRONICS_NO_RESET |
| 89 | | |CENTRONICS_AUTOLINEFEED |
| 90 | | |CENTRONICS_STROBE); |
| 91 | | } |
| 92 | | break; |
| 93 | | } |
| 94 | | } |
| 95 | | |
| 96 | | static int pc_LPT_r(running_machine *machine, int n, int offset) |
| 97 | | { |
| 98 | | PC_LPT *This=LPT+n; |
| 99 | | int data = 0xff; |
| 100 | | if ( !(input_port_read(machine, "DSW1") & (0x08>>n)) ) return data; |
| 101 | | // if (!This->on) return data; |
| 102 | | switch( offset ) |
| 103 | | { |
| 104 | | case 0: |
| 105 | | if (This->device->read_data) |
| 106 | | data=This->device->read_data(machine,n); |
| 107 | | else |
| 108 | | data = This->data; |
| 109 | | LPT_LOG(1,"LPT_data_r",("LPT%d $%02x\n", n, data)); |
| 110 | | break; |
| 111 | | case 1: |
| 112 | | if (This->device&&This->device->handshake_in) { |
| 113 | | int lines=This->device->handshake_in(machine,n); |
| 114 | | data=0; |
| 115 | | if (lines&CENTRONICS_NOT_BUSY) data|=STATUS_NOT_BUSY; |
| 116 | | if (lines&CENTRONICS_ACKNOWLEDGE) data|=STATUS_ACKNOWLEDGE; |
| 117 | | if (lines&CENTRONICS_NO_PAPER) data|=STATUS_NO_PAPER; |
| 118 | | if (lines&CENTRONICS_ONLINE) data|=STATUS_ONLINE; |
| 119 | | if (lines&CENTRONICS_NO_ERROR) data|=STATUS_NO_ERROR; |
| 120 | | } else { |
| 121 | | data=0x9c; |
| 122 | | |
| 123 | | #if 0 |
| 124 | | /* set status 'out of paper', '*no* error', 'IRQ has *not* occured' */ |
| 125 | | LPT[n].status = 0x09c; //0x2c; |
| 126 | | |
| 127 | | #endif |
| 128 | | } |
| 129 | | data|=0x4; //? |
| 130 | | |
| 131 | | LPT_LOG(1,"LPT_status_r",("%d $%02x\n", n, data)); |
| 132 | | break; |
| 133 | | case 2: |
| 134 | | // This->control = 0x0c; //? |
| 135 | | data = This->control; |
| 136 | | LPT_LOG(1,"LPT_control_r",("%d $%02x\n", n, data)); |
| 137 | | break; |
| 138 | | } |
| 139 | | return data; |
| 140 | | } |
| 141 | | |
| 142 | | void pc_lpt_handshake_in(running_machine *machine,int nr, int data, int mask) |
| 143 | | { |
| 144 | | PC_LPT *This=LPT+nr; |
| 145 | | int neu=(data&mask)|(This->status&~mask); |
| 146 | | |
| 147 | | if (!(This->control&CONTROL_IRQ) && |
| 148 | | !(This->status&STATUS_ACKNOWLEDGE)&& |
| 149 | | (neu&CENTRONICS_ACKNOWLEDGE)) { |
| 150 | | if (This->config->irq) |
| 151 | | This->config->irq(nr, PULSE_LINE); |
| 152 | | } |
| 153 | | This->status=neu; |
| 154 | | } |
| 155 | | |
| 156 | | READ8_HANDLER ( pc_parallelport0_r) { return pc_LPT_r(space->machine, 0, offset); } |
| 157 | | READ8_HANDLER ( pc_parallelport1_r) { return pc_LPT_r(space->machine, 1, offset); } |
| 158 | | READ8_HANDLER ( pc_parallelport2_r) { return pc_LPT_r(space->machine, 2, offset); } |
| 159 | | WRITE8_HANDLER ( pc_parallelport0_w ) { pc_LPT_w(space->machine, 0, offset, data); } |
| 160 | | WRITE8_HANDLER ( pc_parallelport1_w ) { pc_LPT_w(space->machine, 1, offset, data); } |
| 161 | | WRITE8_HANDLER ( pc_parallelport2_w ) { pc_LPT_w(space->machine, 2, offset, data); } |
| 162 | | |
| 163 | | READ16_HANDLER ( pc16le_parallelport0_r ) { return read16le_with_read8_handler(pc_parallelport0_r, space, offset, mem_mask); } |
| 164 | | READ16_HANDLER ( pc16le_parallelport1_r ) { return read16le_with_read8_handler(pc_parallelport1_r, space, offset, mem_mask); } |
| 165 | | READ16_HANDLER ( pc16le_parallelport2_r ) { return read16le_with_read8_handler(pc_parallelport2_r, space, offset, mem_mask); } |
| 166 | | WRITE16_HANDLER( pc16le_parallelport0_w ) { write16le_with_write8_handler(pc_parallelport0_w, space, offset, data, mem_mask); } |
| 167 | | WRITE16_HANDLER( pc16le_parallelport1_w ) { write16le_with_write8_handler(pc_parallelport1_w, space, offset, data, mem_mask); } |
| 168 | | WRITE16_HANDLER( pc16le_parallelport2_w ) { write16le_with_write8_handler(pc_parallelport2_w, space, offset, data, mem_mask); } |
| 169 | | |
| 170 | | READ32_HANDLER ( pc32le_parallelport0_r ) { return read32le_with_read8_handler(pc_parallelport0_r, space, offset, mem_mask); } |
| 171 | | READ32_HANDLER ( pc32le_parallelport1_r ) { return read32le_with_read8_handler(pc_parallelport1_r, space, offset, mem_mask); } |
| 172 | | READ32_HANDLER ( pc32le_parallelport2_r ) { return read32le_with_read8_handler(pc_parallelport2_r, space, offset, mem_mask); } |
| 173 | | WRITE32_HANDLER( pc32le_parallelport0_w ) { write32le_with_write8_handler(pc_parallelport0_w, space, offset, data, mem_mask); } |
| 174 | | WRITE32_HANDLER( pc32le_parallelport1_w ) { write32le_with_write8_handler(pc_parallelport1_w, space, offset, data, mem_mask); } |
| 175 | | WRITE32_HANDLER( pc32le_parallelport2_w ) { write32le_with_write8_handler(pc_parallelport2_w, space, offset, data, mem_mask); } |
src/mess/machine/pc_lpt.c
| r0 | r4287 | |
| 1 | /***************************************************************************
|
| 2 | |
| 3 | IBM-PC printer interface
|
| 4 | |
| 5 | ***************************************************************************/
|
| 6 | |
| 7 | #include "driver.h"
|
| 8 | #include "pc_lpt.h"
|
| 9 | |
| 10 | |
| 11 | /***************************************************************************
|
| 12 | FUNCTION PROTOTYPES
|
| 13 | ***************************************************************************/
|
| 14 | |
| 15 | static WRITE_LINE_DEVICE_HANDLER( pc_lpt_ack_w );
|
| 16 | |
| 17 | |
| 18 | /***************************************************************************
|
| 19 | TYPE DEFINITIONS
|
| 20 | ***************************************************************************/
|
| 21 | |
| 22 | typedef struct _pc_lpt_state pc_lpt_state;
|
| 23 | struct _pc_lpt_state
|
| 24 | {
|
| 25 | const device_config *centronics;
|
| 26 | |
| 27 | devcb_resolved_write_line out_irq_func;
|
| 28 | |
| 29 | int ack;
|
| 30 | |
| 31 | /* control latch */
|
| 32 | int strobe;
|
| 33 | int autofd;
|
| 34 | int init;
|
| 35 | int select;
|
| 36 | int irq_enabled;
|
| 37 | };
|
| 38 | |
| 39 | |
| 40 | /***************************************************************************
|
| 41 | CENTRONICS INTERFACE
|
| 42 | ***************************************************************************/
|
| 43 | |
| 44 | const centronics_interface pc_centronics_config =
|
| 45 | {
|
| 46 | TRUE,
|
| 47 | DEVCB_LINE(pc_lpt_ack_w),
|
| 48 | DEVCB_NULL,
|
| 49 | DEVCB_NULL
|
| 50 | };
|
| 51 | |
| 52 | |
| 53 | /*****************************************************************************
|
| 54 | INLINE FUNCTIONS
|
| 55 | *****************************************************************************/
|
| 56 | |
| 57 | INLINE pc_lpt_state *get_safe_token(const device_config *device)
|
| 58 | {
|
| 59 | assert(device != NULL);
|
| 60 | assert(device->token != NULL);
|
| 61 | assert(device->type == PC_LPT);
|
| 62 | |
| 63 | return (pc_lpt_state *)device->token;
|
| 64 | }
|
| 65 | |
| 66 | |
| 67 | /***************************************************************************
|
| 68 | DEVICE INTERFACE
|
| 69 | ***************************************************************************/
|
| 70 | |
| 71 | static DEVICE_START( pc_lpt )
|
| 72 | {
|
| 73 | pc_lpt_state *lpt = get_safe_token(device);
|
| 74 | const pc_lpt_interface *intf = device->static_config;
|
| 75 | |
| 76 | /* validate some basic stuff */
|
| 77 | assert(device->static_config != NULL);
|
| 78 | |
| 79 | /* get centronics device */
|
| 80 | lpt->centronics = devtag_get_device(device->machine, CENTRONICS, device->tag);
|
| 81 | assert(lpt->centronics != NULL);
|
| 82 | |
| 83 | /* make sure it's running */
|
| 84 | if (!lpt->centronics->started)
|
| 85 | {
|
| 86 | device_delay_init(device);
|
| 87 | return;
|
| 88 | }
|
| 89 | |
| 90 | /* resolve callbacks */
|
| 91 | devcb_resolve_write_line(&lpt->out_irq_func, &intf->out_irq_func, device);
|
| 92 | |
| 93 | /* register for state saving */
|
| 94 | state_save_register_device_item(device, 0, lpt->ack);
|
| 95 | }
|
| 96 | |
| 97 | static DEVICE_RESET( pc_lpt )
|
| 98 | {
|
| 99 | pc_lpt_state *lpt = get_safe_token(device);
|
| 100 | |
| 101 | lpt->strobe = TRUE;
|
| 102 | lpt->autofd = TRUE;
|
| 103 | lpt->init = FALSE;
|
| 104 | lpt->select = TRUE;
|
| 105 | lpt->irq_enabled = FALSE;
|
| 106 | }
|
| 107 | |
| 108 | static DEVICE_SET_INFO( pc_lpt )
|
| 109 | {
|
| 110 | switch (state)
|
| 111 | {
|
| 112 | /* no parameters to set */
|
| 113 | }
|
| 114 | }
|
| 115 | |
| 116 | DEVICE_GET_INFO( pc_lpt )
|
| 117 | {
|
| 118 | switch (state)
|
| 119 | {
|
| 120 | /* --- the following bits of info are returned as 64-bit signed integers --- */
|
| 121 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(pc_lpt_state); break;
|
| 122 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break;
|
| 123 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break;
|
| 124 | |
| 125 | /* --- the following bits of info are returned as pointers to data or functions --- */
|
| 126 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME( pc_lpt ); break;
|
| 127 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME( pc_lpt ); break;
|
| 128 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 129 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME( pc_lpt ); break;
|
| 130 | |
| 131 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 132 | case DEVINFO_STR_NAME: strcpy(info->s, "PC-LPT"); break;
|
| 133 | case DEVINFO_STR_FAMILY: strcpy(info->s, "Parallel port"); break;
|
| 134 | case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break;
|
| 135 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break;
|
| 136 | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break;
|
| 137 | }
|
| 138 | }
|
| 139 | |
| 140 | |
| 141 | /***************************************************************************
|
| 142 | IMPLEMENTATION
|
| 143 | ***************************************************************************/
|
| 144 | |
| 145 | static WRITE_LINE_DEVICE_HANDLER( pc_lpt_ack_w )
|
| 146 | {
|
| 147 | const device_config *lpt_device = devtag_get_device(device->machine, PC_LPT, device->tag);
|
| 148 | pc_lpt_state *lpt = get_safe_token(lpt_device);
|
| 149 | |
| 150 | if (lpt->irq_enabled && lpt->ack == TRUE && state == FALSE)
|
| 151 | {
|
| 152 | /* pulse irq when going from high to low */
|
| 153 | devcb_call_write_line(&lpt->out_irq_func, TRUE);
|
| 154 | devcb_call_write_line(&lpt->out_irq_func, FALSE);
|
| 155 | }
|
| 156 | |
| 157 | lpt->ack = state;
|
| 158 | }
|
| 159 | |
| 160 | |
| 161 | READ8_DEVICE_HANDLER( pc_lpt_data_r )
|
| 162 | {
|
| 163 | pc_lpt_state *lpt = get_safe_token(device);
|
| 164 | return centronics_data_r(lpt->centronics, 0);
|
| 165 | }
|
| 166 | |
| 167 | |
| 168 | WRITE8_DEVICE_HANDLER( pc_lpt_data_w )
|
| 169 | {
|
| 170 | pc_lpt_state *lpt = get_safe_token(device);
|
| 171 | centronics_data_w(lpt->centronics, 0, data);
|
| 172 | }
|
| 173 | |
| 174 | |
| 175 | READ8_DEVICE_HANDLER( pc_lpt_status_r )
|
| 176 | {
|
| 177 | pc_lpt_state *lpt = get_safe_token(device);
|
| 178 | UINT8 result = 0;
|
| 179 | |
| 180 | result |= centronics_fault_r(lpt->centronics) << 3;
|
| 181 | result |= 1 << 4; /* select */
|
| 182 | result |= !centronics_pe_r(lpt->centronics) << 5;
|
| 183 | result |= centronics_ack_r(lpt->centronics) << 6;
|
| 184 | result |= !centronics_busy_r(lpt->centronics) << 7;
|
| 185 | |
| 186 | return result;
|
| 187 | }
|
| 188 | |
| 189 | |
| 190 | READ8_DEVICE_HANDLER( pc_lpt_control_r )
|
| 191 | {
|
| 192 | pc_lpt_state *lpt = get_safe_token(device);
|
| 193 | UINT8 result = 0;
|
| 194 | |
| 195 | /* return latch state */
|
| 196 | result |= lpt->strobe << 0;
|
| 197 | result |= lpt->autofd << 1;
|
| 198 | result |= lpt->init << 2;
|
| 199 | result |= lpt->select << 3;
|
| 200 | result |= lpt->irq_enabled << 4;
|
| 201 | |
| 202 | return result;
|
| 203 | }
|
| 204 | |
| 205 | |
| 206 | WRITE8_DEVICE_HANDLER( pc_lpt_control_w )
|
| 207 | {
|
| 208 | pc_lpt_state *lpt = get_safe_token(device);
|
| 209 | |
| 210 | logerror("pc_lpt_control_w: 0x%02x\n", data);
|
| 211 | |
| 212 | /* save to latch */
|
| 213 | lpt->strobe = BIT(data, 0);
|
| 214 | lpt->autofd = BIT(data, 1);
|
| 215 | lpt->init = BIT(data, 2);
|
| 216 | lpt->select = BIT(data, 3);
|
| 217 | lpt->irq_enabled = BIT(data, 4);
|
| 218 | |
| 219 | /* output to centronics */
|
| 220 | centronics_strobe_w(lpt->centronics, lpt->strobe);
|
| 221 | centronics_autofeed_w(lpt->centronics, lpt->autofd);
|
| 222 | centronics_init_w(lpt->centronics, lpt->init);
|
| 223 | }
|
| 224 | |
| 225 | |
| 226 | READ8_DEVICE_HANDLER( pc_lpt_r )
|
| 227 | {
|
| 228 | switch (offset)
|
| 229 | {
|
| 230 | case 0: return pc_lpt_data_r(device, 0); break;
|
| 231 | case 1: return pc_lpt_status_r(device, 0); break;
|
| 232 | case 2: return pc_lpt_control_r(device, 0); break;
|
| 233 | }
|
| 234 | |
| 235 | /* if we reach this its an error */
|
| 236 | logerror("PC-LPT %s: Read from invalid offset %x\n", device->tag, offset);
|
| 237 | |
| 238 | return 0xff;
|
| 239 | }
|
| 240 | |
| 241 | |
| 242 | WRITE8_DEVICE_HANDLER( pc_lpt_w )
|
| 243 | {
|
| 244 | switch (offset)
|
| 245 | {
|
| 246 | case 0: pc_lpt_data_w(device, 0, data); break;
|
| 247 | case 1: break;
|
| 248 | case 2: pc_lpt_control_w(device, 0, data); break;
|
| 249 | }
|
| 250 | }
|
src/mess/drivers/at.c
| r4286 | r4287 | |
| 19 | 19 | #include "machine/mc146818.h" |
| 20 | 20 | #include "machine/pic8259.h" |
| 21 | 21 | #include "machine/i82439tx.h" |
| 22 | | #include "devices/printer.h" |
| 23 | 22 | |
| 24 | 23 | #include "machine/pit8253.h" |
| 25 | 24 | #include "video/pc_vga.h" |
| r4286 | r4287 | |
| 34 | 33 | #include "machine/pc_fdc.h" |
| 35 | 34 | #include "machine/pc_joy.h" |
| 36 | 35 | #include "machine/pckeybrd.h" |
| 37 | | #include "includes/pclpt.h" |
| 36 | #include "machine/pc_lpt.h" |
| 38 | 37 | #include "audio/sblaster.h" |
| 39 | 38 | #include "includes/pc_mouse.h" |
| 40 | 39 | |
| r4286 | r4287 | |
| 137 | 136 | AM_RANGE(0x01f0, 0x01f7) AM_READWRITE8(at_mfm_0_r, at_mfm_0_w, 0xffff) |
| 138 | 137 | AM_RANGE(0x0200, 0x0207) AM_READWRITE8(pc_JOY_r, pc_JOY_w, 0xffff) |
| 139 | 138 | AM_RANGE(0x0220, 0x022f) AM_READWRITE8(soundblaster_r, soundblaster_w, 0xffff) |
| 140 | | AM_RANGE(0x0278, 0x027f) AM_READWRITE8(pc_parallelport2_r, pc_parallelport2_w, 0xffff) |
| 139 | AM_RANGE(0x0278, 0x027f) AM_DEVREADWRITE8(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 141 | 140 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8(NS16450, "ns16450_3", ins8250_r, ins8250_w, 0xffff) |
| 142 | 141 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8(NS16450, "ns16450_1", ins8250_r, ins8250_w, 0xffff) |
| 143 | 142 | // AM_RANGE(0x0320, 0x0323) AM_READWRITE8(pc_HDC1_r, pc_HDC1_w, 0xffff) |
| 144 | 143 | // AM_RANGE(0x0324, 0x0327) AM_READWRITE8(pc_HDC2_r, pc_HDC2_w, 0xffff) |
| 145 | | AM_RANGE(0x0378, 0x037f) AM_READWRITE8(pc_parallelport1_r, pc_parallelport1_w, 0xffff) |
| 144 | AM_RANGE(0x0378, 0x037f) AM_DEVREADWRITE8(PC_LPT, "lpt_1", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 146 | 145 | #ifdef ADLIB |
| 147 | 146 | AM_RANGE(0x0388, 0x0388) AM_DEVREADWRITE8(SOUND, "ym3812", ym3812_status_port_r,ym3812_control_port_w, 0xffff) |
| 148 | 147 | AM_RANGE(0x0389, 0x0389) AM_DEVWRITE8(SOUND, "ym3812", ym3812_write_port_w, 0xffff) |
| 149 | 148 | #endif |
| 150 | | AM_RANGE(0x03bc, 0x03bf) AM_READWRITE8(pc_parallelport0_r, pc_parallelport0_w, 0xffff) |
| 149 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 151 | 150 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE8(NS16450, "ns16450_2", ins8250_r, ins8250_w, 0xffff) |
| 152 | 151 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8(pc_fdc_r, pc_fdc_w, 0xffff) |
| 153 | 152 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8(NS16450, "ns16450_0", ins8250_r, ins8250_w, 0xffff) |
| r4286 | r4287 | |
| 163 | 162 | AM_RANGE(0x0080, 0x009f) AM_READWRITE8(at_page8_r, at_page8_w, 0xffffffff) |
| 164 | 163 | AM_RANGE(0x00a0, 0x00bf) AM_DEVREADWRITE8(PIC8259, "pic8259_slave", pic8259_r, pic8259_w, 0xffffffff) |
| 165 | 164 | AM_RANGE(0x00c0, 0x00df) AM_DEVREADWRITE8(DMA8237, "dma8237_2", at_dma8237_1_r, at_dma8237_1_w, 0xffffffff) |
| 166 | | AM_RANGE(0x0278, 0x027f) AM_READWRITE(pc32le_parallelport2_r, pc32le_parallelport2_w) |
| 165 | AM_RANGE(0x0278, 0x027f) AM_DEVREADWRITE8(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w, 0x000000ff) |
| 167 | 166 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8(NS16450, "ns16450_3", ins8250_r, ins8250_w, 0xffffffff) |
| 168 | 167 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8(NS16450, "ns16450_1", ins8250_r, ins8250_w, 0xffffffff) |
| 169 | 168 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc32le_HDC1_r, pc32le_HDC1_w) |
| 170 | 169 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc32le_HDC2_r, pc32le_HDC2_w) |
| 171 | | AM_RANGE(0x0378, 0x037f) AM_READWRITE(pc32le_parallelport1_r, pc32le_parallelport1_w) |
| 170 | AM_RANGE(0x0378, 0x037f) AM_DEVREADWRITE8(PC_LPT, "lpt_1", pc_lpt_r, pc_lpt_w, 0x000000ff) |
| 172 | 171 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8(pc_fdc_r, pc_fdc_w, 0xffffffff) |
| 173 | | AM_RANGE(0x03bc, 0x03bf) AM_READWRITE(pc32le_parallelport0_r, pc32le_parallelport0_w) |
| 172 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w, 0x000000ff) |
| 174 | 173 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8(NS16450, "ns16450_0", ins8250_r, ins8250_w, 0xffffffff) |
| 175 | 174 | ADDRESS_MAP_END |
| 176 | 175 | |
| r4286 | r4287 | |
| 185 | 184 | AM_RANGE(0x0080, 0x009f) AM_READWRITE8(at_page8_r, at_page8_w, 0xffffffff) |
| 186 | 185 | AM_RANGE(0x00a0, 0x00bf) AM_DEVREADWRITE8(PIC8259, "pic8259_slave", pic8259_r, pic8259_w, 0xffffffff) |
| 187 | 186 | AM_RANGE(0x00c0, 0x00df) AM_DEVREADWRITE8(DMA8237, "dma8237_2", at_dma8237_1_r, at_dma8237_1_w, 0xffffffff) |
| 188 | | AM_RANGE(0x0278, 0x027f) AM_READWRITE(pc32le_parallelport2_r, pc32le_parallelport2_w) |
| 187 | AM_RANGE(0x0278, 0x027f) AM_DEVREADWRITE8(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w, 0x000000ff) |
| 189 | 188 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8(NS16450, "ns16450_3", ins8250_r, ins8250_w, 0xffffffff) |
| 190 | 189 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8(NS16450, "ns16450_1", ins8250_r, ins8250_w, 0xffffffff) |
| 191 | 190 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc32le_HDC1_r, pc32le_HDC1_w) |
| 192 | 191 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc32le_HDC2_r, pc32le_HDC2_w) |
| 193 | | AM_RANGE(0x0378, 0x037f) AM_READWRITE(pc32le_parallelport1_r, pc32le_parallelport1_w) |
| 192 | AM_RANGE(0x0378, 0x037f) AM_DEVREADWRITE8(PC_LPT, "lpt_1", pc_lpt_r, pc_lpt_w, 0x000000ff) |
| 194 | 193 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8(pc_fdc_r, pc_fdc_w, 0xffffffff) |
| 195 | | AM_RANGE(0x03bc, 0x03bf) AM_READWRITE(pc32le_parallelport0_r, pc32le_parallelport0_w) |
| 194 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w, 0x000000ff) |
| 196 | 195 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8(NS16450, "ns16450_0", ins8250_r, ins8250_w, 0xffffffff) |
| 197 | 196 | AM_RANGE(0x0cf8, 0x0cff) AM_DEVREADWRITE(PCI_BUS, "pcibus", pci_32le_r, pci_32le_w) |
| 198 | 197 | ADDRESS_MAP_END |
| r4286 | r4287 | |
| 402 | 401 | }; |
| 403 | 402 | #endif |
| 404 | 403 | |
| 404 | static const pc_lpt_interface at_lpt_config = |
| 405 | { |
| 406 | DEVCB_CPU_INPUT_LINE("main", 0) |
| 407 | }; |
| 405 | 408 | |
| 409 | |
| 406 | 410 | static MACHINE_DRIVER_START( ibm5170 ) |
| 407 | 411 | /* basic machine hardware */ |
| 408 | 412 | MDRV_CPU_ADD("main", I80286, 6000000 /*6000000*/) |
| r4286 | r4287 | |
| 454 | 458 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 455 | 459 | |
| 456 | 460 | /* printers */ |
| 457 | | MDRV_PRINTER_ADD("printer1") |
| 458 | | MDRV_PRINTER_ADD("printer2") |
| 459 | | MDRV_PRINTER_ADD("printer3") |
| 461 | MDRV_PC_LPT_ADD("lpt_0", at_lpt_config) |
| 462 | MDRV_PC_LPT_ADD("lpt_1", at_lpt_config) |
| 463 | MDRV_PC_LPT_ADD("lpt_2", at_lpt_config) |
| 460 | 464 | |
| 461 | 465 | /* harddisk */ |
| 462 | 466 | MDRV_IMPORT_FROM( pc_hdc ) |
| 463 | | |
| 467 | |
| 464 | 468 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 465 | 469 | MACHINE_DRIVER_END |
| 466 | 470 | |
| r4286 | r4287 | |
| 512 | 516 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 513 | 517 | |
| 514 | 518 | /* printers */ |
| 515 | | MDRV_PRINTER_ADD("printer1") |
| 516 | | MDRV_PRINTER_ADD("printer2") |
| 517 | | MDRV_PRINTER_ADD("printer3") |
| 519 | MDRV_PC_LPT_ADD("lpt_0", at_lpt_config) |
| 520 | MDRV_PC_LPT_ADD("lpt_1", at_lpt_config) |
| 521 | MDRV_PC_LPT_ADD("lpt_2", at_lpt_config) |
| 518 | 522 | |
| 519 | 523 | /* harddisk */ |
| 520 | 524 | MDRV_IMPORT_FROM( pc_hdc ) |
| 521 | | |
| 525 | |
| 522 | 526 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 523 | 527 | MACHINE_DRIVER_END |
| 524 | 528 | |
| r4286 | r4287 | |
| 577 | 581 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 578 | 582 | |
| 579 | 583 | /* printers */ |
| 580 | | MDRV_PRINTER_ADD("printer1") |
| 581 | | MDRV_PRINTER_ADD("printer2") |
| 582 | | MDRV_PRINTER_ADD("printer3") |
| 584 | MDRV_PC_LPT_ADD("lpt_0", at_lpt_config) |
| 585 | MDRV_PC_LPT_ADD("lpt_1", at_lpt_config) |
| 586 | MDRV_PC_LPT_ADD("lpt_2", at_lpt_config) |
| 583 | 587 | |
| 584 | 588 | /* harddisk */ |
| 585 | 589 | MDRV_IMPORT_FROM( pc_hdc ) |
| 586 | | |
| 590 | |
| 587 | 591 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 588 | 592 | MACHINE_DRIVER_END |
| 589 | 593 | |
| r4286 | r4287 | |
| 644 | 648 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 645 | 649 | |
| 646 | 650 | /* printers */ |
| 647 | | MDRV_PRINTER_ADD("printer1") |
| 648 | | MDRV_PRINTER_ADD("printer2") |
| 649 | | MDRV_PRINTER_ADD("printer3") |
| 651 | MDRV_PC_LPT_ADD("lpt_0", at_lpt_config) |
| 652 | MDRV_PC_LPT_ADD("lpt_1", at_lpt_config) |
| 653 | MDRV_PC_LPT_ADD("lpt_2", at_lpt_config) |
| 650 | 654 | |
| 651 | 655 | /* harddisk */ |
| 652 | 656 | MDRV_IMPORT_FROM( pc_hdc ) |
| 653 | | |
| 657 | |
| 654 | 658 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 655 | 659 | MACHINE_DRIVER_END |
| 656 | 660 | |
| r4286 | r4287 | |
| 708 | 712 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 709 | 713 | |
| 710 | 714 | /* printers */ |
| 711 | | MDRV_PRINTER_ADD("printer1") |
| 712 | | MDRV_PRINTER_ADD("printer2") |
| 713 | | MDRV_PRINTER_ADD("printer3") |
| 715 | MDRV_PC_LPT_ADD("lpt_0", at_lpt_config) |
| 716 | MDRV_PC_LPT_ADD("lpt_1", at_lpt_config) |
| 717 | MDRV_PC_LPT_ADD("lpt_2", at_lpt_config) |
| 714 | 718 | |
| 715 | 719 | /* harddisk */ |
| 716 | 720 | MDRV_IMPORT_FROM( pc_hdc ) |
| 717 | | |
| 721 | |
| 718 | 722 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 719 | 723 | MACHINE_DRIVER_END |
| 720 | 724 | |
src/mess/drivers/pc.c
| r4286 | r4287 | |
| 131 | 131 | #include "machine/pc_fdc.h" |
| 132 | 132 | #include "machine/pc_joy.h" |
| 133 | 133 | #include "machine/pckeybrd.h" |
| 134 | | #include "includes/pclpt.h" |
| 134 | #include "machine/pc_lpt.h" |
| 135 | 135 | #include "audio/sblaster.h" |
| 136 | 136 | #include "includes/pc_mouse.h" |
| 137 | 137 | |
| r4286 | r4287 | |
| 144 | 144 | #include "includes/pc.h" |
| 145 | 145 | |
| 146 | 146 | #include "machine/pc_hdc.h" |
| 147 | | #include "devices/printer.h" |
| 148 | 147 | #include "devices/mflopimg.h" |
| 149 | 148 | #include "devices/harddriv.h" |
| 150 | 149 | #include "devices/cassette.h" |
| r4286 | r4287 | |
| 222 | 221 | AM_RANGE(0x0210, 0x0217) AM_READWRITE(pc_EXP_r, pc_EXP_w) |
| 223 | 222 | #endif |
| 224 | 223 | AM_RANGE(0x0240, 0x0257) AM_READWRITE(pc_rtc_r, pc_rtc_w) |
| 225 | | AM_RANGE(0x0278, 0x027b) AM_READWRITE(pc_parallelport2_r, pc_parallelport2_w) |
| 224 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w) |
| 226 | 225 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE(INS8250, "ins8250_3", ins8250_r, ins8250_w) |
| 227 | 226 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE(INS8250, "ins8250_1", ins8250_r, ins8250_w) |
| 228 | 227 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc_HDC1_r, pc_HDC1_w) |
| 229 | 228 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc_HDC2_r, pc_HDC2_w) |
| 230 | 229 | AM_RANGE(0x0340, 0x0357) AM_READ(return8_FF) /* anonymous bios should not recogniced realtimeclock */ |
| 231 | | AM_RANGE(0x0378, 0x037f) AM_READWRITE(pc_parallelport1_r, pc_parallelport1_w) |
| 230 | AM_RANGE(0x0378, 0x037f) AM_DEVREADWRITE(PC_LPT, "lpt_1", pc_lpt_r, pc_lpt_w) |
| 232 | 231 | #ifdef ADLIB |
| 233 | 232 | AM_RANGE(0x0388, 0x0388) AM_DEVREADWRITE(SOUND, "ym3812", ym3812_status_port_r,ym3812_control_port_w) |
| 234 | 233 | AM_RANGE(0x0389, 0x0389) AM_DEVWRITE(SOUND, "ym3812", ym3812_write_port_w) |
| 235 | 234 | #endif |
| 236 | | AM_RANGE(0x03bc, 0x03be) AM_READWRITE(pc_parallelport0_r, pc_parallelport0_w) |
| 235 | AM_RANGE(0x03bc, 0x03be) AM_DEVREADWRITE(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w) |
| 237 | 236 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE(INS8250, "ins8250_2", ins8250_r, ins8250_w) |
| 238 | 237 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE(pc_fdc_r, pc_fdc_w) |
| 239 | 238 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE(INS8250, "ins8250_0", ins8250_r, ins8250_w) |
| r4286 | r4287 | |
| 253 | 252 | AM_RANGE(0x0210, 0x0217) AM_READWRITE(pc_EXP_r, pc_EXP_w) |
| 254 | 253 | #endif |
| 255 | 254 | AM_RANGE(0x0240, 0x0257) AM_READWRITE(pc16le_rtc_r, pc16le_rtc_w) |
| 256 | | AM_RANGE(0x0278, 0x027b) AM_READWRITE(pc16le_parallelport2_r, pc16le_parallelport2_w) |
| 255 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE8(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 257 | 256 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8(INS8250, "ins8250_3", ins8250_r, ins8250_w, 0xffff) |
| 258 | 257 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8(INS8250, "ins8250_1", ins8250_r, ins8250_w, 0xffff) |
| 259 | 258 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc16le_HDC1_r, pc16le_HDC1_w) |
| 260 | 259 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc16le_HDC2_r, pc16le_HDC2_w) |
| 261 | 260 | AM_RANGE(0x0340, 0x0357) AM_READ(return16_FFFF) /* anonymous bios should not recogniced realtimeclock */ |
| 262 | | AM_RANGE(0x0378, 0x037f) AM_READWRITE(pc16le_parallelport1_r, pc16le_parallelport1_w) |
| 261 | AM_RANGE(0x0378, 0x037f) AM_DEVREADWRITE8(PC_LPT, "lpt_1", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 263 | 262 | #ifdef ADLIB |
| 264 | 263 | AM_RANGE(0x0388, 0x0388) AM_DEVREADWRITE8(SOUND, "ym3812", ym3812_status_port_r,ym3812_control_port_w, 0xffff) |
| 265 | 264 | AM_RANGE(0x0389, 0x0389) AM_DEVWRITE8(SOUND, "ym3812", ym3812_write_port_w, 0xffff) |
| 266 | 265 | #endif |
| 267 | | AM_RANGE(0x03bc, 0x03bf) AM_READWRITE(pc16le_parallelport0_r, pc16le_parallelport0_w) |
| 266 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 268 | 267 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE8(INS8250, "ins8250_2", ins8250_r, ins8250_w, 0xffff) |
| 269 | 268 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8(pc_fdc_r, pc_fdc_w, 0xffff) |
| 270 | 269 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8(INS8250, "ins8250_0", ins8250_r, ins8250_w, 0xffff) |
| r4286 | r4287 | |
| 292 | 291 | AM_RANGE(0x0080, 0x0087) AM_READWRITE(pc_page_r, pc_page_w) |
| 293 | 292 | AM_RANGE(0x0200, 0x0207) AM_READWRITE(pc_JOY_r, pc_JOY_w) |
| 294 | 293 | AM_RANGE(0x0250, 0x025f) AM_READWRITE(europc_jim_r, europc_jim_w) |
| 295 | | AM_RANGE(0x0278, 0x027b) AM_READWRITE(pc_parallelport2_r, pc_parallelport2_w) |
| 294 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w) |
| 296 | 295 | AM_RANGE(0x02e0, 0x02e0) AM_READ (europc_jim2_r) |
| 297 | 296 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE(INS8250, "ins8250_3", ins8250_r, ins8250_w) |
| 298 | 297 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE(INS8250, "ins8250_1", ins8250_r, ins8250_w) |
| 299 | 298 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc_HDC1_r, pc_HDC1_w) |
| 300 | 299 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc_HDC2_r, pc_HDC2_w) |
| 301 | | AM_RANGE(0x0378, 0x037b) AM_READWRITE(pc_parallelport1_r, pc_parallelport1_w) |
| 300 | AM_RANGE(0x0378, 0x037b) AM_DEVREADWRITE(PC_LPT, "lpt_1", pc_lpt_r, pc_lpt_w) |
| 302 | 301 | #ifdef ADLIB |
| 303 | 302 | AM_RANGE(0x0388, 0x0388) AM_DEVREADWRITE(SOUND, "ym3812", ym3812_status_port_r,ym3812_control_port_w) |
| 304 | 303 | AM_RANGE(0x0389, 0x0389) AM_DEVWRITE(SOUND, "ym3812", ym3812_write_port_w) |
| 305 | 304 | #endif |
| 306 | | // AM_RANGE(0x03bc, 0x03bf) AM_READWRITE(pc16le_parallelport0_r, pc16le_parallelport0_w) |
| 305 | // AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w) |
| 307 | 306 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE(INS8250, "ins8250_2", ins8250_r, ins8250_w) |
| 308 | 307 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE(pc_fdc_r, pc_fdc_w) |
| 309 | 308 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE(INS8250, "ins8250_0", ins8250_r, ins8250_w) |
| r4286 | r4287 | |
| 337 | 336 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc_HDC1_r, pc_HDC1_w) |
| 338 | 337 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc_HDC2_r, pc_HDC2_w) |
| 339 | 338 | AM_RANGE(0x0378, 0x037f) AM_READWRITE(pc_t1t_p37x_r, pc_t1t_p37x_w) |
| 340 | | AM_RANGE(0x03bc, 0x03be) AM_READWRITE(pc_parallelport0_r, pc_parallelport0_w) |
| 339 | AM_RANGE(0x03bc, 0x03be) AM_DEVREADWRITE(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w) |
| 341 | 340 | AM_RANGE(0x03d0, 0x03df) AM_READWRITE(pc_T1T_r, pc_T1T_w) |
| 342 | 341 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE(pc_fdc_r, pc_fdc_w) |
| 343 | 342 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE(INS8250, "ins8250_0", ins8250_r, ins8250_w) |
| r4286 | r4287 | |
| 372 | 371 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc_HDC1_r, pc_HDC1_w) |
| 373 | 372 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc_HDC2_r, pc_HDC2_w) |
| 374 | 373 | AM_RANGE(0x0378, 0x037f) AM_READWRITE(pc_t1t_p37x_r, pc_t1t_p37x_w) |
| 375 | | AM_RANGE(0x03bc, 0x03be) AM_READWRITE(pc_parallelport0_r, pc_parallelport0_w) |
| 374 | AM_RANGE(0x03bc, 0x03be) AM_DEVREADWRITE(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w) |
| 376 | 375 | AM_RANGE(0x03d0, 0x03df) AM_READWRITE(pc_T1T_r, pc_pcjr_w) |
| 377 | 376 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE(INS8250, "ins8250_0", ins8250_r, ins8250_w) |
| 378 | 377 | ADDRESS_MAP_END |
| r4286 | r4287 | |
| 388 | 387 | AM_RANGE(0x007a, 0x007b) AM_READWRITE(pc1640_16le_mouse_y_r, pc1640_16le_mouse_y_w) |
| 389 | 388 | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 390 | 389 | AM_RANGE(0x0200, 0x0207) AM_READWRITE(pc16le_JOY_r, pc16le_JOY_w) |
| 391 | | AM_RANGE(0x0278, 0x027b) AM_READWRITE(pc16le_parallelport2_r, pc16le_parallelport2_w) |
| 390 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE8(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 392 | 391 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8(INS8250, "ins8250_3", ins8250_r, ins8250_w, 0xffff) |
| 393 | 392 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8(INS8250, "ins8250_1", ins8250_r, ins8250_w, 0xffff) |
| 394 | 393 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc16le_HDC1_r, pc16le_HDC1_w) |
| 395 | 394 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc16le_HDC2_r, pc16le_HDC2_w) |
| 396 | | AM_RANGE(0x0378, 0x037b) AM_READWRITE(pc200_16le_port378_r, pc16le_parallelport1_w) |
| 397 | | AM_RANGE(0x03bc, 0x03bf) AM_READWRITE(pc16le_parallelport0_r, pc16le_parallelport0_w) |
| 395 | AM_RANGE(0x0378, 0x037b) AM_READ(pc200_16le_port378_r) AM_DEVWRITE8(PC_LPT, "lpt_1", pc_lpt_w, 0x00ff) |
| 396 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 398 | 397 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE8(INS8250, "ins8250_2", ins8250_r, ins8250_w, 0xffff) |
| 399 | 398 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8(pc_fdc_r, pc_fdc_w, 0xffff) |
| 400 | 399 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8(INS8250, "ins8250_0", ins8250_r, ins8250_w, 0xffff) |
| r4286 | r4287 | |
| 422 | 421 | AM_RANGE(0x007a, 0x007b) AM_READWRITE(pc1640_16le_mouse_y_r, pc1640_16le_mouse_y_w) |
| 423 | 422 | AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r, pc_page_w, 0xffff) |
| 424 | 423 | AM_RANGE(0x0200, 0x0207) AM_READWRITE(pc16le_JOY_r, pc16le_JOY_w) |
| 425 | | AM_RANGE(0x0278, 0x027b) AM_READWRITE(pc16le_parallelport2_r, pc16le_parallelport2_w) |
| 424 | AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE8(PC_LPT, "lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 426 | 425 | AM_RANGE(0x02e8, 0x02ef) AM_DEVREADWRITE8(INS8250, "ins8250_3", ins8250_r, ins8250_w, 0xffff) |
| 427 | 426 | AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8(INS8250, "ins8250_1", ins8250_r, ins8250_w, 0xffff) |
| 428 | 427 | AM_RANGE(0x0320, 0x0323) AM_READWRITE(pc16le_HDC1_r, pc16le_HDC1_w) |
| 429 | 428 | AM_RANGE(0x0324, 0x0327) AM_READWRITE(pc16le_HDC2_r, pc16le_HDC2_w) |
| 430 | | AM_RANGE(0x0378, 0x037b) AM_READWRITE(pc1640_16le_port378_r, pc16le_parallelport1_w) |
| 431 | | AM_RANGE(0x03bc, 0x03bf) AM_READWRITE(pc16le_parallelport0_r, pc16le_parallelport0_w) |
| 429 | AM_RANGE(0x0378, 0x037b) AM_READ(pc1640_16le_port378_r) AM_DEVWRITE8(PC_LPT, "lpt_1", pc_lpt_w, 0x00ff) |
| 430 | AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8(PC_LPT, "lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff) |
| 432 | 431 | AM_RANGE(0x03e8, 0x03ef) AM_DEVREADWRITE8(INS8250, "ins8250_2", ins8250_r, ins8250_w, 0xffff) |
| 433 | 432 | AM_RANGE(0x03f0, 0x03f7) AM_READWRITE8(pc_fdc_r, pc_fdc_w, 0xffff) |
| 434 | 433 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8(INS8250, "ins8250_0", ins8250_r, ins8250_w, 0xffff) |
| r4286 | r4287 | |
| 945 | 944 | PORT_DIPNAME( 0x08, 0x00, "37a 0x40") |
| 946 | 945 | PORT_DIPSETTING( 0x00, "0x00" ) |
| 947 | 946 | PORT_DIPSETTING( 0x08, "0x08" ) |
| 948 | | /* 2008-05 FP: This Dip Switch overlaps the next one. |
| 947 | /* 2008-05 FP: This Dip Switch overlaps the next one. |
| 949 | 948 | Since pc200 is anyway NOT_WORKING, I comment out this one */ |
| 950 | 949 | /* PORT_DIPNAME( 0x10, 0x00, "37a 0x80") |
| 951 | 950 | PORT_DIPSETTING( 0x00, "0x00" ) |
| r4286 | r4287 | |
| 1305 | 1304 | #endif |
| 1306 | 1305 | |
| 1307 | 1306 | |
| 1307 | static const pc_lpt_interface pc_lpt_config = |
| 1308 | { |
| 1309 | DEVCB_CPU_INPUT_LINE("main", 0) |
| 1310 | }; |
| 1311 | |
| 1312 | |
| 1308 | 1313 | #define MDRV_CPU_PC(mem, port, type, clock, vblankfunc) \ |
| 1309 | 1314 | MDRV_CPU_ADD("main", type, clock) \ |
| 1310 | 1315 | MDRV_CPU_PROGRAM_MAP(mem##_map, 0) \ |
| r4286 | r4287 | |
| 1363 | 1368 | MDRV_IMPORT_FROM( kb_keytronic ) |
| 1364 | 1369 | |
| 1365 | 1370 | /* printer */ |
| 1366 | | MDRV_PRINTER_ADD("printer") |
| 1367 | | MDRV_PRINTER_ADD("printer2") |
| 1368 | | MDRV_PRINTER_ADD("printer3") |
| 1371 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1372 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1373 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1369 | 1374 | |
| 1370 | 1375 | /* harddisk */ |
| 1371 | 1376 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1372 | | |
| 1377 | |
| 1373 | 1378 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1374 | 1379 | MACHINE_DRIVER_END |
| 1375 | 1380 | |
| r4286 | r4287 | |
| 1422 | 1427 | MDRV_IMPORT_FROM( kb_keytronic ) |
| 1423 | 1428 | |
| 1424 | 1429 | /* printer */ |
| 1425 | | MDRV_PRINTER_ADD("printer") |
| 1426 | | MDRV_PRINTER_ADD("printer2") |
| 1427 | | MDRV_PRINTER_ADD("printer3") |
| 1430 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1431 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1432 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1428 | 1433 | |
| 1429 | 1434 | /* harddisk */ |
| 1430 | 1435 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1431 | | |
| 1436 | |
| 1432 | 1437 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1433 | 1438 | MACHINE_DRIVER_END |
| 1434 | 1439 | |
| r4286 | r4287 | |
| 1491 | 1496 | MDRV_IMPORT_FROM( kb_keytronic ) |
| 1492 | 1497 | |
| 1493 | 1498 | /* printer */ |
| 1494 | | MDRV_PRINTER_ADD("printer") |
| 1495 | | MDRV_PRINTER_ADD("printer2") |
| 1496 | | MDRV_PRINTER_ADD("printer3") |
| 1499 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1500 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1501 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1497 | 1502 | |
| 1498 | 1503 | /* harddisk */ |
| 1499 | 1504 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1500 | 1505 | |
| 1501 | 1506 | MDRV_CASSETTE_ADD( "cassette", ibm5150_cassette_config ) |
| 1502 | | |
| 1503 | | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1507 | |
| 1508 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1504 | 1509 | MACHINE_DRIVER_END |
| 1505 | 1510 | |
| 1506 | 1511 | |
| r4286 | r4287 | |
| 1551 | 1556 | MDRV_IMPORT_FROM( kb_keytronic ) |
| 1552 | 1557 | |
| 1553 | 1558 | /* printer */ |
| 1554 | | MDRV_PRINTER_ADD("printer") |
| 1555 | | MDRV_PRINTER_ADD("printer2") |
| 1556 | | MDRV_PRINTER_ADD("printer3") |
| 1559 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1560 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1561 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1557 | 1562 | |
| 1558 | 1563 | /* harddisk */ |
| 1559 | 1564 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1560 | | |
| 1565 | |
| 1561 | 1566 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1562 | 1567 | MACHINE_DRIVER_END |
| 1563 | 1568 | |
| r4286 | r4287 | |
| 1600 | 1605 | MDRV_NVRAM_HANDLER( europc_rtc ) |
| 1601 | 1606 | |
| 1602 | 1607 | /* printer */ |
| 1603 | | MDRV_PRINTER_ADD("printer") |
| 1604 | | MDRV_PRINTER_ADD("printer2") |
| 1605 | | MDRV_PRINTER_ADD("printer3") |
| 1608 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1609 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1610 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1606 | 1611 | |
| 1607 | 1612 | /* harddisk */ |
| 1608 | 1613 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1609 | | |
| 1614 | |
| 1610 | 1615 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1611 | 1616 | MACHINE_DRIVER_END |
| 1612 | 1617 | |
| r4286 | r4287 | |
| 1656 | 1661 | MDRV_IMPORT_FROM( kb_keytronic ) |
| 1657 | 1662 | |
| 1658 | 1663 | /* printer */ |
| 1659 | | MDRV_PRINTER_ADD("printer") |
| 1660 | | MDRV_PRINTER_ADD("printer2") |
| 1661 | | MDRV_PRINTER_ADD("printer3") |
| 1664 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1665 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1666 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1662 | 1667 | |
| 1663 | 1668 | /* harddisk */ |
| 1664 | 1669 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1665 | | |
| 1670 | |
| 1666 | 1671 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1667 | 1672 | MACHINE_DRIVER_END |
| 1668 | 1673 | |
| r4286 | r4287 | |
| 1698 | 1703 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 1699 | 1704 | |
| 1700 | 1705 | /* printer */ |
| 1701 | | MDRV_PRINTER_ADD("printer") |
| 1702 | | MDRV_PRINTER_ADD("printer2") |
| 1703 | | MDRV_PRINTER_ADD("printer3") |
| 1706 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1707 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1708 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1704 | 1709 | |
| 1705 | 1710 | /* harddisk */ |
| 1706 | 1711 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1707 | | |
| 1712 | |
| 1708 | 1713 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1709 | 1714 | MACHINE_DRIVER_END |
| 1710 | 1715 | |
| r4286 | r4287 | |
| 1742 | 1747 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 1743 | 1748 | |
| 1744 | 1749 | /* printer */ |
| 1745 | | MDRV_PRINTER_ADD("printer") |
| 1746 | | MDRV_PRINTER_ADD("printer2") |
| 1747 | | MDRV_PRINTER_ADD("printer3") |
| 1750 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1751 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1752 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1748 | 1753 | |
| 1749 | 1754 | /* harddisk */ |
| 1750 | 1755 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1751 | | |
| 1756 | |
| 1752 | 1757 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1753 | 1758 | MACHINE_DRIVER_END |
| 1754 | 1759 | |
| r4286 | r4287 | |
| 1786 | 1791 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 1787 | 1792 | |
| 1788 | 1793 | /* printer */ |
| 1789 | | MDRV_PRINTER_ADD("printer") |
| 1790 | | MDRV_PRINTER_ADD("printer2") |
| 1791 | | MDRV_PRINTER_ADD("printer3") |
| 1794 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1795 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1796 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1792 | 1797 | |
| 1793 | 1798 | /* harddisk */ |
| 1794 | 1799 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1795 | | |
| 1800 | |
| 1796 | 1801 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1797 | 1802 | MACHINE_DRIVER_END |
| 1798 | 1803 | |
| r4286 | r4287 | |
| 1841 | 1846 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1842 | 1847 | #endif |
| 1843 | 1848 | |
| 1849 | /* printer */ |
| 1850 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1851 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1852 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1853 | |
| 1844 | 1854 | /* harddisk */ |
| 1845 | 1855 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1846 | | |
| 1856 | |
| 1847 | 1857 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1848 | 1858 | MACHINE_DRIVER_END |
| 1849 | 1859 | |
| r4286 | r4287 | |
| 1881 | 1891 | MDRV_NVRAM_HANDLER( tandy1000 ) |
| 1882 | 1892 | |
| 1883 | 1893 | /* printer */ |
| 1884 | | MDRV_PRINTER_ADD("printer") |
| 1885 | | MDRV_PRINTER_ADD("printer2") |
| 1886 | | MDRV_PRINTER_ADD("printer3") |
| 1894 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1895 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1896 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1887 | 1897 | |
| 1888 | 1898 | /* harddisk */ |
| 1889 | 1899 | MDRV_IMPORT_FROM( pc_hdc ) |
| 1890 | | |
| 1900 | |
| 1891 | 1901 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1892 | 1902 | MACHINE_DRIVER_END |
| 1893 | 1903 | |
| r4286 | r4287 | |
| 1925 | 1935 | MDRV_NVRAM_HANDLER( tandy1000 ) |
| 1926 | 1936 | |
| 1927 | 1937 | /* printer */ |
| 1928 | | MDRV_PRINTER_ADD("printer") |
| 1929 | | MDRV_PRINTER_ADD("printer2") |
| 1930 | | MDRV_PRINTER_ADD("printer3") |
| 1938 | MDRV_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1939 | MDRV_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1940 | MDRV_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1931 | 1941 | |
| 1932 | 1942 | /* cassette */ |
| 1933 | 1943 | MDRV_CASSETTE_ADD( "cassette", ibm5150_cassette_config ) |
| 1934 | | |
| 1944 | |
| 1935 | 1945 | MDRV_NEC765A_ADD("nec765", pc_fdc_nec765_not_connected_interface) |
| 1936 | 1946 | |
| 1937 | 1947 | /* cartridge */ |
| r4286 | r4287 | |
| 1939 | 1949 | MDRV_CARTSLOT_EXTENSION_LIST("jrc") |
| 1940 | 1950 | MDRV_CARTSLOT_NOT_MANDATORY |
| 1941 | 1951 | MDRV_CARTSLOT_LOAD(pcjr_cartridge) |
| 1942 | | MDRV_CARTSLOT_ADD("cart2") |
| 1952 | MDRV_CARTSLOT_ADD("cart2") |
| 1943 | 1953 | MDRV_CARTSLOT_EXTENSION_LIST("jrc") |
| 1944 | 1954 | MDRV_CARTSLOT_NOT_MANDATORY |
| 1945 | 1955 | MDRV_CARTSLOT_LOAD(pcjr_cartridge) |
| r4286 | r4287 | |
| 2260 | 2270 | // ROM_LOAD("600963.u12", 0xc8000, 0x02000, CRC(f3daf85f) SHA1(3bd29538832d3084cbddeec92593988772755283)) /* Tandon/Western Digital Fixed Disk Adapter 600963-001__TYPE_5.U12.2764.bin */ |
| 2261 | 2271 | |
| 2262 | 2272 | /* PC/3270 has a 3270 keyboard controller card, plus a rom on that card to tell the pc how to run it. |
| 2263 | | * Unlike the much more complex keyboard controller used in the AT/3270, this one only has one rom, |
| 2264 | | a motorola made "(M)1503828 // XE // 8434A XM // SC81155P" custom (an MCU?; the more complicated |
| 2273 | * Unlike the much more complex keyboard controller used in the AT/3270, this one only has one rom, |
| 2274 | a motorola made "(M)1503828 // XE // 8434A XM // SC81155P" custom (an MCU?; the more complicated |
| 2265 | 2275 | 3270/AT keyboard card uses this same exact chip), an 8254, and some logic chips. |
| 2266 | 2276 | Thanks to high resolution pictures provided by John Elliott, I can see that the location of the |
| 2267 | 2277 | chips is unlabeled (except for by absolute pin position on the back), and there are no pals or proms. |
| 2268 | 2278 | * The board is stickered "2683114 // 874999 // 8446 SU" on the front. |
| 2269 | 2279 | * The board has a single DE-9 connector where the keyboard dongle connects to. |
| 2270 | 2280 | * The keyboard dongle has two connectors on it: a DIN-5 connector which connects to the Motherboard's |
| 2271 | | keyboard port, plus an RJ45-lookalike socket which the 3270 keyboard connects to. |
| 2281 | keyboard port, plus an RJ45-lookalike socket which the 3270 keyboard connects to. |
| 2272 | 2282 | * The rom is mapped very strangely to avoid hitting the hard disk controller: |
| 2273 | 2283 | The first 0x800 bytes appear at C0000-C07FF, and the last 0x1800 bytes appear at 0xCA000-CB7FF |
| 2274 | 2284 | */ |
| r4286 | r4287 | |
| 2360 | 2370 | "6323260 // TC15G022AP-0018 // JAPAN 8606A" (48 pins, at U45) |
| 2361 | 2371 | |
| 2362 | 2372 | ** The optional Programmable Symbol Card (with an AMD AM9128-10PC, and six tms4416-15NL DRAMS, |
| 2363 | | and a fleet of discrete logic chips, but no roms, pals, or proms) is stickered |
| 2373 | and a fleet of discrete logic chips, but no roms, pals, or proms) is stickered |
| 2364 | 2374 | "6347750 // A24866 // 6285 SU" on the front. |
| 2365 | 2375 | * The PCB is trace-marked "PROGAMMABLE SYMBOL P/N 6347751 // ASSY. NO. 6347750" on the front, |
| 2366 | 2376 | and trace-marked "|||CIM0286 ECA2466 // 94V-O" on the back. |
| r4286 | r4287 | |
| 2526 | 2536 | |
| 2527 | 2537 | static SYSTEM_CONFIG_START(pcjr) |
| 2528 | 2538 | CONFIG_RAM_DEFAULT( 640 * 1024 ) |
| 2529 | | CONFIG_DEVICE(ibmpc_floppy_getinfo) |
| 2539 | CONFIG_DEVICE(ibmpc_floppy_getinfo) |
| 2530 | 2540 | SYSTEM_CONFIG_END |
| 2531 | 2541 | |
| 2532 | 2542 | /*************************************************************************** |