From bdcbb77e3251dbf8a304fe6c07146b99e755fb70 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 11 Jan 2011 12:36:37 +0900 Subject: [PATCH] --- yaml --- r: 230511 b: refs/heads/master c: 0d6ae8fa945aba732edadce1ead9929520d61b99 h: refs/heads/master i: 230509: da81095899e38b05a91cd738a8df130d6cf8eb5f 230507: ddbe208bca382b6ff7a9f572d446d83b995da669 230503: 128fa9209eaa2e2198895b1dd630234b74a66b22 230495: 178008d7cbab612ff94cd98ab74eda5892f91c93 v: v3 --- [refs] | 2 +- trunk/arch/sh/include/asm/io.h | 51 ---------------------------------- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/[refs] b/[refs] index eac5decef123..342e67ca44f9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3bd75e5e0c5b58636aeadd34890114bcb988777e +refs/heads/master: 0d6ae8fa945aba732edadce1ead9929520d61b99 diff --git a/trunk/arch/sh/include/asm/io.h b/trunk/arch/sh/include/asm/io.h index 89ab2c57a4c2..70c1186b5088 100644 --- a/trunk/arch/sh/include/asm/io.h +++ b/trunk/arch/sh/include/asm/io.h @@ -11,11 +11,6 @@ * * While read{b,w,l,q} and write{b,w,l,q} contain memory barriers * automatically, there are also __raw versions, which do not. - * - * Historically, we have also had ctrl_in{b,w,l,q}/ctrl_out{b,w,l,q} for - * SuperH specific I/O (raw I/O to on-chip CPU peripherals). In practice - * these have the same semantics as the __raw variants, and as such, all - * new code should be using the __raw versions. */ #include #include @@ -231,52 +226,6 @@ __BUILD_IOPORT_STRING(q, u64) #endif -/* - * Legacy SuperH on-chip I/O functions - * - * These are all deprecated, all new (and especially cross-platform) code - * should be using the __raw_xxx() routines directly. - */ -static inline u8 __deprecated ctrl_inb(unsigned long addr) -{ - return __raw_readb(addr); -} - -static inline u16 __deprecated ctrl_inw(unsigned long addr) -{ - return __raw_readw(addr); -} - -static inline u32 __deprecated ctrl_inl(unsigned long addr) -{ - return __raw_readl(addr); -} - -static inline u64 __deprecated ctrl_inq(unsigned long addr) -{ - return __raw_readq(addr); -} - -static inline void __deprecated ctrl_outb(u8 v, unsigned long addr) -{ - __raw_writeb(v, addr); -} - -static inline void __deprecated ctrl_outw(u16 v, unsigned long addr) -{ - __raw_writew(v, addr); -} - -static inline void __deprecated ctrl_outl(u32 v, unsigned long addr) -{ - __raw_writel(v, addr); -} - -static inline void __deprecated ctrl_outq(u64 v, unsigned long addr) -{ - __raw_writeq(v, addr); -} - #define IO_SPACE_LIMIT 0xffffffff /* synco on SH-4A, otherwise a nop */