diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/spi.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/spi.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/spi.h b/drivers/net/wireless/wl12xx/spi.h index 0996e48af9f9..30f9098925f2 100644 --- a/drivers/net/wireless/wl12xx/spi.h +++ b/drivers/net/wireless/wl12xx/spi.h | |||
@@ -71,8 +71,9 @@ | |||
71 | 71 | ||
72 | 72 | ||
73 | /* Raw target IO, address is not translated */ | 73 | /* Raw target IO, address is not translated */ |
74 | void wl12xx_spi_read(struct wl12xx *wl, int addr, void *buf, size_t len); | ||
75 | void wl12xx_spi_write(struct wl12xx *wl, int addr, void *buf, size_t len); | 74 | void wl12xx_spi_write(struct wl12xx *wl, int addr, void *buf, size_t len); |
75 | void wl12xx_spi_read(struct wl12xx *wl, int addr, void *buf, | ||
76 | size_t len, bool fixed); | ||
76 | 77 | ||
77 | /* Memory target IO, address is tranlated to partition 0 */ | 78 | /* Memory target IO, address is tranlated to partition 0 */ |
78 | void wl12xx_spi_mem_read(struct wl12xx *wl, int addr, void *buf, size_t len); | 79 | void wl12xx_spi_mem_read(struct wl12xx *wl, int addr, void *buf, size_t len); |
@@ -81,7 +82,8 @@ u32 wl12xx_mem_read32(struct wl12xx *wl, int addr); | |||
81 | void wl12xx_mem_write32(struct wl12xx *wl, int addr, u32 val); | 82 | void wl12xx_mem_write32(struct wl12xx *wl, int addr, u32 val); |
82 | 83 | ||
83 | /* Registers IO */ | 84 | /* Registers IO */ |
84 | void wl12xx_spi_reg_read(struct wl12xx *wl, int addr, void *buf, size_t len); | 85 | void wl12xx_spi_reg_read(struct wl12xx *wl, int addr, void *buf, size_t len, |
86 | bool fixed); | ||
85 | void wl12xx_spi_reg_write(struct wl12xx *wl, int addr, void *buf,size_t len); | 87 | void wl12xx_spi_reg_write(struct wl12xx *wl, int addr, void *buf,size_t len); |
86 | u32 wl12xx_reg_read32(struct wl12xx *wl, int addr); | 88 | u32 wl12xx_reg_read32(struct wl12xx *wl, int addr); |
87 | void wl12xx_reg_write32(struct wl12xx *wl, int addr, u32 val); | 89 | void wl12xx_reg_write32(struct wl12xx *wl, int addr, u32 val); |
@@ -95,7 +97,8 @@ int wl12xx_set_partition(struct wl12xx *wl, | |||
95 | 97 | ||
96 | static inline u32 wl12xx_read32(struct wl12xx *wl, int addr) | 98 | static inline u32 wl12xx_read32(struct wl12xx *wl, int addr) |
97 | { | 99 | { |
98 | wl12xx_spi_read(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32)); | 100 | wl12xx_spi_read(wl, addr, &wl->buffer_32, |
101 | sizeof(wl->buffer_32), false); | ||
99 | 102 | ||
100 | return wl->buffer_32; | 103 | return wl->buffer_32; |
101 | } | 104 | } |