| .. | .. |
|---|
| 15 | 15 | #include <asm/addrspace.h> |
|---|
| 16 | 16 | #include <asm/jazz.h> |
|---|
| 17 | 17 | #include <asm/jazzdma.h> |
|---|
| 18 | | -#include <asm/pgtable.h> |
|---|
| 19 | 18 | |
|---|
| 20 | | -static inline unsigned char fd_inb(unsigned int port) |
|---|
| 19 | +static inline unsigned char fd_inb(unsigned int base, unsigned int reg) |
|---|
| 21 | 20 | { |
|---|
| 22 | 21 | unsigned char c; |
|---|
| 23 | 22 | |
|---|
| 24 | | - c = *(volatile unsigned char *) port; |
|---|
| 23 | + c = *(volatile unsigned char *) (base + reg); |
|---|
| 25 | 24 | udelay(1); |
|---|
| 26 | 25 | |
|---|
| 27 | 26 | return c; |
|---|
| 28 | 27 | } |
|---|
| 29 | 28 | |
|---|
| 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) |
|---|
| 31 | 30 | { |
|---|
| 32 | | - *(volatile unsigned char *) port = value; |
|---|
| 31 | + *(volatile unsigned char *) (base + reg) = value; |
|---|
| 33 | 32 | } |
|---|
| 34 | 33 | |
|---|
| 35 | 34 | /* |
|---|