mirror of
https://github.com/holub/mame
synced 2025-05-21 21:29:15 +03:00
Added MDRV_PIT8353_ADD and MDRV_PIT8254_ADD macros.
This commit is contained in:
parent
e7a63caaec
commit
a32c38ad02
@ -29,6 +29,20 @@ struct pit8253_config
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
DEVICE CONFIGURATION MACROS
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#define MDRV_PIT8253_ADD(_tag, _intrf) \
|
||||||
|
MDRV_DEVICE_ADD(_tag, PIT8253) \
|
||||||
|
MDRV_DEVICE_CONFIG(_intrf)
|
||||||
|
|
||||||
|
|
||||||
|
#define MDRV_PIT8254_ADD(_tag, _intrf) \
|
||||||
|
MDRV_DEVICE_ADD(_tag, PIT8254) \
|
||||||
|
MDRV_DEVICE_CONFIG(_intrf)
|
||||||
|
|
||||||
|
|
||||||
/* device interface */
|
/* device interface */
|
||||||
DEVICE_GET_INFO( pit8253 );
|
DEVICE_GET_INFO( pit8253 );
|
||||||
DEVICE_GET_INFO( pit8254 );
|
DEVICE_GET_INFO( pit8254 );
|
||||||
|
@ -322,7 +322,7 @@ static WRITE8_HANDLER( vga_vram_w )
|
|||||||
/*end of Video HW file*/
|
/*end of Video HW file*/
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
const device_config *pit8254;
|
const device_config *pit8253;
|
||||||
const device_config *pic8259_1;
|
const device_config *pic8259_1;
|
||||||
const device_config *pic8259_2;
|
const device_config *pic8259_2;
|
||||||
const device_config *dma8237_1;
|
const device_config *dma8237_1;
|
||||||
@ -825,7 +825,7 @@ static MACHINE_RESET( filetto )
|
|||||||
lastvalue = -1;
|
lastvalue = -1;
|
||||||
hv_blank = 0;
|
hv_blank = 0;
|
||||||
cpu_set_irq_callback(machine->cpu[0], irq_callback);
|
cpu_set_irq_callback(machine->cpu[0], irq_callback);
|
||||||
filetto_devices.pit8254 = device_list_find_by_tag( machine->config->devicelist, PIT8254, "pit8254" );
|
filetto_devices.pit8253 = device_list_find_by_tag( machine->config->devicelist, PIT8253, "pit8253" );
|
||||||
filetto_devices.pic8259_1 = device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_1" );
|
filetto_devices.pic8259_1 = device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_1" );
|
||||||
filetto_devices.pic8259_2 = device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_2" );
|
filetto_devices.pic8259_2 = device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_2" );
|
||||||
filetto_devices.dma8237_1 = device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_1" );
|
filetto_devices.dma8237_1 = device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_1" );
|
||||||
@ -839,8 +839,7 @@ static MACHINE_DRIVER_START( filetto )
|
|||||||
|
|
||||||
MDRV_MACHINE_RESET( filetto )
|
MDRV_MACHINE_RESET( filetto )
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "pit8253", PIT8253 )
|
MDRV_PIT8253_ADD( "pit8253", pc_pit8253_config )
|
||||||
MDRV_DEVICE_CONFIG( pc_pit8253_config )
|
|
||||||
|
|
||||||
MDRV_PPI8255_ADD( "ppi8255_0", filetto_ppi8255_intf[0] )
|
MDRV_PPI8255_ADD( "ppi8255_0", filetto_ppi8255_intf[0] )
|
||||||
MDRV_PPI8255_ADD( "ppi8255_1", filetto_ppi8255_intf[1] )
|
MDRV_PPI8255_ADD( "ppi8255_1", filetto_ppi8255_intf[1] )
|
||||||
|
@ -666,8 +666,7 @@ static MACHINE_DRIVER_START(gamecstl)
|
|||||||
MDRV_PCI_BUS_DEVICE(0, NULL, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
|
MDRV_PCI_BUS_DEVICE(0, NULL, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
|
||||||
MDRV_PCI_BUS_DEVICE(7, NULL, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
|
MDRV_PCI_BUS_DEVICE(7, NULL, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "pit8254", PIT8254 )
|
MDRV_PIT8254_ADD( "pit8254", gamecstl_pit8254_config )
|
||||||
MDRV_DEVICE_CONFIG( gamecstl_pit8254_config )
|
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "dma8237_1", DMA8237 )
|
MDRV_DEVICE_ADD( "dma8237_1", DMA8237 )
|
||||||
MDRV_DEVICE_CONFIG( dma8237_1_config )
|
MDRV_DEVICE_CONFIG( dma8237_1_config )
|
||||||
|
@ -1044,8 +1044,7 @@ static MACHINE_DRIVER_START(mediagx)
|
|||||||
MDRV_PCI_BUS_ADD("pcibus", 0)
|
MDRV_PCI_BUS_ADD("pcibus", 0)
|
||||||
MDRV_PCI_BUS_DEVICE(18, NULL, NULL, cx5510_pci_r, cx5510_pci_w)
|
MDRV_PCI_BUS_DEVICE(18, NULL, NULL, cx5510_pci_r, cx5510_pci_w)
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "pit8254", PIT8254 )
|
MDRV_PIT8254_ADD( "pit8254", mediagx_pit8254_config )
|
||||||
MDRV_DEVICE_CONFIG( mediagx_pit8254_config )
|
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "dma8237_1", DMA8237 )
|
MDRV_DEVICE_ADD( "dma8237_1", DMA8237 )
|
||||||
MDRV_DEVICE_CONFIG( dma8237_1_config )
|
MDRV_DEVICE_CONFIG( dma8237_1_config )
|
||||||
|
@ -615,8 +615,7 @@ static MACHINE_DRIVER_START(taitowlf)
|
|||||||
MDRV_PCI_BUS_DEVICE(0, NULL, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
|
MDRV_PCI_BUS_DEVICE(0, NULL, NULL, intel82439tx_pci_r, intel82439tx_pci_w)
|
||||||
MDRV_PCI_BUS_DEVICE(7, NULL, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
|
MDRV_PCI_BUS_DEVICE(7, NULL, NULL, intel82371ab_pci_r, intel82371ab_pci_w)
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "pit8254", PIT8254 )
|
MDRV_PIT8254_ADD( "pit8254", taitowlf_pit8254_config )
|
||||||
MDRV_DEVICE_CONFIG( taitowlf_pit8254_config )
|
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "dma8237_1", DMA8237 )
|
MDRV_DEVICE_ADD( "dma8237_1", DMA8237 )
|
||||||
MDRV_DEVICE_CONFIG( dma8237_1_config )
|
MDRV_DEVICE_CONFIG( dma8237_1_config )
|
||||||
|
@ -110,8 +110,7 @@ static MACHINE_DRIVER_START( vertigo )
|
|||||||
|
|
||||||
MDRV_IMPORT_FROM(exidy440_audio)
|
MDRV_IMPORT_FROM(exidy440_audio)
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "pit8254", PIT8254 )
|
MDRV_PIT8254_ADD( "pit8254", vertigo_pit8254_config )
|
||||||
MDRV_DEVICE_CONFIG( vertigo_pit8254_config )
|
|
||||||
|
|
||||||
/* motor controller */
|
/* motor controller */
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user