diff options
author | Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> | 2010-02-18 06:25:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-19 15:52:47 -0500 |
commit | 7b048c52d7283ebf07c826a45c631a6ba225c057 (patch) | |
tree | 913db3eb56919bca79b60070720735b2e2a3289a /drivers/net/wireless/wl12xx/wl1271_io.h | |
parent | 521a5b2137cc15430e3b1ea4c148663d1dbe077f (diff) |
wl1271: Renamed IO functions
In preparation for integration of SDIO implementation renamed some IO
functions from wl1271_spi_* form to wl1271_*.
Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_io.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_io.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_io.h b/drivers/net/wireless/wl12xx/wl1271_io.h index 2dc6abbe4dd5..859d571dc413 100644 --- a/drivers/net/wireless/wl12xx/wl1271_io.h +++ b/drivers/net/wireless/wl12xx/wl1271_io.h | |||
@@ -34,4 +34,33 @@ void wl1271_raw_write(struct wl1271 *wl, int addr, void *buf, | |||
34 | void wl1271_raw_read(struct wl1271 *wl, int addr, void *buf, | 34 | void wl1271_raw_read(struct wl1271 *wl, int addr, void *buf, |
35 | size_t len, bool fixed); | 35 | size_t len, bool fixed); |
36 | 36 | ||
37 | /* Translated target IO */ | ||
38 | void wl1271_read(struct wl1271 *wl, int addr, void *buf, size_t len, | ||
39 | bool fixed); | ||
40 | void wl1271_write(struct wl1271 *wl, int addr, void *buf, size_t len, | ||
41 | bool fixed); | ||
42 | u32 wl1271_read32(struct wl1271 *wl, int addr); | ||
43 | void wl1271_write32(struct wl1271 *wl, int addr, u32 val); | ||
44 | |||
45 | /* Top Register IO */ | ||
46 | void wl1271_top_reg_write(struct wl1271 *wl, int addr, u16 val); | ||
47 | u16 wl1271_top_reg_read(struct wl1271 *wl, int addr); | ||
48 | |||
49 | int wl1271_set_partition(struct wl1271 *wl, | ||
50 | struct wl1271_partition_set *p); | ||
51 | |||
52 | static inline u32 wl1271_raw_read32(struct wl1271 *wl, int addr) | ||
53 | { | ||
54 | wl1271_raw_read(wl, addr, &wl->buffer_32, | ||
55 | sizeof(wl->buffer_32), false); | ||
56 | |||
57 | return wl->buffer_32; | ||
58 | } | ||
59 | |||
60 | static inline void wl1271_raw_write32(struct wl1271 *wl, int addr, u32 val) | ||
61 | { | ||
62 | wl->buffer_32 = val; | ||
63 | wl1271_raw_write(wl, addr, &wl->buffer_32, | ||
64 | sizeof(wl->buffer_32), false); | ||
65 | } | ||
37 | #endif | 66 | #endif |