From 106e27478414a80e0959be52e55b23742855646c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 25 May 2018 22:28:49 +1000 Subject: 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 --- src/devices/machine/pci-smbus.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/devices/machine/pci-smbus.h') diff --git a/src/devices/machine/pci-smbus.h b/src/devices/machine/pci-smbus.h index b47d09b79f4..53489efa4c7 100644 --- a/src/devices/machine/pci-smbus.h +++ b/src/devices/machine/pci-smbus.h @@ -5,11 +5,13 @@ #include "pci.h" -#define MCFG_SMBUS_ADD(_tag, _main_id, _revision, _subdevice_id) \ - MCFG_PCI_DEVICE_ADD(_tag, SMBUS, _main_id, _revision, 0x0c0500, _subdevice_id) - class smbus_device : public pci_device { public: + smbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t main_id, uint32_t revision, uint32_t subdevice_id) + : smbus_device(mconfig, tag, owner, clock) + { + set_ids(main_id, revision, 0x0c0500, subdevice_id); + } smbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: -- cgit v1.2.3-70-g09d2