Skip to content

Commit 4c10d56

Browse files
Prameela Rani GarnepudiKalle Valo
authored andcommitted
rsi: add header file rsi_91x
The common parameters used by wlan and bt modules are add to a new header file "rsi_91x.h" defined in 'include/net' Signed-off-by: Prameela Rani Garnepudi <[email protected]> Signed-off-by: Siva Rebbagondla <[email protected]> Signed-off-by: Amitkumar Karwar <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent a4302bf commit 4c10d56

File tree

2 files changed

+36
-10
lines changed

2 files changed

+36
-10
lines changed

drivers/net/wireless/rsi/rsi_main.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/string.h>
2121
#include <linux/skbuff.h>
2222
#include <net/mac80211.h>
23+
#include <net/rsi_91x.h>
2324

2425
struct rsi_sta {
2526
struct ieee80211_sta *sta;
@@ -85,10 +86,6 @@ extern __printf(2, 3) void rsi_dbg(u32 zone, const char *fmt, ...);
8586
#define MGMT_HW_Q 10
8687
#define BEACON_HW_Q 11
8788

88-
/* Queue information */
89-
#define RSI_COEX_Q 0x0
90-
#define RSI_WIFI_MGMT_Q 0x4
91-
#define RSI_WIFI_DATA_Q 0x5
9289
#define IEEE80211_MGMT_FRAME 0x00
9390
#define IEEE80211_CTL_FRAME 0x04
9491

@@ -293,11 +290,6 @@ struct rsi_common {
293290
struct ieee80211_vif *roc_vif;
294291
};
295292

296-
enum host_intf {
297-
RSI_HOST_INTF_SDIO = 0,
298-
RSI_HOST_INTF_USB
299-
};
300-
301293
struct eepromrw_info {
302294
u32 offset;
303295
u32 length;
@@ -322,7 +314,7 @@ struct rsi_hw {
322314
struct device *device;
323315
u8 sc_nvifs;
324316

325-
enum host_intf rsi_host_intf;
317+
enum rsi_host_intf rsi_host_intf;
326318
u16 block_size;
327319
enum ps_state ps_state;
328320
struct rsi_ps_info ps_info;

include/net/rsi_91x.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright (c) 2017 Redpine Signals Inc.
3+
*
4+
* Permission to use, copy, modify, and/or distribute this software for any
5+
* purpose with or without fee is hereby granted, provided that the above
6+
* copyright notice and this permission notice appear in all copies.
7+
*
8+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15+
*/
16+
17+
#ifndef __RSI_HEADER_H__
18+
#define __RSI_HEADER_H__
19+
20+
/* HAL queue information */
21+
#define RSI_COEX_Q 0x0
22+
#define RSI_BT_Q 0x2
23+
#define RSI_WLAN_Q 0x3
24+
#define RSI_WIFI_MGMT_Q 0x4
25+
#define RSI_WIFI_DATA_Q 0x5
26+
#define RSI_BT_MGMT_Q 0x6
27+
#define RSI_BT_DATA_Q 0x7
28+
29+
enum rsi_host_intf {
30+
RSI_HOST_INTF_SDIO = 0,
31+
RSI_HOST_INTF_USB
32+
};
33+
34+
#endif

0 commit comments

Comments
 (0)