summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci-smbus.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-25 22:28:49 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-25 22:28:49 +1000
commit106e27478414a80e0959be52e55b23742855646c (patch)
treebaff6778e3449f8f9f7fb33a6935eaeb0bc5f255 /src/devices/machine/pci-smbus.h
parentfada3dfc8b58b1209c6dcd4cf7837b4d23c88d82 (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/pci-smbus.h')
-rw-r--r--src/devices/machine/pci-smbus.h8
1 files changed, 5 insertions, 3 deletions
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: