Don't check for not-intel when you mean ppc!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26101 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b9f1ded35e
commit
94b31b08db
@ -161,19 +161,20 @@ typedef struct etherpci_private {
|
||||
} etherpci_private_t;
|
||||
|
||||
|
||||
#if __INTEL__
|
||||
#define ether_outb(device, offset, value) (*gPCIModInfo->write_io_8)((device->reg_base + (offset)), (value))
|
||||
#define ether_outw(device, offset, value) (*gPCIModInfo->write_io_16)((device->reg_base + (offset)), (value))
|
||||
#define ether_inb(device, offset) ((*gPCIModInfo->read_io_8)(device->reg_base + (offset)))
|
||||
#define ether_inw(device, offset) ((*gPCIModInfo->read_io_16)(device->reg_base + (offset)))
|
||||
|
||||
#else /* PPC */
|
||||
#if __POWERPC__
|
||||
|
||||
#define ether_inb(device, offset) (*((volatile uint8*)(device->reg_base + (offset)))); __eieio()
|
||||
#define ether_inw(device, offset) (*((volatile uint16*)(device->reg_base + (offset)))); __eieio()
|
||||
#define ether_outb(device, offset, value) (*((volatile uint8 *)(device->reg_base + (offset))) = (value)); __eieio()
|
||||
#define ether_outw(device, offset, value) (*((volatile uint16*)(device->reg_base + (offset))) = (value)); __eieio()
|
||||
|
||||
#else /* !PPC */
|
||||
|
||||
#define ether_outb(device, offset, value) (*gPCIModInfo->write_io_8)((device->reg_base + (offset)), (value))
|
||||
#define ether_outw(device, offset, value) (*gPCIModInfo->write_io_16)((device->reg_base + (offset)), (value))
|
||||
#define ether_inb(device, offset) ((*gPCIModInfo->read_io_8)(device->reg_base + (offset)))
|
||||
#define ether_inw(device, offset) ((*gPCIModInfo->read_io_16)(device->reg_base + (offset)))
|
||||
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user