diff options
author | Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> | 2010-02-22 01:38:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-09 15:02:58 -0500 |
commit | 760d969f9e91a734161a5979a3b3818062e80b7e (patch) | |
tree | 8c2e639dcc97990fc6d21a656c206e0c9e8d2bdc /drivers/net/wireless | |
parent | b42f91ba49ff135392b8f6140e21f85fb0467285 (diff) |
wl1271: Removed wl1271_spi.h and made some functions static
Removed wl1271_spi.h header as there's no more need to access functions
declared there outside of wl1271_spi.c. Also made those SPI access
functions static.
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')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_acx.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_boot.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_event.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_io.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_io.h | 17 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_ps.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_rx.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_spi.c | 44 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_spi.h | 99 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_testmode.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_tx.c | 1 |
13 files changed, 67 insertions, 116 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_acx.c b/drivers/net/wireless/wl12xx/wl1271_acx.c index 60f10dce4800..f41f886741f1 100644 --- a/drivers/net/wireless/wl12xx/wl1271_acx.c +++ b/drivers/net/wireless/wl12xx/wl1271_acx.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include "wl1271.h" | 31 | #include "wl1271.h" |
32 | #include "wl12xx_80211.h" | 32 | #include "wl12xx_80211.h" |
33 | #include "wl1271_reg.h" | 33 | #include "wl1271_reg.h" |
34 | #include "wl1271_spi.h" | ||
35 | #include "wl1271_ps.h" | 34 | #include "wl1271_ps.h" |
36 | 35 | ||
37 | int wl1271_acx_wake_up_conditions(struct wl1271 *wl) | 36 | int wl1271_acx_wake_up_conditions(struct wl1271 *wl) |
diff --git a/drivers/net/wireless/wl12xx/wl1271_boot.c b/drivers/net/wireless/wl12xx/wl1271_boot.c index 7d6d2e6c467f..f88d52e87e82 100644 --- a/drivers/net/wireless/wl12xx/wl1271_boot.c +++ b/drivers/net/wireless/wl12xx/wl1271_boot.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "wl1271_acx.h" | 26 | #include "wl1271_acx.h" |
27 | #include "wl1271_reg.h" | 27 | #include "wl1271_reg.h" |
28 | #include "wl1271_boot.h" | 28 | #include "wl1271_boot.h" |
29 | #include "wl1271_spi.h" | ||
30 | #include "wl1271_io.h" | 29 | #include "wl1271_io.h" |
31 | #include "wl1271_event.h" | 30 | #include "wl1271_event.h" |
32 | 31 | ||
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index 36a64e06f290..6759aa11c132 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c | |||
@@ -29,7 +29,6 @@ | |||
29 | 29 | ||
30 | #include "wl1271.h" | 30 | #include "wl1271.h" |
31 | #include "wl1271_reg.h" | 31 | #include "wl1271_reg.h" |
32 | #include "wl1271_spi.h" | ||
33 | #include "wl1271_io.h" | 32 | #include "wl1271_io.h" |
34 | #include "wl1271_acx.h" | 33 | #include "wl1271_acx.h" |
35 | #include "wl12xx_80211.h" | 34 | #include "wl12xx_80211.h" |
diff --git a/drivers/net/wireless/wl12xx/wl1271_event.c b/drivers/net/wireless/wl12xx/wl1271_event.c index 7468ef10194b..5533519a1418 100644 --- a/drivers/net/wireless/wl12xx/wl1271_event.c +++ b/drivers/net/wireless/wl12xx/wl1271_event.c | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #include "wl1271.h" | 24 | #include "wl1271.h" |
25 | #include "wl1271_reg.h" | 25 | #include "wl1271_reg.h" |
26 | #include "wl1271_spi.h" | ||
27 | #include "wl1271_io.h" | 26 | #include "wl1271_io.h" |
28 | #include "wl1271_event.h" | 27 | #include "wl1271_event.h" |
29 | #include "wl1271_ps.h" | 28 | #include "wl1271_ps.h" |
diff --git a/drivers/net/wireless/wl12xx/wl1271_io.c b/drivers/net/wireless/wl12xx/wl1271_io.c index c0826585a497..c8759acef131 100644 --- a/drivers/net/wireless/wl12xx/wl1271_io.c +++ b/drivers/net/wireless/wl12xx/wl1271_io.c | |||
@@ -28,9 +28,21 @@ | |||
28 | 28 | ||
29 | #include "wl1271.h" | 29 | #include "wl1271.h" |
30 | #include "wl12xx_80211.h" | 30 | #include "wl12xx_80211.h" |
31 | #include "wl1271_spi.h" | ||
32 | #include "wl1271_io.h" | 31 | #include "wl1271_io.h" |
33 | 32 | ||
33 | #define OCP_CMD_LOOP 32 | ||
34 | |||
35 | #define OCP_CMD_WRITE 0x1 | ||
36 | #define OCP_CMD_READ 0x2 | ||
37 | |||
38 | #define OCP_READY_MASK BIT(18) | ||
39 | #define OCP_STATUS_MASK (BIT(16) | BIT(17)) | ||
40 | |||
41 | #define OCP_STATUS_NO_RESP 0x00000 | ||
42 | #define OCP_STATUS_OK 0x10000 | ||
43 | #define OCP_STATUS_REQ_FAILED 0x20000 | ||
44 | #define OCP_STATUS_RESP_ERROR 0x30000 | ||
45 | |||
34 | void wl1271_disable_interrupts(struct wl1271 *wl) | 46 | void wl1271_disable_interrupts(struct wl1271 *wl) |
35 | { | 47 | { |
36 | wl->if_ops->disable_irq(wl); | 48 | wl->if_ops->disable_irq(wl); |
diff --git a/drivers/net/wireless/wl12xx/wl1271_io.h b/drivers/net/wireless/wl12xx/wl1271_io.h index 8501898950db..95d2168f8af4 100644 --- a/drivers/net/wireless/wl12xx/wl1271_io.h +++ b/drivers/net/wireless/wl12xx/wl1271_io.h | |||
@@ -25,6 +25,23 @@ | |||
25 | #ifndef __WL1271_IO_H__ | 25 | #ifndef __WL1271_IO_H__ |
26 | #define __WL1271_IO_H__ | 26 | #define __WL1271_IO_H__ |
27 | 27 | ||
28 | #include "wl1271_reg.h" | ||
29 | |||
30 | #define HW_ACCESS_MEMORY_MAX_RANGE 0x1FFC0 | ||
31 | |||
32 | #define HW_PARTITION_REGISTERS_ADDR 0x1FFC0 | ||
33 | #define HW_PART0_SIZE_ADDR (HW_PARTITION_REGISTERS_ADDR) | ||
34 | #define HW_PART0_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 4) | ||
35 | #define HW_PART1_SIZE_ADDR (HW_PARTITION_REGISTERS_ADDR + 8) | ||
36 | #define HW_PART1_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 12) | ||
37 | #define HW_PART2_SIZE_ADDR (HW_PARTITION_REGISTERS_ADDR + 16) | ||
38 | #define HW_PART2_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 20) | ||
39 | #define HW_PART3_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 24) | ||
40 | |||
41 | #define HW_ACCESS_REGISTER_SIZE 4 | ||
42 | |||
43 | #define HW_ACCESS_PRAM_MAX_RANGE 0x3c000 | ||
44 | |||
28 | struct wl1271; | 45 | struct wl1271; |
29 | 46 | ||
30 | void wl1271_disable_interrupts(struct wl1271 *wl); | 47 | void wl1271_disable_interrupts(struct wl1271 *wl); |
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 6b3fd0005ce0..54bc1e961cba 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include "wl1271.h" | 33 | #include "wl1271.h" |
34 | #include "wl12xx_80211.h" | 34 | #include "wl12xx_80211.h" |
35 | #include "wl1271_reg.h" | 35 | #include "wl1271_reg.h" |
36 | #include "wl1271_spi.h" | ||
37 | #include "wl1271_io.h" | 36 | #include "wl1271_io.h" |
38 | #include "wl1271_event.h" | 37 | #include "wl1271_event.h" |
39 | #include "wl1271_tx.h" | 38 | #include "wl1271_tx.h" |
diff --git a/drivers/net/wireless/wl12xx/wl1271_ps.c b/drivers/net/wireless/wl12xx/wl1271_ps.c index e2b1ebf096e8..5a04482b9353 100644 --- a/drivers/net/wireless/wl12xx/wl1271_ps.c +++ b/drivers/net/wireless/wl12xx/wl1271_ps.c | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #include "wl1271_reg.h" | 24 | #include "wl1271_reg.h" |
25 | #include "wl1271_ps.h" | 25 | #include "wl1271_ps.h" |
26 | #include "wl1271_spi.h" | ||
27 | #include "wl1271_io.h" | 26 | #include "wl1271_io.h" |
28 | 27 | ||
29 | #define WL1271_WAKEUP_TIMEOUT 500 | 28 | #define WL1271_WAKEUP_TIMEOUT 500 |
diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c index 6730f5b96e76..b7a7c0621ec1 100644 --- a/drivers/net/wireless/wl12xx/wl1271_rx.c +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "wl1271_acx.h" | 25 | #include "wl1271_acx.h" |
26 | #include "wl1271_reg.h" | 26 | #include "wl1271_reg.h" |
27 | #include "wl1271_rx.h" | 27 | #include "wl1271_rx.h" |
28 | #include "wl1271_spi.h" | ||
29 | #include "wl1271_io.h" | 28 | #include "wl1271_io.h" |
30 | 29 | ||
31 | static u8 wl1271_rx_get_mem_block(struct wl1271_fw_status *status, | 30 | static u8 wl1271_rx_get_mem_block(struct wl1271_fw_status *status, |
diff --git a/drivers/net/wireless/wl12xx/wl1271_spi.c b/drivers/net/wireless/wl12xx/wl1271_spi.c index f89e1b3ac1bb..51171d7d5da3 100644 --- a/drivers/net/wireless/wl12xx/wl1271_spi.c +++ b/drivers/net/wireless/wl12xx/wl1271_spi.c | |||
@@ -30,9 +30,39 @@ | |||
30 | 30 | ||
31 | #include "wl1271.h" | 31 | #include "wl1271.h" |
32 | #include "wl12xx_80211.h" | 32 | #include "wl12xx_80211.h" |
33 | #include "wl1271_spi.h" | ||
34 | #include "wl1271_io.h" | 33 | #include "wl1271_io.h" |
35 | 34 | ||
35 | #include "wl1271_reg.h" | ||
36 | |||
37 | #define WSPI_CMD_READ 0x40000000 | ||
38 | #define WSPI_CMD_WRITE 0x00000000 | ||
39 | #define WSPI_CMD_FIXED 0x20000000 | ||
40 | #define WSPI_CMD_BYTE_LENGTH 0x1FFE0000 | ||
41 | #define WSPI_CMD_BYTE_LENGTH_OFFSET 17 | ||
42 | #define WSPI_CMD_BYTE_ADDR 0x0001FFFF | ||
43 | |||
44 | #define WSPI_INIT_CMD_CRC_LEN 5 | ||
45 | |||
46 | #define WSPI_INIT_CMD_START 0x00 | ||
47 | #define WSPI_INIT_CMD_TX 0x40 | ||
48 | /* the extra bypass bit is sampled by the TNET as '1' */ | ||
49 | #define WSPI_INIT_CMD_BYPASS_BIT 0x80 | ||
50 | #define WSPI_INIT_CMD_FIXEDBUSY_LEN 0x07 | ||
51 | #define WSPI_INIT_CMD_EN_FIXEDBUSY 0x80 | ||
52 | #define WSPI_INIT_CMD_DIS_FIXEDBUSY 0x00 | ||
53 | #define WSPI_INIT_CMD_IOD 0x40 | ||
54 | #define WSPI_INIT_CMD_IP 0x20 | ||
55 | #define WSPI_INIT_CMD_CS 0x10 | ||
56 | #define WSPI_INIT_CMD_WS 0x08 | ||
57 | #define WSPI_INIT_CMD_WSPI 0x01 | ||
58 | #define WSPI_INIT_CMD_END 0x01 | ||
59 | |||
60 | #define WSPI_INIT_CMD_LEN 8 | ||
61 | |||
62 | #define HW_ACCESS_WSPI_FIXED_BUSY_LEN \ | ||
63 | ((WL1271_BUSY_WORD_LEN - 4) / sizeof(u32)) | ||
64 | #define HW_ACCESS_WSPI_INIT_CMD_MASK 0 | ||
65 | |||
36 | static inline struct spi_device *wl_to_spi(struct wl1271 *wl) | 66 | static inline struct spi_device *wl_to_spi(struct wl1271 *wl) |
37 | { | 67 | { |
38 | return wl->if_priv; | 68 | return wl->if_priv; |
@@ -43,17 +73,17 @@ static struct device *wl1271_spi_wl_to_dev(struct wl1271 *wl) | |||
43 | return &(wl_to_spi(wl)->dev); | 73 | return &(wl_to_spi(wl)->dev); |
44 | } | 74 | } |
45 | 75 | ||
46 | void wl1271_spi_disable_interrupts(struct wl1271 *wl) | 76 | static void wl1271_spi_disable_interrupts(struct wl1271 *wl) |
47 | { | 77 | { |
48 | disable_irq(wl->irq); | 78 | disable_irq(wl->irq); |
49 | } | 79 | } |
50 | 80 | ||
51 | void wl1271_spi_enable_interrupts(struct wl1271 *wl) | 81 | static void wl1271_spi_enable_interrupts(struct wl1271 *wl) |
52 | { | 82 | { |
53 | enable_irq(wl->irq); | 83 | enable_irq(wl->irq); |
54 | } | 84 | } |
55 | 85 | ||
56 | void wl1271_spi_reset(struct wl1271 *wl) | 86 | static void wl1271_spi_reset(struct wl1271 *wl) |
57 | { | 87 | { |
58 | u8 *cmd; | 88 | u8 *cmd; |
59 | struct spi_transfer t; | 89 | struct spi_transfer t; |
@@ -79,7 +109,7 @@ void wl1271_spi_reset(struct wl1271 *wl) | |||
79 | wl1271_dump(DEBUG_SPI, "spi reset -> ", cmd, WSPI_INIT_CMD_LEN); | 109 | wl1271_dump(DEBUG_SPI, "spi reset -> ", cmd, WSPI_INIT_CMD_LEN); |
80 | } | 110 | } |
81 | 111 | ||
82 | void wl1271_spi_init(struct wl1271 *wl) | 112 | static void wl1271_spi_init(struct wl1271 *wl) |
83 | { | 113 | { |
84 | u8 crc[WSPI_INIT_CMD_CRC_LEN], *cmd; | 114 | u8 crc[WSPI_INIT_CMD_CRC_LEN], *cmd; |
85 | struct spi_transfer t; | 115 | struct spi_transfer t; |
@@ -199,7 +229,7 @@ static void wl1271_spi_read_busy(struct wl1271 *wl, void *buf, size_t len) | |||
199 | } | 229 | } |
200 | #endif | 230 | #endif |
201 | 231 | ||
202 | void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf, | 232 | static void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf, |
203 | size_t len, bool fixed) | 233 | size_t len, bool fixed) |
204 | { | 234 | { |
205 | struct spi_transfer t[3]; | 235 | struct spi_transfer t[3]; |
@@ -244,7 +274,7 @@ void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf, | |||
244 | wl1271_dump(DEBUG_SPI, "spi_read buf <- ", buf, len); | 274 | wl1271_dump(DEBUG_SPI, "spi_read buf <- ", buf, len); |
245 | } | 275 | } |
246 | 276 | ||
247 | void wl1271_spi_raw_write(struct wl1271 *wl, int addr, void *buf, | 277 | static void wl1271_spi_raw_write(struct wl1271 *wl, int addr, void *buf, |
248 | size_t len, bool fixed) | 278 | size_t len, bool fixed) |
249 | { | 279 | { |
250 | struct spi_transfer t[2]; | 280 | struct spi_transfer t[2]; |
diff --git a/drivers/net/wireless/wl12xx/wl1271_spi.h b/drivers/net/wireless/wl12xx/wl1271_spi.h deleted file mode 100644 index 86ff161ef243..000000000000 --- a/drivers/net/wireless/wl12xx/wl1271_spi.h +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | /* | ||
2 | * This file is part of wl1271 | ||
3 | * | ||
4 | * Copyright (C) 1998-2009 Texas Instruments. All rights reserved. | ||
5 | * Copyright (C) 2008-2009 Nokia Corporation | ||
6 | * | ||
7 | * Contact: Luciano Coelho <luciano.coelho@nokia.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public License | ||
11 | * version 2 as published by the Free Software Foundation. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but | ||
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
21 | * 02110-1301 USA | ||
22 | * | ||
23 | */ | ||
24 | |||
25 | #ifndef __WL1271_SPI_H__ | ||
26 | #define __WL1271_SPI_H__ | ||
27 | |||
28 | #include "wl1271_reg.h" | ||
29 | |||
30 | #define HW_ACCESS_MEMORY_MAX_RANGE 0x1FFC0 | ||
31 | |||
32 | #define HW_PARTITION_REGISTERS_ADDR 0x1ffc0 | ||
33 | #define HW_PART0_SIZE_ADDR (HW_PARTITION_REGISTERS_ADDR) | ||
34 | #define HW_PART0_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 4) | ||
35 | #define HW_PART1_SIZE_ADDR (HW_PARTITION_REGISTERS_ADDR + 8) | ||
36 | #define HW_PART1_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 12) | ||
37 | #define HW_PART2_SIZE_ADDR (HW_PARTITION_REGISTERS_ADDR + 16) | ||
38 | #define HW_PART2_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 20) | ||
39 | #define HW_PART3_START_ADDR (HW_PARTITION_REGISTERS_ADDR + 24) | ||
40 | |||
41 | #define HW_ACCESS_REGISTER_SIZE 4 | ||
42 | |||
43 | #define HW_ACCESS_PRAM_MAX_RANGE 0x3c000 | ||
44 | |||
45 | #define WSPI_CMD_READ 0x40000000 | ||
46 | #define WSPI_CMD_WRITE 0x00000000 | ||
47 | #define WSPI_CMD_FIXED 0x20000000 | ||
48 | #define WSPI_CMD_BYTE_LENGTH 0x1FFE0000 | ||
49 | #define WSPI_CMD_BYTE_LENGTH_OFFSET 17 | ||
50 | #define WSPI_CMD_BYTE_ADDR 0x0001FFFF | ||
51 | |||
52 | #define WSPI_INIT_CMD_CRC_LEN 5 | ||
53 | |||
54 | #define WSPI_INIT_CMD_START 0x00 | ||
55 | #define WSPI_INIT_CMD_TX 0x40 | ||
56 | /* the extra bypass bit is sampled by the TNET as '1' */ | ||
57 | #define WSPI_INIT_CMD_BYPASS_BIT 0x80 | ||
58 | #define WSPI_INIT_CMD_FIXEDBUSY_LEN 0x07 | ||
59 | #define WSPI_INIT_CMD_EN_FIXEDBUSY 0x80 | ||
60 | #define WSPI_INIT_CMD_DIS_FIXEDBUSY 0x00 | ||
61 | #define WSPI_INIT_CMD_IOD 0x40 | ||
62 | #define WSPI_INIT_CMD_IP 0x20 | ||
63 | #define WSPI_INIT_CMD_CS 0x10 | ||
64 | #define WSPI_INIT_CMD_WS 0x08 | ||
65 | #define WSPI_INIT_CMD_WSPI 0x01 | ||
66 | #define WSPI_INIT_CMD_END 0x01 | ||
67 | |||
68 | #define WSPI_INIT_CMD_LEN 8 | ||
69 | |||
70 | #define HW_ACCESS_WSPI_FIXED_BUSY_LEN \ | ||
71 | ((WL1271_BUSY_WORD_LEN - 4) / sizeof(u32)) | ||
72 | #define HW_ACCESS_WSPI_INIT_CMD_MASK 0 | ||
73 | |||
74 | #define OCP_CMD_LOOP 32 | ||
75 | |||
76 | #define OCP_CMD_WRITE 0x1 | ||
77 | #define OCP_CMD_READ 0x2 | ||
78 | |||
79 | #define OCP_READY_MASK BIT(18) | ||
80 | #define OCP_STATUS_MASK (BIT(16) | BIT(17)) | ||
81 | |||
82 | #define OCP_STATUS_NO_RESP 0x00000 | ||
83 | #define OCP_STATUS_OK 0x10000 | ||
84 | #define OCP_STATUS_REQ_FAILED 0x20000 | ||
85 | #define OCP_STATUS_RESP_ERROR 0x30000 | ||
86 | |||
87 | void wl1271_spi_disable_interrupts(struct wl1271 *wl); | ||
88 | void wl1271_spi_enable_interrupts(struct wl1271 *wl); | ||
89 | |||
90 | /* Raw target IO, address is not translated */ | ||
91 | void wl1271_spi_raw_write(struct wl1271 *wl, int addr, void *buf, | ||
92 | size_t len, bool fixed); | ||
93 | void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf, | ||
94 | size_t len, bool fixed); | ||
95 | |||
96 | /* INIT and RESET words */ | ||
97 | void wl1271_spi_reset(struct wl1271 *wl); | ||
98 | void wl1271_spi_init(struct wl1271 *wl); | ||
99 | #endif /* __WL1271_SPI_H__ */ | ||
diff --git a/drivers/net/wireless/wl12xx/wl1271_testmode.c b/drivers/net/wireless/wl12xx/wl1271_testmode.c index 3919102e942e..2401e6035d51 100644 --- a/drivers/net/wireless/wl12xx/wl1271_testmode.c +++ b/drivers/net/wireless/wl12xx/wl1271_testmode.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <net/genetlink.h> | 25 | #include <net/genetlink.h> |
26 | 26 | ||
27 | #include "wl1271.h" | 27 | #include "wl1271.h" |
28 | #include "wl1271_spi.h" | ||
29 | #include "wl1271_acx.h" | 28 | #include "wl1271_acx.h" |
30 | 29 | ||
31 | #define WL1271_TM_MAX_DATA_LENGTH 1024 | 30 | #define WL1271_TM_MAX_DATA_LENGTH 1024 |
diff --git a/drivers/net/wireless/wl12xx/wl1271_tx.c b/drivers/net/wireless/wl12xx/wl1271_tx.c index 811e739d05bf..2b7dd9b76fe1 100644 --- a/drivers/net/wireless/wl12xx/wl1271_tx.c +++ b/drivers/net/wireless/wl12xx/wl1271_tx.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | 26 | ||
27 | #include "wl1271.h" | 27 | #include "wl1271.h" |
28 | #include "wl1271_spi.h" | ||
29 | #include "wl1271_io.h" | 28 | #include "wl1271_io.h" |
30 | #include "wl1271_reg.h" | 29 | #include "wl1271_reg.h" |
31 | #include "wl1271_ps.h" | 30 | #include "wl1271_ps.h" |