.. | .. |
---|
21 | 21 | #include <asm/floppy.h> |
---|
22 | 22 | #include <asm/io.h> |
---|
23 | 23 | #include <asm/irq.h> |
---|
24 | | -#include <asm/pgtable.h> |
---|
25 | 24 | |
---|
26 | 25 | /* |
---|
27 | 26 | * How to access the FDC's registers. |
---|
28 | 27 | */ |
---|
29 | | -static inline unsigned char fd_inb(unsigned int port) |
---|
| 28 | +static inline unsigned char fd_inb(unsigned int base, unsigned int reg) |
---|
30 | 29 | { |
---|
31 | | - return inb_p(port); |
---|
| 30 | + return inb_p(base + reg); |
---|
32 | 31 | } |
---|
33 | 32 | |
---|
34 | | -static inline void fd_outb(unsigned char value, unsigned int port) |
---|
| 33 | +static inline void fd_outb(unsigned char value, unsigned int base, unsigned int reg) |
---|
35 | 34 | { |
---|
36 | | - outb_p(value, port); |
---|
| 35 | + outb_p(value, base + reg); |
---|
37 | 36 | } |
---|
38 | 37 | |
---|
39 | 38 | /* |
---|