Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
fw_common.h File Reference

Go to the source code of this file.

Data Structures

struct  rtl92c_firmware_header
 

Macros

#define FW_8192C_SIZE   0x3000
 
#define FW_8192C_START_ADDRESS   0x1000
 
#define FW_8192C_END_ADDRESS   0x1FFF
 
#define FW_8192C_PAGE_SIZE   4096
 
#define FW_8192C_POLLING_DELAY   5
 
#define FW_8192C_POLLING_TIMEOUT_COUNT   100
 
#define IS_FW_HEADER_EXIST(_pfwhdr)
 
#define pagenum_128(_len)   (u32)(((_len)>>7) + ((_len)&0x7F ? 1 : 0))
 
#define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val)
 
#define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val)
 
#define SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)
 
#define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val)
 
#define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val)
 
#define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val)
 
#define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val)   SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)
 

Enumerations

enum  rtl8192c_h2c_cmd {
  H2C_AP_OFFLOAD = 0, H2C_SETPWRMODE = 1, H2C_JOINBSSRPT = 2, H2C_RSVDPAGE = 3,
  H2C_RSSI_REPORT = 5, H2C_RA_MASK = 6, MAX_H2CCMD
}
 

Functions

int rtl92c_download_fw (struct ieee80211_hw *hw)
 
void rtl92c_fill_h2c_cmd (struct ieee80211_hw *hw, u8 element_id, u32 cmd_len, u8 *p_cmdbuffer)
 
void rtl92c_firmware_selfreset (struct ieee80211_hw *hw)
 
void rtl92c_set_fw_pwrmode_cmd (struct ieee80211_hw *hw, u8 mode)
 
void rtl92c_set_fw_rsvdpagepkt (struct ieee80211_hw *hw, bool b_dl_finished)
 
void rtl92c_set_fw_joinbss_report_cmd (struct ieee80211_hw *hw, u8 mstatus)
 
void usb_writeN_async (struct rtl_priv *rtlpriv, u32 addr, void *data, u16 len)
 

Macro Definition Documentation

#define FW_8192C_END_ADDRESS   0x1FFF

Definition at line 35 of file fw_common.h.

#define FW_8192C_PAGE_SIZE   4096

Definition at line 36 of file fw_common.h.

#define FW_8192C_POLLING_DELAY   5

Definition at line 37 of file fw_common.h.

#define FW_8192C_POLLING_TIMEOUT_COUNT   100

Definition at line 38 of file fw_common.h.

#define FW_8192C_SIZE   0x3000

Definition at line 33 of file fw_common.h.

#define FW_8192C_START_ADDRESS   0x1000

Definition at line 34 of file fw_common.h.

#define IS_FW_HEADER_EXIST (   _pfwhdr)
Value:
((le16_to_cpu(_pfwhdr->signature)&0xFFF0) == 0x92C0 ||\
(le16_to_cpu(_pfwhdr->signature)&0xFFF0) == 0x88C0)

Definition at line 40 of file fw_common.h.

#define pagenum_128 (   _len)    (u32)(((_len)>>7) + ((_len)&0x7F ? 1 : 0))

Definition at line 73 of file fw_common.h.

#define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val)

Definition at line 81 of file fw_common.h.

#define SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)

Definition at line 79 of file fw_common.h.

#define SET_H2CCMD_PWRMODE_PARM_MODE (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val)

Definition at line 75 of file fw_common.h.

#define SET_H2CCMD_PWRMODE_PARM_SMART_PS (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val)

Definition at line 77 of file fw_common.h.

#define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)

Definition at line 87 of file fw_common.h.

#define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val)

Definition at line 83 of file fw_common.h.

#define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL (   __ph2ccmd,
  __val 
)    SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val)

Definition at line 85 of file fw_common.h.

Enumeration Type Documentation

Enumerator:
H2C_AP_OFFLOAD 
H2C_SETPWRMODE 
H2C_JOINBSSRPT 
H2C_RSVDPAGE 
H2C_RSSI_REPORT 
H2C_RA_MASK 
MAX_H2CCMD 

Definition at line 63 of file fw_common.h.

Function Documentation

int rtl92c_download_fw ( struct ieee80211_hw hw)

Definition at line 252 of file fw_common.c.

void rtl92c_fill_h2c_cmd ( struct ieee80211_hw hw,
u8  element_id,
u32  cmd_len,
u8 p_cmdbuffer 
)

Definition at line 512 of file fw_common.c.

void rtl92c_firmware_selfreset ( struct ieee80211_hw hw)

Definition at line 525 of file fw_common.c.

void rtl92c_set_fw_joinbss_report_cmd ( struct ieee80211_hw hw,
u8  mstatus 
)

Definition at line 802 of file fw_common.c.

void rtl92c_set_fw_pwrmode_cmd ( struct ieee80211_hw hw,
u8  mode 
)

Definition at line 546 of file fw_common.c.

void rtl92c_set_fw_rsvdpagepkt ( struct ieee80211_hw hw,
bool  b_dl_finished 
)

Definition at line 714 of file fw_common.c.

void usb_writeN_async ( struct rtl_priv rtlpriv,
u32  addr,
void data,
u16  len 
)