Previous 15994 Revisions Next

r6841 Friday 1st January, 2010 at 08:26:53 UTC by Miodrag Milanović
[AT586] Fix multisession issue, and reset problem
[src/emu/machine]pci.c
[src/mess/drivers]at.c
[src/mess/includes]at.h
[src/mess/machine]at.c i82439tx.c i82439tx.h

src/emu/machine/pci.c
r6840r6841
8181   const device_config *   busdevice;
8282   const pci_bus_config *   config;
8383   const device_config *   device[32];
84   offs_t               address;
84   UINT32               address;
8585   INT8               devicenum;
8686};
8787
r6840r6841
162162         {
163163            int busnum = (pcibus->address >> 16) & 0xff;
164164            int devicenum = (pcibus->address >> 11) & 0x1f;
165            pcibus->devicenum = (busnum == pcibus->config->busnum) ? devicenum : -1;
165            pcibus->devicenum = devicenum;//(busnum == pcibus->config->busnum) ? devicenum : -1;
166166         }
167167         break;
168168
src/mess/includes/at.h
r6840r6841
4646DRIVER_INIT( atcga );
4747DRIVER_INIT( atega );
4848DRIVER_INIT( at386 );
49DRIVER_INIT( at586 );
5049
5150DRIVER_INIT( at_vga );
5251DRIVER_INIT( ps2m30286 );
5352
5453MACHINE_START( at );
5554MACHINE_RESET( at );
55MACHINE_START( at586 );
56MACHINE_RESET( at586 );
5657
5758#endif /* AT_H_ */
src/mess/machine/at.c
r6840r6841
702702   at_kbdc8042.offset1 = 0xff;
703703}
704704
705
706
707DRIVER_INIT( at586 )
708{
709   DRIVER_INIT_CALL(at386);
710   intel82439tx_init(machine);
711}
712
713705DRIVER_INIT( at_vga )
714706{
715707   static const struct kbdc8042_interface at8042 =
r6840r6841
775767   pc_hdc_set_dma8237_device( st->dma8237_1 );
776768}
777769
770MACHINE_START( at586 )
771{
772   MACHINE_START_CALL(at);
773   intel82439tx_init(machine);
774}
775
776MACHINE_RESET( at586 )
777{
778   MACHINE_RESET_CALL(at);
779   intel82439tx_reset(machine);
780}
src/mess/machine/i82439tx.c
r6840r6841
212212}
213213
214214
215
216215void intel82439tx_init(running_machine *machine)
217216{
217   i82439tx = auto_alloc(machine, struct intel82439tx_info);
218}
219
220void intel82439tx_reset(running_machine *machine)
221{
218222   /* setup PCI */
219   i82439tx = auto_alloc(machine, struct intel82439tx_info);
220223   memset(i82439tx, 0, sizeof(*i82439tx));
221224   i82439tx->regs[0x00] = 0x14020000;
222225   i82439tx->regs[0x01] = 0x01520000;
src/mess/machine/i82439tx.h
r6840r6841
1010#define I82439TX_H
1111
1212void intel82439tx_init(running_machine *machine);
13void intel82439tx_reset(running_machine *machine);
1314UINT32 intel82439tx_pci_read(const device_config *busdevice, const device_config *device, int function, int offset, UINT32 mem_mask);
1415void intel82439tx_pci_write(const device_config *busdevice, const device_config *device, int function, int offset, UINT32 data, UINT32 mem_mask);
1516
src/mess/drivers/at.c
r6840r6841
832832static MACHINE_DRIVER_START( at586 )
833833   MDRV_IMPORT_FROM( at386 )
834834
835   MDRV_MACHINE_START( at586 )
836   MDRV_MACHINE_RESET( at586 )
837   
835838   MDRV_CPU_REPLACE("maincpu", PENTIUM, 60000000)
836839   MDRV_CPU_PROGRAM_MAP(at586_map)
837840   MDRV_CPU_IO_MAP(at586_io)
r6840r6841
12241227COMP ( 1989, neat,     ibm5170, 0,       ibm5162,  atcga,   atcga,       "",  "NEAT (CGA, MF2 Keyboard)", GAME_NOT_WORKING )
12251228COMP ( 1988, at386,    ibm5170, 0,       at386,     atvga,   at386,       "MITAC INC",  "PC/AT 386 (VGA, MF2 Keyboard)", GAME_NOT_WORKING )
12261229COMP ( 1990, at486,    ibm5170, 0,       at486,     atvga,   at386,       "",  "PC/AT 486 (VGA, MF2 Keyboard)", GAME_NOT_WORKING )
1227COMP ( 1990, at586,    ibm5170, 0,       at586,     atvga,   at586,       "",  "PC/AT 586 (VGA, MF2 Keyboard)", GAME_NOT_WORKING )
1230COMP ( 1990, at586,    ibm5170, 0,       at586,     atvga,   at386,       "",  "PC/AT 586 (VGA, MF2 Keyboard)", GAME_NOT_WORKING )
12281231COMP ( 1987, atvga,    ibm5170, 0,       atvga,     atvga,   at_vga,     "",  "PC/AT (VGA, MF2 Keyboard)" , GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team