Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <prameela.j04cs@gmail.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Prameela Rani Garnepudi and committed by
Kalle Valo
4c10d56a a4302bff

+36 -10
+2 -10
drivers/net/wireless/rsi/rsi_main.h
··· 20 20 #include <linux/string.h> 21 21 #include <linux/skbuff.h> 22 22 #include <net/mac80211.h> 23 + #include <net/rsi_91x.h> 23 24 24 25 struct rsi_sta { 25 26 struct ieee80211_sta *sta; ··· 86 85 #define MGMT_HW_Q 10 87 86 #define BEACON_HW_Q 11 88 87 89 - /* Queue information */ 90 - #define RSI_COEX_Q 0x0 91 - #define RSI_WIFI_MGMT_Q 0x4 92 - #define RSI_WIFI_DATA_Q 0x5 93 88 #define IEEE80211_MGMT_FRAME 0x00 94 89 #define IEEE80211_CTL_FRAME 0x04 95 90 ··· 290 293 struct ieee80211_vif *roc_vif; 291 294 }; 292 295 293 - enum host_intf { 294 - RSI_HOST_INTF_SDIO = 0, 295 - RSI_HOST_INTF_USB 296 - }; 297 - 298 296 struct eepromrw_info { 299 297 u32 offset; 300 298 u32 length; ··· 314 322 struct device *device; 315 323 u8 sc_nvifs; 316 324 317 - enum host_intf rsi_host_intf; 325 + enum rsi_host_intf rsi_host_intf; 318 326 u16 block_size; 319 327 enum ps_state ps_state; 320 328 struct rsi_ps_info ps_info;
+34
include/net/rsi_91x.h
··· 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