hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/mips/include/asm/mach-generic/floppy.h
....@@ -21,19 +21,18 @@
2121 #include <asm/floppy.h>
2222 #include <asm/io.h>
2323 #include <asm/irq.h>
24
-#include <asm/pgtable.h>
2524
2625 /*
2726 * How to access the FDC's registers.
2827 */
29
-static inline unsigned char fd_inb(unsigned int port)
28
+static inline unsigned char fd_inb(unsigned int base, unsigned int reg)
3029 {
31
- return inb_p(port);
30
+ return inb_p(base + reg);
3231 }
3332
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)
3534 {
36
- outb_p(value, port);
35
+ outb_p(value, base + reg);
3736 }
3837
3938 /*