src/mess/machine/isa.c
| r12174 | r12175 | |
| 34 | 34 | { |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | | void isa8_slot_device::static_set_isa8_slot(device_t &device, const char *tag, int num) |
| 37 | void isa8_slot_device::static_set_isa8_slot(device_t &device, const char *tag) |
| 38 | 38 | { |
| 39 | 39 | isa8_slot_device &isa_card = dynamic_cast<isa8_slot_device &>(device); |
| 40 | 40 | isa_card.m_isa_tag = tag; |
| 41 | | isa_card.m_isa_num = num; |
| 42 | 41 | } |
| 43 | 42 | |
| 44 | 43 | //------------------------------------------------- |
| r12174 | r12175 | |
| 49 | 48 | { |
| 50 | 49 | m_isa = machine().device<isa8_device>(m_isa_tag); |
| 51 | 50 | device_isa8_card_interface *dev = dynamic_cast<device_isa8_card_interface *>(get_card_device()); |
| 52 | | if (dev) m_isa->add_isa_card(dev, m_isa_num); |
| 51 | if (dev) m_isa->add_isa_card(dev); |
| 53 | 52 | } |
| 54 | 53 | |
| 55 | 54 | |
| r12174 | r12175 | |
| 72 | 71 | { |
| 73 | 72 | } |
| 74 | 73 | |
| 75 | | void isa16_slot_device::static_set_isa16_slot(device_t &device, const char *tag, int num) |
| 74 | void isa16_slot_device::static_set_isa16_slot(device_t &device, const char *tag) |
| 76 | 75 | { |
| 77 | 76 | isa16_slot_device &isa_card = dynamic_cast<isa16_slot_device &>(device); |
| 78 | 77 | isa_card.m_isa_tag = tag; |
| 79 | | isa_card.m_isa_num = num; |
| 80 | 78 | } |
| 81 | 79 | |
| 82 | 80 | //------------------------------------------------- |
| r12174 | r12175 | |
| 87 | 85 | { |
| 88 | 86 | m_isa16 = machine().device<isa16_device>(m_isa_tag); |
| 89 | 87 | device_isa16_card_interface *dev = dynamic_cast<device_isa16_card_interface *>(get_card_device()); |
| 90 | | if (dev) m_isa16->add_isa_card(dev, m_isa_num); |
| 88 | if (dev) m_isa16->add_isa_card(dev); |
| 91 | 89 | } |
| 92 | 90 | |
| 93 | 91 | |
| r12174 | r12175 | |
| 144 | 142 | isa8_device::isa8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 145 | 143 | device_t(mconfig, ISA8, "ISA8", tag, owner, clock) |
| 146 | 144 | { |
| 147 | | for(int i = 0; i < 8; i++) |
| 148 | | m_isa_device[i] = NULL; |
| 149 | | } |
| 145 | } |
| 150 | 146 | |
| 151 | 147 | isa8_device::isa8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : |
| 152 | 148 | device_t(mconfig, type, name, tag, owner, clock) |
| 153 | 149 | { |
| 154 | | for(int i = 0; i < 8; i++) |
| 155 | | m_isa_device[i] = NULL; |
| 156 | 150 | } |
| 157 | 151 | //------------------------------------------------- |
| 158 | 152 | // device_start - device-specific startup |
| r12174 | r12175 | |
| 181 | 175 | { |
| 182 | 176 | } |
| 183 | 177 | |
| 184 | | void isa8_device::add_isa_card(device_isa8_card_interface *card,int pos) |
| 178 | void isa8_device::add_isa_card(device_isa8_card_interface *card) |
| 185 | 179 | { |
| 186 | | m_isa_device[pos] = card; |
| 180 | m_device_list.append(*card); |
| 187 | 181 | } |
| 188 | 182 | |
| 189 | 183 | void isa8_device::install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, const char* rhandler_name, write8_device_func whandler, const char *whandler_name) |
| r12174 | r12175 | |
| 241 | 235 | UINT8 isa8_device::dack_r(int line) |
| 242 | 236 | { |
| 243 | 237 | UINT8 retVal = 0xff; |
| 244 | | for(int i=0;i<8;i++) { |
| 245 | | if (m_isa_device[i] != NULL && m_isa_device[i]->have_dack(line)) { |
| 246 | | retVal = m_isa_device[i]->dack_r(line); |
| 238 | device_isa8_card_interface *entry = m_device_list.first(); |
| 239 | while(entry) { |
| 240 | if (entry->have_dack(line)) { |
| 241 | retVal = entry->dack_r(line); |
| 242 | break; |
| 247 | 243 | } |
| 244 | entry = entry->next(); |
| 248 | 245 | } |
| 249 | 246 | return retVal; |
| 250 | 247 | } |
| 251 | 248 | |
| 252 | 249 | void isa8_device::dack_w(int line,UINT8 data) |
| 253 | 250 | { |
| 254 | | for(int i=0;i<8;i++) { |
| 255 | | if (m_isa_device[i] != NULL && m_isa_device[i]->have_dack(line)) { |
| 256 | | m_isa_device[i]->dack_w(line,data); |
| 251 | device_isa8_card_interface *entry = m_device_list.first(); |
| 252 | while(entry) { |
| 253 | if (entry->have_dack(line)) { |
| 254 | entry->dack_w(line,data); |
| 257 | 255 | } |
| 256 | entry = entry->next(); |
| 258 | 257 | } |
| 259 | 258 | } |
| 260 | 259 | |
| 261 | 260 | void isa8_device::eop_w(int state) |
| 262 | 261 | { |
| 263 | | for(int i=0;i<8;i++) { |
| 264 | | if (m_isa_device[i] != NULL) m_isa_device[i]->eop_w(state); |
| 262 | device_isa8_card_interface *entry = m_device_list.first(); |
| 263 | while(entry) { |
| 264 | entry->eop_w(state); |
| 265 | entry = entry->next(); |
| 265 | 266 | } |
| 266 | 267 | } |
| 267 | 268 | |
| r12174 | r12175 | |
| 321 | 322 | { |
| 322 | 323 | if(m_isa_tag) { |
| 323 | 324 | m_isa = dynamic_cast<isa8_device *>(device().machine().device(m_isa_tag)); |
| 325 | m_isa->add_isa_card(this); |
| 324 | 326 | } else { |
| 325 | 327 | m_isa = (dynamic_cast<isa8_slot_device *>(device().owner()))->get_isa_device(); |
| 326 | 328 | } |
| r12174 | r12175 | |
| 464 | 466 | { |
| 465 | 467 | if(m_isa_tag) { |
| 466 | 468 | m_isa = dynamic_cast<isa16_device *>(device().machine().device(m_isa_tag)); |
| 469 | m_isa->add_isa_card(this); |
| 467 | 470 | } else { |
| 468 | 471 | m_isa = (dynamic_cast<isa16_slot_device *>(device().owner()))->get_isa_device(); |
| 469 | 472 | } |
src/mess/machine/isa.h
| r12174 | r12175 | |
| 77 | 77 | MCFG_DEVICE_CONFIG(_config) \ |
| 78 | 78 | isa8_device::static_set_cputag(*device, _cputag); \ |
| 79 | 79 | |
| 80 | | #define MCFG_ISA8_SLOT_ADD(_isatag, _num, _tag, _slot_intf, _def_slot, _def_inp) \ |
| 80 | #define MCFG_ISA8_SLOT_ADD(_isatag, _tag, _slot_intf, _def_slot, _def_inp) \ |
| 81 | 81 | MCFG_DEVICE_ADD(_tag, ISA8_SLOT, 0) \ |
| 82 | 82 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp) \ |
| 83 | | isa8_slot_device::static_set_isa8_slot(*device, _isatag, _num); \ |
| 83 | isa8_slot_device::static_set_isa8_slot(*device, _isatag); \ |
| 84 | 84 | |
| 85 | 85 | #define MCFG_ISA8_ONBOARD_ADD(_isatag, _tag, _dev_type, _def_inp) \ |
| 86 | 86 | MCFG_DEVICE_ADD(_tag, _dev_type, 0) \ |
| r12174 | r12175 | |
| 93 | 93 | MCFG_DEVICE_CONFIG(_config) \ |
| 94 | 94 | isa8_device::static_set_cputag(*device, _cputag); \ |
| 95 | 95 | |
| 96 | | #define MCFG_ISA16_SLOT_ADD(_isatag, _num, _tag, _slot_intf, _def_slot, _def_inp) \ |
| 96 | #define MCFG_ISA16_SLOT_ADD(_isatag, _tag, _slot_intf, _def_slot, _def_inp) \ |
| 97 | 97 | MCFG_DEVICE_ADD(_tag, ISA16_SLOT, 0) \ |
| 98 | 98 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp) \ |
| 99 | | isa16_slot_device::static_set_isa16_slot(*device, _isatag, _num); \ |
| 99 | isa16_slot_device::static_set_isa16_slot(*device, _isatag); \ |
| 100 | 100 | |
| 101 | 101 | //************************************************************************** |
| 102 | 102 | // TYPE DEFINITIONS |
| r12174 | r12175 | |
| 117 | 117 | virtual void device_start(); |
| 118 | 118 | |
| 119 | 119 | // inline configuration |
| 120 | | static void static_set_isa8_slot(device_t &device, const char *tag, int num); |
| 120 | static void static_set_isa8_slot(device_t &device, const char *tag); |
| 121 | 121 | protected: |
| 122 | 122 | // configuration |
| 123 | 123 | const char *m_isa_tag; |
| 124 | | int m_isa_num; |
| 125 | 124 | isa8_device *m_isa; |
| 126 | 125 | }; |
| 127 | 126 | |
| r12174 | r12175 | |
| 155 | 154 | // inline configuration |
| 156 | 155 | static void static_set_cputag(device_t &device, const char *tag); |
| 157 | 156 | |
| 158 | | void add_isa_card(device_isa8_card_interface *card,int pos); |
| 157 | void add_isa_card(device_isa8_card_interface *card); |
| 159 | 158 | void install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, const char* rhandler_name, write8_device_func whandler, const char *whandler_name); |
| 160 | 159 | void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, UINT8 *data); |
| 161 | 160 | void install_rom(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, const char *region); |
| r12174 | r12175 | |
| 195 | 194 | devcb_resolved_write_line m_out_drq2_func; |
| 196 | 195 | devcb_resolved_write_line m_out_drq3_func; |
| 197 | 196 | |
| 198 | | device_isa8_card_interface *m_isa_device[8]; |
| 197 | simple_list<device_isa8_card_interface> m_device_list; |
| 199 | 198 | const char *m_cputag; |
| 200 | 199 | }; |
| 201 | 200 | |
| r12174 | r12175 | |
| 214 | 213 | device_isa8_card_interface(const machine_config &mconfig, device_t &device); |
| 215 | 214 | virtual ~device_isa8_card_interface(); |
| 216 | 215 | |
| 216 | device_isa8_card_interface *next() const { return m_next; } |
| 217 | |
| 217 | 218 | void set_isa_device(); |
| 218 | 219 | // configuration access |
| 219 | 220 | virtual UINT8 dack_r(int line); |
| r12174 | r12175 | |
| 226 | 227 | public: |
| 227 | 228 | isa8_device *m_isa; |
| 228 | 229 | const char *m_isa_tag; |
| 230 | device_isa8_card_interface *m_next; |
| 229 | 231 | }; |
| 230 | 232 | |
| 231 | 233 | // ======================> isa16bus_interface |
| r12174 | r12175 | |
| 267 | 269 | virtual void device_start(); |
| 268 | 270 | |
| 269 | 271 | // inline configuration |
| 270 | | static void static_set_isa16_slot(device_t &device, const char *tag, int num); |
| 272 | static void static_set_isa16_slot(device_t &device, const char *tag); |
| 271 | 273 | private: |
| 272 | 274 | // configuration |
| 273 | 275 | isa16_device *m_isa16; |
src/mess/drivers/genpc.c
| r12174 | r12175 | |
| 122 | 122 | /* video hardware */ |
| 123 | 123 | MCFG_PALETTE_LENGTH( 256 ) |
| 124 | 124 | |
| 125 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", pc_isa8_cards, "mda", NULL) |
| 126 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", pc_isa8_cards, "com", NULL) |
| 127 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", pc_isa8_cards, "fdc", NULL) |
| 128 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "hdc", NULL) |
| 129 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, "adlib", NULL) |
| 130 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL, NULL) |
| 125 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "mda", NULL) |
| 126 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "com", NULL) |
| 127 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc", NULL) |
| 128 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", NULL) |
| 129 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "adlib", NULL) |
| 130 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL) |
| 131 | 131 | |
| 132 | 132 | /* keyboard */ |
| 133 | 133 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| r12174 | r12175 | |
| 146 | 146 | |
| 147 | 147 | MCFG_IBM5160_MOTHERBOARD_ADD("mb","maincpu",pc_keytronic_keyboard_intf) |
| 148 | 148 | |
| 149 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", pc_isa8_cards, "hercules", NULL) |
| 150 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", pc_isa8_cards, "com", NULL) |
| 151 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", pc_isa8_cards, "fdc", NULL) |
| 152 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "hdc", NULL) |
| 153 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, "adlib", NULL) |
| 154 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL, NULL) |
| 149 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "hercules", NULL) |
| 150 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "com", NULL) |
| 151 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc", NULL) |
| 152 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", NULL) |
| 153 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "adlib", NULL) |
| 154 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL) |
| 155 | 155 | |
| 156 | 156 | /* video hardware */ |
| 157 | 157 | MCFG_PALETTE_LENGTH( 256 ) |
| r12174 | r12175 | |
| 178 | 178 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 179 | 179 | MCFG_PALETTE_LENGTH( 256 ) |
| 180 | 180 | |
| 181 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", pc_isa8_cards, "com", NULL) |
| 182 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", pc_isa8_cards, "fdc", NULL) |
| 183 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", pc_isa8_cards, "hdc", NULL) |
| 184 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "sblaster", NULL) |
| 185 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, NULL, NULL) |
| 186 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL, NULL) |
| 181 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "com", NULL) |
| 182 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "fdc", NULL) |
| 183 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "hdc", NULL) |
| 184 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "sblaster", NULL) |
| 185 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, NULL, NULL) |
| 186 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL) |
| 187 | 187 | |
| 188 | 188 | /* keyboard */ |
| 189 | 189 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| r12174 | r12175 | |
| 208 | 208 | MCFG_FRAGMENT_ADD( pcvideo_ega ) |
| 209 | 209 | MCFG_PALETTE_LENGTH( 256 ) |
| 210 | 210 | |
| 211 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", pc_isa8_cards, "com", NULL) |
| 212 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", pc_isa8_cards, "fdc", NULL) |
| 213 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", pc_isa8_cards, "hdc", NULL) |
| 214 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "sblaster", NULL) |
| 215 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, NULL, NULL) |
| 216 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL, NULL) |
| 211 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "com", NULL) |
| 212 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "fdc", NULL) |
| 213 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "hdc", NULL) |
| 214 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "sblaster", NULL) |
| 215 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, NULL, NULL) |
| 216 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL) |
| 217 | 217 | |
| 218 | 218 | /* keyboard */ |
| 219 | 219 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| r12174 | r12175 | |
| 234 | 234 | MCFG_IBM5160_MOTHERBOARD_ADD("mb","maincpu",pc_keytronic_keyboard_intf) |
| 235 | 235 | MCFG_DEVICE_INPUT_DEFAULTS(vga) |
| 236 | 236 | |
| 237 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", pc_isa8_cards, "com", NULL) |
| 238 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", pc_isa8_cards, "fdc", NULL) |
| 239 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", pc_isa8_cards, "hdc", NULL) |
| 240 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "sblaster", NULL) |
| 241 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, NULL, NULL) |
| 242 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL, NULL) |
| 237 | MCFG_ISA8_SLOT_ADD("mb:isa","isa1", pc_isa8_cards, "com", NULL) |
| 238 | MCFG_ISA8_SLOT_ADD("mb:isa","isa2", pc_isa8_cards, "fdc", NULL) |
| 239 | MCFG_ISA8_SLOT_ADD("mb:isa","isa3", pc_isa8_cards, "hdc", NULL) |
| 240 | MCFG_ISA8_SLOT_ADD("mb:isa","isa4", pc_isa8_cards, "sblaster", NULL) |
| 241 | MCFG_ISA8_SLOT_ADD("mb:isa","isa5", pc_isa8_cards, NULL, NULL) |
| 242 | MCFG_ISA8_SLOT_ADD("mb:isa","isa6", pc_isa8_cards, NULL, NULL) |
| 243 | 243 | |
| 244 | 244 | /* video hardware */ |
| 245 | 245 | MCFG_IBM_VGA_ADD( "vga" ) |
src/mess/drivers/at.c
| r12174 | r12175 | |
| 449 | 449 | |
| 450 | 450 | MCFG_FRAGMENT_ADD( at_motherboard ) |
| 451 | 451 | MCFG_ISA16_BUS_ADD("isabus", "maincpu", isabus_intf) |
| 452 | | MCFG_ISA8_SLOT_ADD("isabus", 1, "isa1", pc_isa8_cards, "fdc", NULL) |
| 453 | | MCFG_ISA16_SLOT_ADD("isabus", 2, "isa2", pc_isa16_cards, "ide", NULL) |
| 452 | MCFG_ISA8_SLOT_ADD("isabus", "isa1", pc_isa8_cards, "fdc", NULL) |
| 453 | MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, "ide", NULL) |
| 454 | 454 | |
| 455 | 455 | MCFG_FRAGMENT_ADD( pcvideo_ega ) |
| 456 | 456 | |
| r12174 | r12175 | |
| 485 | 485 | MCFG_FRAGMENT_ADD( at_motherboard ) |
| 486 | 486 | |
| 487 | 487 | MCFG_ISA16_BUS_ADD("isabus", "maincpu", isabus_intf) |
| 488 | | MCFG_ISA8_SLOT_ADD("isabus", 1, "isa1", pc_isa8_cards, "fdc", NULL) |
| 489 | | MCFG_ISA16_SLOT_ADD("isabus", 2, "isa2", pc_isa16_cards, "ide", NULL) |
| 488 | MCFG_ISA8_SLOT_ADD("isabus", "isa1", pc_isa8_cards, "fdc", NULL) |
| 489 | MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, "ide", NULL) |
| 490 | 490 | |
| 491 | 491 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 492 | 492 | |
| r12174 | r12175 | |
| 506 | 506 | MCFG_FRAGMENT_ADD( at_motherboard ) |
| 507 | 507 | |
| 508 | 508 | MCFG_ISA16_BUS_ADD("isabus", "maincpu", isabus_intf) |
| 509 | | MCFG_ISA8_SLOT_ADD("isabus", 1, "isa1", pc_isa8_cards, "fdc", NULL) |
| 510 | | MCFG_ISA16_SLOT_ADD("isabus", 2, "isa2", pc_isa16_cards, "ide", NULL) |
| 509 | MCFG_ISA8_SLOT_ADD("isabus", "isa1", pc_isa8_cards, "fdc", NULL) |
| 510 | MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, "ide", NULL) |
| 511 | 511 | |
| 512 | 512 | MCFG_FRAGMENT_ADD( pcvideo_vga ) |
| 513 | 513 | |
| r12174 | r12175 | |
| 527 | 527 | MCFG_FRAGMENT_ADD( at_motherboard ) |
| 528 | 528 | |
| 529 | 529 | MCFG_ISA16_BUS_ADD("isabus", "maincpu", isabus_intf) |
| 530 | | MCFG_ISA8_SLOT_ADD("isabus", 1, "isa1", pc_isa8_cards, "fdc", NULL) |
| 531 | | MCFG_ISA16_SLOT_ADD("isabus", 2, "isa2", pc_isa16_cards, "ide", NULL) |
| 530 | MCFG_ISA8_SLOT_ADD("isabus", "isa1", pc_isa8_cards, "fdc", NULL) |
| 531 | MCFG_ISA16_SLOT_ADD("isabus", "isa2", pc_isa16_cards, "ide", NULL) |
| 532 | 532 | |
| 533 | 533 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 534 | 534 | |
| r12174 | r12175 | |
| 549 | 549 | MCFG_FRAGMENT_ADD( at_motherboard ) |
| 550 | 550 | |
| 551 | 551 | MCFG_ISA16_BUS_ADD("isabus", "maincpu", isabus_intf) |
| 552 | | MCFG_ISA8_SLOT_ADD("isabus", 1, "isa1", pc_isa8_cards, "fdc", NULL) |
| 553 | | MCFG_ISA16_SLOT_ADD("isabus", 2, "isa2", pc_isa16_cards, "ide", NULL) |
| 552 | MCFG_ISA8_SLOT_ADD("isabus", "isa1", pc_isa8_cards, "fdc", NULL) |
| 553 | MCFG_ISA16_SLOT_ADD("isabus","isa2", pc_isa16_cards, "ide", NULL) |
| 554 | 554 | |
| 555 | 555 | MCFG_FRAGMENT_ADD( pcvideo_vga ) |
| 556 | 556 | |
| r12174 | r12175 | |
| 568 | 568 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 569 | 569 | |
| 570 | 570 | MCFG_ISA16_BUS_ADD("isabus", "maincpu", isabus_intf) |
| 571 | | //MCFG_ISA8_ONBOARD_ADD("isabus", "fdc", ISA8_FDC, NULL) |
| 572 | | MCFG_ISA8_SLOT_ADD("isabus", 1, "isa1", pc_isa8_cards, "fdc", NULL) |
| 571 | MCFG_ISA8_ONBOARD_ADD("isabus", "fdc", ISA8_FDC, NULL) |
| 573 | 572 | |
| 574 | 573 | MCFG_FRAGMENT_ADD( pcvideo_vga ) |
| 575 | 574 | |
src/mess/drivers/ibmpc.c
| r12174 | r12175 | |
| 337 | 337 | /* video hardware */ |
| 338 | 338 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 339 | 339 | |
| 340 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", ibm_isa8_cards, "com", NULL) |
| 341 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", ibm_isa8_cards, "fdc", NULL) |
| 342 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", ibm_isa8_cards, "hdc", NULL) |
| 343 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", ibm_isa8_cards, NULL, NULL) |
| 344 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", ibm_isa8_cards, NULL, NULL) |
| 345 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", ibm_isa8_cards, NULL, NULL) |
| 340 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", ibm_isa8_cards, "com", NULL) |
| 341 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", ibm_isa8_cards, "fdc", NULL) |
| 342 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", ibm_isa8_cards, "hdc", NULL) |
| 343 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", ibm_isa8_cards, NULL, NULL) |
| 344 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", ibm_isa8_cards, NULL, NULL) |
| 345 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", ibm_isa8_cards, NULL, NULL) |
| 346 | 346 | |
| 347 | 347 | /* keyboard */ |
| 348 | 348 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| r12174 | r12175 | |
| 368 | 368 | /* video hardware */ |
| 369 | 369 | MCFG_FRAGMENT_ADD( pcvideo_cga ) |
| 370 | 370 | |
| 371 | | MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", ibm_isa8_cards, "com", NULL) |
| 372 | | MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", ibm_isa8_cards, "fdc", NULL) |
| 373 | | MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", ibm_isa8_cards, "hdc", NULL) |
| 374 | | MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", ibm_isa8_cards, NULL, NULL) |
| 375 | | MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", ibm_isa8_cards, NULL, NULL) |
| 376 | | MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", ibm_isa8_cards, NULL, NULL) |
| 371 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", ibm_isa8_cards, "com", NULL) |
| 372 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", ibm_isa8_cards, "fdc", NULL) |
| 373 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", ibm_isa8_cards, "hdc", NULL) |
| 374 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", ibm_isa8_cards, NULL, NULL) |
| 375 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", ibm_isa8_cards, NULL, NULL) |
| 376 | MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", ibm_isa8_cards, NULL, NULL) |
| 377 | 377 | |
| 378 | 378 | /* keyboard */ |
| 379 | 379 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |