D | lan91c96.h | 62 #define SMCREG(edev, r) ((edev)->iobase+((r)<<SMC_IO_SHIFT)) argument 64 #define SMC_inl(edev, r) (*((volatile dword *)SMCREG(edev, r))) argument 65 #define SMC_inw(edev, r) (*((volatile word *)SMCREG(edev, r))) argument 66 #define SMC_inb(edev, p) ({ \ argument 68 unsigned int __v = SMC_inw(edev, __p & ~1); \ 73 #define SMC_outl(edev, d, r) (*((volatile dword *)SMCREG(edev, r)) = d) argument 74 #define SMC_outw(edev, d, r) (*((volatile word *)SMCREG(edev, r)) = d) argument 75 #define SMC_outb(edev, d, r) ({ word __d = (byte)(d); \ argument 76 word __w = SMC_inw(edev, (r)&~1); \ 79 SMC_outw(edev, __w, (r)&~1); \ [all …]
|