1 --- a/drivers/usb/host/isp116x.h
2 +++ b/drivers/usb/host/isp116x.h
3 @@ -364,22 +364,64 @@ struct isp116x_ep {
4 #define IRQ_TEST() do{}while(0)
8 +static inline void isp116x_writew(u16 val, void __iomem *addr)
10 + writew(cpu_to_le16(val), addr);
13 +static inline u16 isp116x_readw(void __iomem *addr)
15 + return le16_to_cpu(readw(addr));
18 +static inline void isp116x_raw_writew(u16 val, void __iomem *addr)
20 + writew(cpu_to_le16(val), addr);
23 +static inline u16 isp116x_raw_readw(void __iomem *addr)
25 + return le16_to_cpu(readw(addr));
28 +static inline void isp116x_writew(u16 val, void __iomem *addr)
33 +static inline u16 isp116x_readw(void __iomem *addr)
38 +static inline void isp116x_raw_writew(u16 val, void __iomem *addr)
40 + __raw_writew(val, addr);
43 +static inline u16 isp116x_raw_readw(void __iomem *addr)
45 + return __raw_readw(addr);
49 static inline void isp116x_write_addr(struct isp116x *isp116x, unsigned reg)
52 - writew(reg & 0xff, isp116x->addr_reg);
53 + isp116x_writew(reg & 0xff, isp116x->addr_reg);
54 isp116x_delay(isp116x, 300);
57 static inline void isp116x_write_data16(struct isp116x *isp116x, u16 val)
59 - writew(val, isp116x->data_reg);
60 + isp116x_writew(val, isp116x->data_reg);
61 isp116x_delay(isp116x, 150);
64 static inline void isp116x_raw_write_data16(struct isp116x *isp116x, u16 val)
66 - __raw_writew(val, isp116x->data_reg);
67 + isp116x_raw_writew(val, isp116x->data_reg);
68 isp116x_delay(isp116x, 150);
71 @@ -387,7 +429,7 @@ static inline u16 isp116x_read_data16(st
75 - val = readw(isp116x->data_reg);
76 + val = isp116x_readw(isp116x->data_reg);
77 isp116x_delay(isp116x, 150);
80 @@ -396,16 +438,16 @@ static inline u16 isp116x_raw_read_data1
84 - val = __raw_readw(isp116x->data_reg);
85 + val = isp116x_raw_readw(isp116x->data_reg);
86 isp116x_delay(isp116x, 150);
90 static inline void isp116x_write_data32(struct isp116x *isp116x, u32 val)
92 - writew(val & 0xffff, isp116x->data_reg);
93 + isp116x_writew(val & 0xffff, isp116x->data_reg);
94 isp116x_delay(isp116x, 150);
95 - writew(val >> 16, isp116x->data_reg);
96 + isp116x_writew(val >> 16, isp116x->data_reg);
97 isp116x_delay(isp116x, 150);
100 @@ -413,9 +455,9 @@ static inline u32 isp116x_read_data32(st
104 - val = (u32) readw(isp116x->data_reg);
105 + val = (u32) isp116x_readw(isp116x->data_reg);
106 isp116x_delay(isp116x, 150);
107 - val |= ((u32) readw(isp116x->data_reg)) << 16;
108 + val |= ((u32) isp116x_readw(isp116x->data_reg)) << 16;
109 isp116x_delay(isp116x, 150);