diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_spi.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_spi.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_spi.h b/drivers/net/wireless/wl12xx/wl1271_spi.h index cb7df1c56314..a803596dad4a 100644 --- a/drivers/net/wireless/wl12xx/wl1271_spi.h +++ b/drivers/net/wireless/wl12xx/wl1271_spi.h | |||
@@ -90,37 +90,7 @@ void wl1271_spi_raw_write(struct wl1271 *wl, int addr, void *buf, | |||
90 | void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf, | 90 | void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf, |
91 | size_t len, bool fixed); | 91 | size_t len, bool fixed); |
92 | 92 | ||
93 | /* Translated target IO */ | ||
94 | void wl1271_spi_read(struct wl1271 *wl, int addr, void *buf, size_t len, | ||
95 | bool fixed); | ||
96 | void wl1271_spi_write(struct wl1271 *wl, int addr, void *buf, size_t len, | ||
97 | bool fixed); | ||
98 | u32 wl1271_spi_read32(struct wl1271 *wl, int addr); | ||
99 | void wl1271_spi_write32(struct wl1271 *wl, int addr, u32 val); | ||
100 | |||
101 | /* Top Register IO */ | ||
102 | void wl1271_top_reg_write(struct wl1271 *wl, int addr, u16 val); | ||
103 | u16 wl1271_top_reg_read(struct wl1271 *wl, int addr); | ||
104 | |||
105 | /* INIT and RESET words */ | 93 | /* INIT and RESET words */ |
106 | void wl1271_spi_reset(struct wl1271 *wl); | 94 | void wl1271_spi_reset(struct wl1271 *wl); |
107 | void wl1271_spi_init(struct wl1271 *wl); | 95 | void wl1271_spi_init(struct wl1271 *wl); |
108 | int wl1271_set_partition(struct wl1271 *wl, | ||
109 | struct wl1271_partition_set *p); | ||
110 | |||
111 | static inline u32 wl1271_raw_read32(struct wl1271 *wl, int addr) | ||
112 | { | ||
113 | wl1271_spi_raw_read(wl, addr, &wl->buffer_32, | ||
114 | sizeof(wl->buffer_32), false); | ||
115 | |||
116 | return wl->buffer_32; | ||
117 | } | ||
118 | |||
119 | static inline void wl1271_raw_write32(struct wl1271 *wl, int addr, u32 val) | ||
120 | { | ||
121 | wl->buffer_32 = val; | ||
122 | wl1271_spi_raw_write(wl, addr, &wl->buffer_32, | ||
123 | sizeof(wl->buffer_32), false); | ||
124 | } | ||
125 | |||
126 | #endif /* __WL1271_SPI_H__ */ | 96 | #endif /* __WL1271_SPI_H__ */ |