diff options
author | 2018-05-25 22:28:49 +1000 | |
---|---|---|
committer | 2018-05-25 22:28:49 +1000 | |
commit | 106e27478414a80e0959be52e55b23742855646c (patch) | |
tree | baff6778e3449f8f9f7fb33a6935eaeb0bc5f255 /src/devices/machine/i6300esb.h | |
parent | fada3dfc8b58b1209c6dcd4cf7837b4d23c88d82 (diff) |
remove many mainly PCI-related MCFG macros in favour of constructor
overloads, remove some absolute device lookups, remove some absolute
device tags, and generally clean up stuff
fix incorrect device class for PCI APIC
(nw) xbox machine config looks ugly now - the devices should expose
proper constructor overloads that accept the parts of the PCI ID that
are in system PROM or customisable by the OEM and hard-code the parts
inherent to the device
Diffstat (limited to 'src/devices/machine/i6300esb.h')
-rw-r--r-- | src/devices/machine/i6300esb.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/devices/machine/i6300esb.h b/src/devices/machine/i6300esb.h index 77a9ce5210c..dd154372dfc 100644 --- a/src/devices/machine/i6300esb.h +++ b/src/devices/machine/i6300esb.h @@ -10,12 +10,6 @@ #include "lpc-rtc.h" #include "lpc-pit.h" -#define MCFG_I6300ESB_LPC_ADD(_tag) \ - MCFG_PCI_DEVICE_ADD(_tag, I6300ESB_LPC, 0x808625a1, 0x02, 0x060100, 0x00000000) - -#define MCFG_I6300ESB_WATCHDOG_ADD(_tag, _subdevice_id) \ - MCFG_PCI_DEVICE_ADD(_tag, I6300ESB_WATCHDOG, 0x808625ab, 0x02, 0x088000, _subdevice_id) - class i6300esb_lpc_device : public pci_device { public: i6300esb_lpc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); @@ -26,7 +20,6 @@ public: virtual void config_map(address_map &map) override; - protected: virtual void device_start() override; virtual void device_reset() override; @@ -145,6 +138,11 @@ private: class i6300esb_watchdog_device : public pci_device { public: + i6300esb_watchdog_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subdevice_id) + : i6300esb_watchdog_device(mconfig, tag, owner, clock) + { + set_ids(0x808625ab, 0x02, 0x088000, subdevice_id); + } i6300esb_watchdog_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: |