diff options
Diffstat (limited to 'src/devices/bus/lpci/i82371ab.h')
-rw-r--r-- | src/devices/bus/lpci/i82371ab.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/devices/bus/lpci/i82371ab.h b/src/devices/bus/lpci/i82371ab.h new file mode 100644 index 00000000000..a905404e14c --- /dev/null +++ b/src/devices/bus/lpci/i82371ab.h @@ -0,0 +1,53 @@ +// license:BSD-3-Clause +// copyright-holders:Miodrag Milanovic +/*************************************************************************** + + Intel 82371AB PCI IDE ISA Xcelerator (PIIX4) + + Part of the Intel 430TX chipset + +***************************************************************************/ + +#ifndef __I82371AB_H__ +#define __I82371AB_H__ + +#include "pci.h" +#include "southbridge.h" + +// ======================> i82371ab_device + +class i82371ab_device : public southbridge_device, + public pci_device_interface +{ +public: + // construction/destruction + i82371ab_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + virtual UINT32 pci_read(pci_bus_device *pcibus, int function, int offset, UINT32 mem_mask); + virtual void pci_write(pci_bus_device *pcibus, int function, int offset, UINT32 data, UINT32 mem_mask); + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + UINT32 pci_isa_r(device_t *busdevice, int offset, UINT32 mem_mask); + void pci_isa_w(device_t *busdevice, int offset, UINT32 data, UINT32 mem_mask); + + UINT32 pci_ide_r(device_t *busdevice, int offset, UINT32 mem_mask); + void pci_ide_w(device_t *busdevice, int offset, UINT32 data, UINT32 mem_mask); + + UINT32 pci_usb_r(device_t *busdevice, int offset, UINT32 mem_mask); + void pci_usb_w(device_t *busdevice, int offset, UINT32 data, UINT32 mem_mask); + + UINT32 pci_acpi_r(device_t *busdevice, int offset, UINT32 mem_mask); + void pci_acpi_w(device_t *busdevice, int offset, UINT32 data, UINT32 mem_mask); + +private: + UINT8 m_regs[4][0x100]; +}; + +// device type definition +extern const device_type I82371AB; + +#endif /* __I82371AB_H__ */ |