35 #ifndef __MUSB_LINUX_PLATFORM_ARCH_H__
36 #define __MUSB_LINUX_PLATFORM_ARCH_H__
40 #if !defined(CONFIG_ARM) && !defined(CONFIG_SUPERH) \
41 && !defined(CONFIG_AVR32) && !defined(CONFIG_PPC32) \
42 && !defined(CONFIG_PPC64) && !defined(CONFIG_BLACKFIN) \
43 && !defined(CONFIG_MIPS) && !defined(CONFIG_M68K) \
44 && !defined(CONFIG_XTENSA)
46 {
insl((
unsigned long)addr, buf, len); }
47 static inline void readsw(
const void __iomem *addr,
void *buf,
int len)
48 {
insw((
unsigned long)addr, buf, len); }
49 static inline void readsb(
const void __iomem *addr,
void *buf,
int len)
50 {
insb((
unsigned long)addr, buf, len); }
52 static inline void writesl(
const void __iomem *addr,
const void *buf,
int len)
53 {
outsl((
unsigned long)addr, buf, len); }
54 static inline void writesw(
const void __iomem *addr,
const void *buf,
int len)
55 {
outsw((
unsigned long)addr, buf, len); }
56 static inline void writesb(
const void __iomem *addr,
const void *buf,
int len)
57 {
outsb((
unsigned long)addr, buf, len); }
61 #ifndef CONFIG_BLACKFIN
79 #if defined(CONFIG_USB_MUSB_TUSB6010) || defined (CONFIG_USB_MUSB_TUSB6010_MODULE)
98 static inline void musb_writeb(
void __iomem *addr,
unsigned offset,
u8 data)
104 tmp = (data << 8) | (tmp & 0xff);
106 tmp = (tmp & 0xff00) | data;
113 static inline u8 musb_readb(
const void __iomem *addr,
unsigned offset)
116 static inline void musb_writeb(
void __iomem *addr,
unsigned offset,
u8 data)
123 static inline u8 musb_readb(
const void __iomem *addr,
unsigned offset)
126 static inline u16 musb_readw(
const void __iomem *addr,
unsigned offset)
129 static inline u32 musb_readl(
const void __iomem *addr,
unsigned offset)
132 static inline void musb_writeb(
void __iomem *addr,
unsigned offset,
u8 data)
135 static inline void musb_writew(
void __iomem *addr,
unsigned offset,
u16 data)
138 static inline void musb_writel(
void __iomem *addr,
unsigned offset,
u32 data)