summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/lpci.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-05-26 19:14:55 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-05-26 19:14:55 +0200
commit5ab976b6794d2259225d10078e0b3246a11dd020 (patch)
tree90a65d31688e5a1b3f8f0dbeee983f317093088b /src/devices/machine/lpci.cpp
parente7521df68ebdfd58e554c3896fbfba8067099625 (diff)
drivers starting with b and c: some more macro removal (nw)
Diffstat (limited to 'src/devices/machine/lpci.cpp')
-rw-r--r--src/devices/machine/lpci.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/machine/lpci.cpp b/src/devices/machine/lpci.cpp
index 134fd1924c3..8c2fd6393e0 100644
--- a/src/devices/machine/lpci.cpp
+++ b/src/devices/machine/lpci.cpp
@@ -106,7 +106,7 @@ pci_bus_legacy_device::pci_bus_legacy_device(const machine_config &mconfig, cons
INLINE FUNCTIONS
***************************************************************************/
-READ32_MEMBER( pci_bus_legacy_device::read )
+uint32_t pci_bus_legacy_device::read(offs_t offset, uint32_t mem_mask)
{
uint32_t result = 0xffffffff;
int function, reg;
@@ -160,7 +160,7 @@ pci_bus_legacy_device *pci_bus_legacy_device::pci_search_bustree(int busnum, int
-WRITE32_MEMBER( pci_bus_legacy_device::write )
+void pci_bus_legacy_device::write(offs_t offset, uint32_t data, uint32_t mem_mask)
{
offset %= 2;
@@ -206,25 +206,25 @@ WRITE32_MEMBER( pci_bus_legacy_device::write )
-READ64_MEMBER(pci_bus_legacy_device::read_64be)
+uint64_t pci_bus_legacy_device::read_64be(offs_t offset, uint64_t mem_mask)
{
uint64_t result = 0;
mem_mask = swapendian_int64(mem_mask);
if (ACCESSING_BITS_0_31)
- result |= (uint64_t)read(space, offset * 2 + 0, mem_mask >> 0) << 0;
+ result |= (uint64_t)read(offset * 2 + 0, mem_mask >> 0) << 0;
if (ACCESSING_BITS_32_63)
- result |= (uint64_t)read(space, offset * 2 + 1, mem_mask >> 32) << 32;
+ result |= (uint64_t)read(offset * 2 + 1, mem_mask >> 32) << 32;
return swapendian_int64(result);
}
-WRITE64_MEMBER(pci_bus_legacy_device::write_64be)
+void pci_bus_legacy_device::write_64be(offs_t offset, uint64_t data, uint64_t mem_mask)
{
data = swapendian_int64(data);
mem_mask = swapendian_int64(mem_mask);
if (ACCESSING_BITS_0_31)
- write(space, offset * 2 + 0, data >> 0, mem_mask >> 0);
+ write(offset * 2 + 0, data >> 0, mem_mask >> 0);
if (ACCESSING_BITS_32_63)
- write(space, offset * 2 + 1, data >> 32, mem_mask >> 32);
+ write(offset * 2 + 1, data >> 32, mem_mask >> 32);
}