forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/include/asm/mach-jazz/floppy.h
....@@ -15,21 +15,20 @@
1515 #include <asm/addrspace.h>
1616 #include <asm/jazz.h>
1717 #include <asm/jazzdma.h>
18
-#include <asm/pgtable.h>
1918
20
-static inline unsigned char fd_inb(unsigned int port)
19
+static inline unsigned char fd_inb(unsigned int base, unsigned int reg)
2120 {
2221 unsigned char c;
2322
24
- c = *(volatile unsigned char *) port;
23
+ c = *(volatile unsigned char *) (base + reg);
2524 udelay(1);
2625
2726 return c;
2827 }
2928
30
-static inline void fd_outb(unsigned char value, unsigned int port)
29
+static inline void fd_outb(unsigned char value, unsigned int base, unsigned int reg)
3130 {
32
- *(volatile unsigned char *) port = value;
31
+ *(volatile unsigned char *) (base + reg) = value;
3332 }
3433
3534 /*