diff options
Diffstat (limited to 'drivers/net/smc911x.h')
-rw-r--r-- | drivers/net/smc911x.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/smc911x.h b/drivers/net/smc911x.h index 7defa63b9c74..f4965585ba16 100644 --- a/drivers/net/smc911x.h +++ b/drivers/net/smc911x.h | |||
@@ -50,10 +50,8 @@ | |||
50 | */ | 50 | */ |
51 | 51 | ||
52 | #if SMC_USE_16BIT | 52 | #if SMC_USE_16BIT |
53 | #define SMC_inb(a, r) readb((a) + (r)) | ||
54 | #define SMC_inw(a, r) readw((a) + (r)) | 53 | #define SMC_inw(a, r) readw((a) + (r)) |
55 | #define SMC_inl(a, r) ((SMC_inw(a, r) & 0xFFFF)+(SMC_inw(a+2, r)<<16)) | 54 | #define SMC_inl(a, r) ((SMC_inw(a, r) & 0xFFFF)+(SMC_inw(a+2, r)<<16)) |
56 | #define SMC_outb(v, a, r) writeb(v, (a) + (r)) | ||
57 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) | 55 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) |
58 | #define SMC_outl(v, a, r) \ | 56 | #define SMC_outl(v, a, r) \ |
59 | do{ \ | 57 | do{ \ |
@@ -64,10 +62,8 @@ | |||
64 | #define SMC_outsl(a, r, p, l) writesw((short*)((a) + (r)), p, l*2) | 62 | #define SMC_outsl(a, r, p, l) writesw((short*)((a) + (r)), p, l*2) |
65 | 63 | ||
66 | #elif SMC_USE_32BIT | 64 | #elif SMC_USE_32BIT |
67 | #define SMC_inb(a, r) readb((a) + (r)) | ||
68 | #define SMC_inw(a, r) readw((a) + (r)) | 65 | #define SMC_inw(a, r) readw((a) + (r)) |
69 | #define SMC_inl(a, r) readl((a) + (r)) | 66 | #define SMC_inl(a, r) readl((a) + (r)) |
70 | #define SMC_outb(v, a, r) writeb(v, (a) + (r)) | ||
71 | #define SMC_outl(v, a, r) writel(v, (a) + (r)) | 67 | #define SMC_outl(v, a, r) writel(v, (a) + (r)) |
72 | #define SMC_insl(a, r, p, l) readsl((int*)((a) + (r)), p, l) | 68 | #define SMC_insl(a, r, p, l) readsl((int*)((a) + (r)), p, l) |
73 | #define SMC_outsl(a, r, p, l) writesl((int*)((a) + (r)), p, l) | 69 | #define SMC_outsl(a, r, p, l) writesl((int*)((a) + (r)), p, l) |