Commit 0dad16fd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

cris: Provide inb_p() and outb_p()

drivers/block/hd.c: In function 'check_status':
drivers/block/hd.c:256:2: error: implicit declaration of function 'inb_p' [-Werror=implicit-function-declaration]
drivers/block/hd.c: In function 'controller_ready':
drivers/block/hd.c:297:3: error: implicit declaration of function 'outb_p' [-Werror=implicit-function-declaration]
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 95f40de9
...@@ -167,6 +167,9 @@ static inline void outsl(unsigned int port, const void *addr, ...@@ -167,6 +167,9 @@ static inline void outsl(unsigned int port, const void *addr,
cris_iops->write_io(port, (void *)addr, 4, count); cris_iops->write_io(port, (void *)addr, 4, count);
} }
#define inb_p(port) inb(port)
#define outb_p(val, port) outb((val), (port))
/* /*
* Convert a physical pointer to a virtual kernel pointer for /dev/mem * Convert a physical pointer to a virtual kernel pointer for /dev/mem
* access * access
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment