Go to the documentation of this file.
29 #ifndef __REALTEK_FIRMWARE92S_H__
30 #define __REALTEK_FIRMWARE92S_H__
32 #define RTL8190_MAX_FIRMWARE_CODE_SIZE 64000
33 #define RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE 90000
34 #define RTL8190_CPU_START_OFFSET 0x80
36 #define MAX_FIRMWARE_CODE_SIZE 0xFF00
38 #define RT_8192S_FIRMWARE_HDR_SIZE 80
39 #define RT_8192S_FIRMWARE_HDR_EXCLUDE_PRI_SIZE 32
42 #define MAX_DEV_ADDR_SIZE 8
43 #define MAX_FIRMWARE_INFORMATION_SIZE 32
44 #define MAX_802_11_HEADER_LENGTH (40 + \
45 MAX_FIRMWARE_INFORMATION_SIZE)
46 #define ENCRYPTION_MAX_OVERHEAD 128
47 #define MAX_FRAGMENT_COUNT 8
48 #define MAX_TRANSMIT_BUFFER_SIZE (1600 + \
49 (MAX_802_11_HEADER_LENGTH + \
50 ENCRYPTION_MAX_OVERHEAD) *\
53 #define H2C_TX_CMD_HDR_LEN 8
56 #define FW_DIG_ENABLE_CTL BIT(0)
57 #define FW_HIGH_PWR_ENABLE_CTL BIT(1)
58 #define FW_SS_CTL BIT(2)
59 #define FW_RA_INIT_CTL BIT(3)
60 #define FW_RA_BG_CTL BIT(4)
61 #define FW_RA_N_CTL BIT(5)
62 #define FW_PWR_TRK_CTL BIT(6)
63 #define FW_IQK_CTL BIT(7)
64 #define FW_FA_CTL BIT(8)
65 #define FW_DRIVER_CTRL_DM_CTL BIT(9)
66 #define FW_PAPE_CTL_BY_SW_HW BIT(10)
67 #define FW_DISABLE_ALL_DM 0
68 #define FW_PWR_TRK_PARAM_CLR 0x0000ffff
69 #define FW_RA_PARAM_CLR 0xffff0000
344 #define FW_CMD_IO_CLR(rtlpriv, _Bit) \
347 rtlpriv->rtlhal.fwcmd_iomap &= (~_Bit); \
350 #define FW_CMD_IO_UPDATE(rtlpriv, _val) \
351 rtlpriv->rtlhal.fwcmd_iomap = _val;
353 #define FW_CMD_IO_SET(rtlpriv, _val) \
355 rtl_write_word(rtlpriv, LBUS_MON_ADDR, (u16)_val); \
356 FW_CMD_IO_UPDATE(rtlpriv, _val); \
359 #define FW_CMD_PARA_SET(rtlpriv, _val) \
361 rtl_write_dword(rtlpriv, LBUS_ADDR_MASK, _val); \
362 rtlpriv->rtlhal.fwcmd_ioparam = _val; \
365 #define FW_CMD_IO_QUERY(rtlpriv) \
366 (u16)(rtlpriv->rtlhal.fwcmd_iomap)
367 #define FW_CMD_IO_PARA_QUERY(rtlpriv) \
368 ((u32)(rtlpriv->rtlhal.fwcmd_ioparam))
373 u8 mstatus,
u8 ps_qosinfo);