diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/wifi.h')
-rw-r--r-- | drivers/net/wireless/rtlwifi/wifi.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h index ae55efad7a19..35e13eef9583 100644 --- a/drivers/net/wireless/rtlwifi/wifi.h +++ b/drivers/net/wireless/rtlwifi/wifi.h | |||
@@ -578,11 +578,11 @@ struct rtl_probe_rsp { | |||
578 | struct rtl_led { | 578 | struct rtl_led { |
579 | void *hw; | 579 | void *hw; |
580 | enum rtl_led_pin ledpin; | 580 | enum rtl_led_pin ledpin; |
581 | bool b_ledon; | 581 | bool ledon; |
582 | }; | 582 | }; |
583 | 583 | ||
584 | struct rtl_led_ctl { | 584 | struct rtl_led_ctl { |
585 | bool bled_opendrain; | 585 | bool led_opendrain; |
586 | struct rtl_led sw_led0; | 586 | struct rtl_led sw_led0; |
587 | struct rtl_led sw_led1; | 587 | struct rtl_led sw_led1; |
588 | }; | 588 | }; |
@@ -727,10 +727,10 @@ struct rtl_phy { | |||
727 | u32 iqk_mac_backup[IQK_MAC_REG_NUM]; | 727 | u32 iqk_mac_backup[IQK_MAC_REG_NUM]; |
728 | u32 iqk_bb_backup[10]; | 728 | u32 iqk_bb_backup[10]; |
729 | 729 | ||
730 | bool b_rfpi_enable; | 730 | bool rfpi_enable; |
731 | 731 | ||
732 | u8 pwrgroup_cnt; | 732 | u8 pwrgroup_cnt; |
733 | u8 bcck_high_power; | 733 | u8 cck_high_power; |
734 | /* 3 groups of pwr diff by rates*/ | 734 | /* 3 groups of pwr diff by rates*/ |
735 | u32 mcs_txpwrlevel_origoffset[4][16]; | 735 | u32 mcs_txpwrlevel_origoffset[4][16]; |
736 | u8 default_initialgain[4]; | 736 | u8 default_initialgain[4]; |
@@ -740,7 +740,7 @@ struct rtl_phy { | |||
740 | u8 cur_ofdm24g_txpwridx; | 740 | u8 cur_ofdm24g_txpwridx; |
741 | 741 | ||
742 | u32 rfreg_chnlval[2]; | 742 | u32 rfreg_chnlval[2]; |
743 | bool b_apk_done; | 743 | bool apk_done; |
744 | 744 | ||
745 | /*fsync*/ | 745 | /*fsync*/ |
746 | u8 framesync; | 746 | u8 framesync; |
@@ -867,9 +867,9 @@ struct rtl_hal { | |||
867 | 867 | ||
868 | /*firmware */ | 868 | /*firmware */ |
869 | u8 *pfirmware; | 869 | u8 *pfirmware; |
870 | bool b_h2c_setinprogress; | 870 | bool h2c_setinprogress; |
871 | u8 last_hmeboxnum; | 871 | u8 last_hmeboxnum; |
872 | bool bfw_ready; | 872 | bool fw_ready; |
873 | /*Reserve page start offset except beacon in TxQ. */ | 873 | /*Reserve page start offset except beacon in TxQ. */ |
874 | u8 fw_rsvdpage_startoffset; | 874 | u8 fw_rsvdpage_startoffset; |
875 | }; | 875 | }; |
@@ -900,17 +900,17 @@ struct rtl_dm { | |||
900 | long entry_min_undecoratedsmoothed_pwdb; | 900 | long entry_min_undecoratedsmoothed_pwdb; |
901 | long undecorated_smoothed_pwdb; /*out dm */ | 901 | long undecorated_smoothed_pwdb; /*out dm */ |
902 | long entry_max_undecoratedsmoothed_pwdb; | 902 | long entry_max_undecoratedsmoothed_pwdb; |
903 | bool b_dm_initialgain_enable; | 903 | bool dm_initialgain_enable; |
904 | bool bdynamic_txpower_enable; | 904 | bool dynamic_txpower_enable; |
905 | bool bcurrent_turbo_edca; | 905 | bool current_turbo_edca; |
906 | bool bis_any_nonbepkts; /*out dm */ | 906 | bool is_any_nonbepkts; /*out dm */ |
907 | bool bis_cur_rdlstate; | 907 | bool is_cur_rdlstate; |
908 | bool btxpower_trackingInit; | 908 | bool txpower_trackingInit; |
909 | bool b_disable_framebursting; | 909 | bool disable_framebursting; |
910 | bool b_cck_inch14; | 910 | bool cck_inch14; |
911 | bool btxpower_tracking; | 911 | bool txpower_tracking; |
912 | bool b_useramask; | 912 | bool useramask; |
913 | bool brfpath_rxenable[4]; | 913 | bool rfpath_rxenable[4]; |
914 | 914 | ||
915 | u8 thermalvalue_iqk; | 915 | u8 thermalvalue_iqk; |
916 | u8 thermalvalue_lck; | 916 | u8 thermalvalue_lck; |
@@ -928,7 +928,7 @@ struct rtl_dm { | |||
928 | #define EFUSE_MAX_LOGICAL_SIZE 128 | 928 | #define EFUSE_MAX_LOGICAL_SIZE 128 |
929 | 929 | ||
930 | struct rtl_efuse { | 930 | struct rtl_efuse { |
931 | bool bautoLoad_ok; | 931 | bool autoLoad_ok; |
932 | bool bootfromefuse; | 932 | bool bootfromefuse; |
933 | u16 max_physical_size; | 933 | u16 max_physical_size; |
934 | u8 contents[EFUSE_MAX_LOGICAL_SIZE]; | 934 | u8 contents[EFUSE_MAX_LOGICAL_SIZE]; |
@@ -950,7 +950,7 @@ struct rtl_efuse { | |||
950 | 950 | ||
951 | u8 dev_addr[6]; | 951 | u8 dev_addr[6]; |
952 | 952 | ||
953 | bool b_txpwr_fromeprom; | 953 | bool txpwr_fromeprom; |
954 | u8 eeprom_tssi[2]; | 954 | u8 eeprom_tssi[2]; |
955 | u8 eeprom_pwrlimit_ht20[3]; | 955 | u8 eeprom_pwrlimit_ht20[3]; |
956 | u8 eeprom_pwrlimit_ht40[3]; | 956 | u8 eeprom_pwrlimit_ht40[3]; |
@@ -974,15 +974,15 @@ struct rtl_efuse { | |||
974 | u8 thermalmeter[2]; | 974 | u8 thermalmeter[2]; |
975 | 975 | ||
976 | u8 legacy_ht_txpowerdiff; /*Legacy to HT rate power diff */ | 976 | u8 legacy_ht_txpowerdiff; /*Legacy to HT rate power diff */ |
977 | bool b_apk_thermalmeterignore; | 977 | bool apk_thermalmeterignore; |
978 | }; | 978 | }; |
979 | 979 | ||
980 | struct rtl_ps_ctl { | 980 | struct rtl_ps_ctl { |
981 | bool set_rfpowerstate_inprogress; | 981 | bool set_rfpowerstate_inprogress; |
982 | bool b_in_powersavemode; | 982 | bool in_powersavemode; |
983 | bool rfchange_inprogress; | 983 | bool rfchange_inprogress; |
984 | bool b_swrf_processing; | 984 | bool swrf_processing; |
985 | bool b_hwradiooff; | 985 | bool hwradiooff; |
986 | 986 | ||
987 | u32 last_sleep_jiffies; | 987 | u32 last_sleep_jiffies; |
988 | u32 last_awake_jiffies; | 988 | u32 last_awake_jiffies; |
@@ -993,23 +993,23 @@ struct rtl_ps_ctl { | |||
993 | * If it supports ASPM, Offset[560h] = 0x40, | 993 | * If it supports ASPM, Offset[560h] = 0x40, |
994 | * otherwise Offset[560h] = 0x00. | 994 | * otherwise Offset[560h] = 0x00. |
995 | * */ | 995 | * */ |
996 | bool b_support_aspm; | 996 | bool support_aspm; |
997 | bool b_support_backdoor; | 997 | bool support_backdoor; |
998 | 998 | ||
999 | /*for LPS */ | 999 | /*for LPS */ |
1000 | enum rt_psmode dot11_psmode; /*Power save mode configured. */ | 1000 | enum rt_psmode dot11_psmode; /*Power save mode configured. */ |
1001 | bool b_leisure_ps; | 1001 | bool leisure_ps; |
1002 | bool b_fwctrl_lps; | 1002 | bool fwctrl_lps; |
1003 | u8 fwctrl_psmode; | 1003 | u8 fwctrl_psmode; |
1004 | /*For Fw control LPS mode */ | 1004 | /*For Fw control LPS mode */ |
1005 | u8 b_reg_fwctrl_lps; | 1005 | u8 reg_fwctrl_lps; |
1006 | /*Record Fw PS mode status. */ | 1006 | /*Record Fw PS mode status. */ |
1007 | bool b_fw_current_inpsmode; | 1007 | bool fw_current_inpsmode; |
1008 | u8 reg_max_lps_awakeintvl; | 1008 | u8 reg_max_lps_awakeintvl; |
1009 | bool report_linked; | 1009 | bool report_linked; |
1010 | 1010 | ||
1011 | /*for IPS */ | 1011 | /*for IPS */ |
1012 | bool b_inactiveps; | 1012 | bool inactiveps; |
1013 | 1013 | ||
1014 | u32 rfoff_reason; | 1014 | u32 rfoff_reason; |
1015 | 1015 | ||
@@ -1047,10 +1047,10 @@ struct rtl_stats { | |||
1047 | s32 recvsignalpower; | 1047 | s32 recvsignalpower; |
1048 | s8 rxpower; /*in dBm Translate from PWdB */ | 1048 | s8 rxpower; /*in dBm Translate from PWdB */ |
1049 | u8 signalstrength; /*in 0-100 index. */ | 1049 | u8 signalstrength; /*in 0-100 index. */ |
1050 | u16 b_hwerror:1; | 1050 | u16 hwerror:1; |
1051 | u16 b_crc:1; | 1051 | u16 crc:1; |
1052 | u16 b_icv:1; | 1052 | u16 icv:1; |
1053 | u16 b_shortpreamble:1; | 1053 | u16 shortpreamble:1; |
1054 | u16 antenna:1; | 1054 | u16 antenna:1; |
1055 | u16 decrypted:1; | 1055 | u16 decrypted:1; |
1056 | u16 wakeup:1; | 1056 | u16 wakeup:1; |
@@ -1059,15 +1059,15 @@ struct rtl_stats { | |||
1059 | 1059 | ||
1060 | u8 rx_drvinfo_size; | 1060 | u8 rx_drvinfo_size; |
1061 | u8 rx_bufshift; | 1061 | u8 rx_bufshift; |
1062 | bool b_isampdu; | 1062 | bool isampdu; |
1063 | bool rx_is40Mhzpacket; | 1063 | bool rx_is40Mhzpacket; |
1064 | u32 rx_pwdb_all; | 1064 | u32 rx_pwdb_all; |
1065 | u8 rx_mimo_signalstrength[4]; /*in 0~100 index */ | 1065 | u8 rx_mimo_signalstrength[4]; /*in 0~100 index */ |
1066 | s8 rx_mimo_signalquality[2]; | 1066 | s8 rx_mimo_signalquality[2]; |
1067 | bool b_packet_matchbssid; | 1067 | bool packet_matchbssid; |
1068 | bool b_is_cck; | 1068 | bool is_cck; |
1069 | bool b_packet_toself; | 1069 | bool packet_toself; |
1070 | bool b_packet_beacon; /*for rssi */ | 1070 | bool packet_beacon; /*for rssi */ |
1071 | char cck_adc_pwdb[4]; /*for rx path selection */ | 1071 | char cck_adc_pwdb[4]; /*for rx path selection */ |
1072 | }; | 1072 | }; |
1073 | 1073 | ||
@@ -1078,23 +1078,23 @@ struct rt_link_detect { | |||
1078 | u32 num_tx_inperiod; | 1078 | u32 num_tx_inperiod; |
1079 | u32 num_rx_inperiod; | 1079 | u32 num_rx_inperiod; |
1080 | 1080 | ||
1081 | bool b_busytraffic; | 1081 | bool busytraffic; |
1082 | bool b_higher_busytraffic; | 1082 | bool higher_busytraffic; |
1083 | bool b_higher_busyrxtraffic; | 1083 | bool higher_busyrxtraffic; |
1084 | }; | 1084 | }; |
1085 | 1085 | ||
1086 | struct rtl_tcb_desc { | 1086 | struct rtl_tcb_desc { |
1087 | u8 b_packet_bw:1; | 1087 | u8 packet_bw:1; |
1088 | u8 b_multicast:1; | 1088 | u8 multicast:1; |
1089 | u8 b_broadcast:1; | 1089 | u8 broadcast:1; |
1090 | 1090 | ||
1091 | u8 b_rts_stbc:1; | 1091 | u8 rts_stbc:1; |
1092 | u8 b_rts_enable:1; | 1092 | u8 rts_enable:1; |
1093 | u8 b_cts_enable:1; | 1093 | u8 cts_enable:1; |
1094 | u8 b_rts_use_shortpreamble:1; | 1094 | u8 rts_use_shortpreamble:1; |
1095 | u8 b_rts_use_shortgi:1; | 1095 | u8 rts_use_shortgi:1; |
1096 | u8 rts_sc:1; | 1096 | u8 rts_sc:1; |
1097 | u8 b_rts_bw:1; | 1097 | u8 rts_bw:1; |
1098 | u8 rts_rate; | 1098 | u8 rts_rate; |
1099 | 1099 | ||
1100 | u8 use_shortgi:1; | 1100 | u8 use_shortgi:1; |
@@ -1137,23 +1137,23 @@ struct rtl_hal_ops { | |||
1137 | struct ieee80211_tx_info *info, | 1137 | struct ieee80211_tx_info *info, |
1138 | struct sk_buff *skb, unsigned int queue_index); | 1138 | struct sk_buff *skb, unsigned int queue_index); |
1139 | void (*fill_tx_cmddesc) (struct ieee80211_hw *hw, u8 *pdesc, | 1139 | void (*fill_tx_cmddesc) (struct ieee80211_hw *hw, u8 *pdesc, |
1140 | bool b_firstseg, bool b_lastseg, | 1140 | bool firstseg, bool lastseg, |
1141 | struct sk_buff *skb); | 1141 | struct sk_buff *skb); |
1142 | bool (*cmd_send_packet)(struct ieee80211_hw *hw, struct sk_buff *skb); | 1142 | bool (*cmd_send_packet)(struct ieee80211_hw *hw, struct sk_buff *skb); |
1143 | bool(*query_rx_desc) (struct ieee80211_hw *hw, | 1143 | bool (*query_rx_desc) (struct ieee80211_hw *hw, |
1144 | struct rtl_stats *stats, | 1144 | struct rtl_stats *stats, |
1145 | struct ieee80211_rx_status *rx_status, | 1145 | struct ieee80211_rx_status *rx_status, |
1146 | u8 *pdesc, struct sk_buff *skb); | 1146 | u8 *pdesc, struct sk_buff *skb); |
1147 | void (*set_channel_access) (struct ieee80211_hw *hw); | 1147 | void (*set_channel_access) (struct ieee80211_hw *hw); |
1148 | bool(*radio_onoff_checking) (struct ieee80211_hw *hw, u8 *valid); | 1148 | bool (*radio_onoff_checking) (struct ieee80211_hw *hw, u8 *valid); |
1149 | void (*dm_watchdog) (struct ieee80211_hw *hw); | 1149 | void (*dm_watchdog) (struct ieee80211_hw *hw); |
1150 | void (*scan_operation_backup) (struct ieee80211_hw *hw, u8 operation); | 1150 | void (*scan_operation_backup) (struct ieee80211_hw *hw, u8 operation); |
1151 | bool(*set_rf_power_state) (struct ieee80211_hw *hw, | 1151 | bool (*set_rf_power_state) (struct ieee80211_hw *hw, |
1152 | enum rf_pwrstate rfpwr_state); | 1152 | enum rf_pwrstate rfpwr_state); |
1153 | void (*led_control) (struct ieee80211_hw *hw, | 1153 | void (*led_control) (struct ieee80211_hw *hw, |
1154 | enum led_ctl_mode ledaction); | 1154 | enum led_ctl_mode ledaction); |
1155 | void (*set_desc) (u8 *pdesc, bool istx, u8 desc_name, u8 *val); | 1155 | void (*set_desc) (u8 *pdesc, bool istx, u8 desc_name, u8 *val); |
1156 | u32(*get_desc) (u8 *pdesc, bool istx, u8 desc_name); | 1156 | u32 (*get_desc) (u8 *pdesc, bool istx, u8 desc_name); |
1157 | void (*tx_polling) (struct ieee80211_hw *hw, unsigned int hw_queue); | 1157 | void (*tx_polling) (struct ieee80211_hw *hw, unsigned int hw_queue); |
1158 | void (*enable_hw_sec) (struct ieee80211_hw *hw); | 1158 | void (*enable_hw_sec) (struct ieee80211_hw *hw); |
1159 | void (*set_key) (struct ieee80211_hw *hw, u32 key_index, | 1159 | void (*set_key) (struct ieee80211_hw *hw, u32 key_index, |
@@ -1161,10 +1161,10 @@ struct rtl_hal_ops { | |||
1161 | bool is_wepkey, bool clear_all); | 1161 | bool is_wepkey, bool clear_all); |
1162 | void (*init_sw_leds) (struct ieee80211_hw *hw); | 1162 | void (*init_sw_leds) (struct ieee80211_hw *hw); |
1163 | void (*deinit_sw_leds) (struct ieee80211_hw *hw); | 1163 | void (*deinit_sw_leds) (struct ieee80211_hw *hw); |
1164 | u32(*get_bbreg) (struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); | 1164 | u32 (*get_bbreg) (struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); |
1165 | void (*set_bbreg) (struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, | 1165 | void (*set_bbreg) (struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, |
1166 | u32 data); | 1166 | u32 data); |
1167 | u32(*get_rfreg) (struct ieee80211_hw *hw, enum radio_path rfpath, | 1167 | u32 (*get_rfreg) (struct ieee80211_hw *hw, enum radio_path rfpath, |
1168 | u32 regaddr, u32 bitmask); | 1168 | u32 regaddr, u32 bitmask); |
1169 | void (*set_rfreg) (struct ieee80211_hw *hw, enum radio_path rfpath, | 1169 | void (*set_rfreg) (struct ieee80211_hw *hw, enum radio_path rfpath, |
1170 | u32 regaddr, u32 bitmask, u32 data); | 1170 | u32 regaddr, u32 bitmask, u32 data); |