summaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-02-12 10:45:35 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-06-16 13:47:38 +0200
commit0dad16fd4e61b2d3a22ef0ea15ba8369bacf090a (patch)
tree117390a00d21cda450c6a871742d60a557712b04 /arch/cris
parent95f40de9df68dd4f618fb4fd141d2471b5ab017a (diff)
downloadtalos-op-linux-0dad16fd4e61b2d3a22ef0ea15ba8369bacf090a.tar.gz
talos-op-linux-0dad16fd4e61b2d3a22ef0ea15ba8369bacf090a.zip
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: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/include/asm/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/cris/include/asm/io.h b/arch/cris/include/asm/io.h
index ac12ae2b9286..5d3047e5563b 100644
--- a/arch/cris/include/asm/io.h
+++ b/arch/cris/include/asm/io.h
@@ -167,6 +167,9 @@ static inline void outsl(unsigned int port, const void *addr,
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
* access
OpenPOWER on IntegriCloud