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

Go to the source code of this file.

Data Structures

struct  carl9170_set_key_cmd
 
struct  carl9170_disable_key_cmd
 
struct  carl9170_u32_list
 
struct  carl9170_reg_list
 
struct  carl9170_write_reg
 
struct  carl9170_rf_init
 
struct  carl9170_rf_init_result
 
struct  carl9170_psm
 
struct  carl9170_rx_filter_cmd
 
struct  carl9170_bcn_ctrl_cmd
 
struct  carl9170_wol_cmd
 
struct  carl9170_cmd_head
 
struct  carl9170_cmd
 
struct  _carl9170_tx_status
 
struct  carl9170_gpio
 
struct  carl9170_tsf_rsp
 
struct  carl9170_tally_rsp
 
struct  carl9170_rsp
 

Macros

#define CARL9170_MAX_CMD_LEN   64
 
#define CARL9170_MAX_CMD_PAYLOAD_LEN   60
 
#define CARL9170FW_API_MIN_VER   1
 
#define CARL9170FW_API_MAX_VER   1
 
#define CARL9170_SET_KEY_CMD_SIZE   28
 
#define CARL9170_DISABLE_KEY_CMD_SIZE   4
 
#define CARL9170FW_PHY_HT_ENABLE   0x4
 
#define CARL9170FW_PHY_HT_DYN2040   0x8
 
#define CARL9170FW_PHY_HT_EXT_CHAN_OFF   0x3
 
#define CARL9170FW_PHY_HT_EXT_CHAN_OFF_S   2
 
#define CARL9170_RF_INIT_SIZE   28
 
#define CARL9170_RF_INIT_RESULT_SIZE   4
 
#define CARL9170_PSM_SLEEP   0x1000
 
#define CARL9170_PSM_SOFTWARE   0
 
#define CARL9170_PSM_WAKE   0 /* internally used. */
 
#define CARL9170_PSM_COUNTER   0xfff
 
#define CARL9170_PSM_COUNTER_S   0
 
#define CARL9170_PSM_SIZE   4
 
#define CARL9170_RX_FILTER_CMD_SIZE   4
 
#define CARL9170_RX_FILTER_BAD   0x01
 
#define CARL9170_RX_FILTER_OTHER_RA   0x02
 
#define CARL9170_RX_FILTER_DECRY_FAIL   0x04
 
#define CARL9170_RX_FILTER_CTL_OTHER   0x08
 
#define CARL9170_RX_FILTER_CTL_PSPOLL   0x10
 
#define CARL9170_RX_FILTER_CTL_BACKR   0x20
 
#define CARL9170_RX_FILTER_MGMT   0x40
 
#define CARL9170_RX_FILTER_DATA   0x80
 
#define CARL9170_RX_FILTER_EVERYTHING   (~0)
 
#define CARL9170_BCN_CTRL_CMD_SIZE   16
 
#define CARL9170_BCN_CTRL_DRAIN   0
 
#define CARL9170_BCN_CTRL_CAB_TRIGGER   1
 
#define CARL9170_WOL_CMD_SIZE   60
 
#define CARL9170_WOL_DISCONNECT   1
 
#define CARL9170_WOL_MAGIC_PKT   2
 
#define CARL9170_TX_STATUS_QUEUE   3
 
#define CARL9170_TX_STATUS_QUEUE_S   0
 
#define CARL9170_TX_STATUS_RIX_S   2
 
#define CARL9170_TX_STATUS_RIX   (3 << CARL9170_TX_STATUS_RIX_S)
 
#define CARL9170_TX_STATUS_TRIES_S   4
 
#define CARL9170_TX_STATUS_TRIES   (7 << CARL9170_TX_STATUS_TRIES_S)
 
#define CARL9170_TX_STATUS_SUCCESS   0x80
 
#define CARL9170_TX_STATUS_SIZE   2
 
#define CARL9170_RSP_TX_STATUS_NUM
 
#define CARL9170_TX_MAX_RATE_TRIES   7
 
#define CARL9170_TX_MAX_RATES   4
 
#define CARL9170_TX_MAX_RETRY_RATES   (CARL9170_TX_MAX_RATES - 1)
 
#define CARL9170_ERR_MAGIC   "ERR:"
 
#define CARL9170_BUG_MAGIC   "BUG:"
 
#define CARL9170_GPIO_SIZE   4
 
#define CARL9170_TSF_RSP_SIZE   8
 

Enumerations

enum  carl9170_cmd_oids {
  CARL9170_CMD_RREG = 0x00, CARL9170_CMD_WREG = 0x01, CARL9170_CMD_ECHO = 0x02, CARL9170_CMD_SWRST = 0x03,
  CARL9170_CMD_REBOOT = 0x04, CARL9170_CMD_BCN_CTRL = 0x05, CARL9170_CMD_READ_TSF = 0x06, CARL9170_CMD_RX_FILTER = 0x07,
  CARL9170_CMD_WOL = 0x08, CARL9170_CMD_TALLY = 0x09, CARL9170_CMD_EKEY = 0x10, CARL9170_CMD_DKEY = 0x11,
  CARL9170_CMD_FREQUENCY = 0x20, CARL9170_CMD_RF_INIT = 0x21, CARL9170_CMD_SYNTH = 0x22, CARL9170_CMD_FREQ_START = 0x23,
  CARL9170_CMD_PSM = 0x24, CARL9170_CMD_ASYNC_FLAG = 0x40, CARL9170_CMD_WREG_ASYNC, CARL9170_CMD_REBOOT_ASYNC,
  CARL9170_CMD_BCN_CTRL_ASYNC, CARL9170_CMD_PSM_ASYNC, CARL9170_RSP_FLAG = 0xc0, CARL9170_RSP_PRETBTT = 0xc0,
  CARL9170_RSP_TXCOMP = 0xc1, CARL9170_RSP_BEACON_CONFIG = 0xc2, CARL9170_RSP_ATIM = 0xc3, CARL9170_RSP_WATCHDOG = 0xc6,
  CARL9170_RSP_TEXT = 0xca, CARL9170_RSP_HEXDUMP = 0xcc, CARL9170_RSP_RADAR = 0xcd, CARL9170_RSP_GPIO = 0xce,
  CARL9170_RSP_BOOT = 0xcf
}
 

Functions

struct carl9170_set_key_cmd __aligned (4)
 

Variables

__le16 user
 
__le16 keyId
 
__le16 type
 
u8 macAddr [6]
 
u32 key [4]
 
__le16 padding
 
struct carl9170_u32_list __packed
 
struct carl9170_cmd_head hdr
 

Macro Definition Documentation

#define CARL9170_BCN_CTRL_CAB_TRIGGER   1

Definition at line 183 of file fwcmd.h.

#define CARL9170_BCN_CTRL_CMD_SIZE   16

Definition at line 180 of file fwcmd.h.

#define CARL9170_BCN_CTRL_DRAIN   0

Definition at line 182 of file fwcmd.h.

#define CARL9170_BUG_MAGIC   "BUG:"

Definition at line 275 of file fwcmd.h.

#define CARL9170_DISABLE_KEY_CMD_SIZE   4

Definition at line 109 of file fwcmd.h.

#define CARL9170_ERR_MAGIC   "ERR:"

Definition at line 274 of file fwcmd.h.

#define CARL9170_GPIO_SIZE   4

Definition at line 280 of file fwcmd.h.

#define CARL9170_MAX_CMD_LEN   64

Definition at line 42 of file fwcmd.h.

#define CARL9170_MAX_CMD_PAYLOAD_LEN   60

Definition at line 43 of file fwcmd.h.

#define CARL9170_PSM_COUNTER   0xfff

Definition at line 151 of file fwcmd.h.

#define CARL9170_PSM_COUNTER_S   0

Definition at line 152 of file fwcmd.h.

#define CARL9170_PSM_SIZE   4

Definition at line 157 of file fwcmd.h.

#define CARL9170_PSM_SLEEP   0x1000

Definition at line 148 of file fwcmd.h.

#define CARL9170_PSM_SOFTWARE   0

Definition at line 149 of file fwcmd.h.

#define CARL9170_PSM_WAKE   0 /* internally used. */

Definition at line 150 of file fwcmd.h.

#define CARL9170_RF_INIT_RESULT_SIZE   4

Definition at line 146 of file fwcmd.h.

#define CARL9170_RF_INIT_SIZE   28

Definition at line 141 of file fwcmd.h.

#define CARL9170_RSP_TX_STATUS_NUM
Value:

Definition at line 267 of file fwcmd.h.

#define CARL9170_RX_FILTER_BAD   0x01

Definition at line 164 of file fwcmd.h.

#define CARL9170_RX_FILTER_CMD_SIZE   4

Definition at line 162 of file fwcmd.h.

#define CARL9170_RX_FILTER_CTL_BACKR   0x20

Definition at line 169 of file fwcmd.h.

#define CARL9170_RX_FILTER_CTL_OTHER   0x08

Definition at line 167 of file fwcmd.h.

#define CARL9170_RX_FILTER_CTL_PSPOLL   0x10

Definition at line 168 of file fwcmd.h.

#define CARL9170_RX_FILTER_DATA   0x80

Definition at line 171 of file fwcmd.h.

#define CARL9170_RX_FILTER_DECRY_FAIL   0x04

Definition at line 166 of file fwcmd.h.

#define CARL9170_RX_FILTER_EVERYTHING   (~0)

Definition at line 172 of file fwcmd.h.

#define CARL9170_RX_FILTER_MGMT   0x40

Definition at line 170 of file fwcmd.h.

#define CARL9170_RX_FILTER_OTHER_RA   0x02

Definition at line 165 of file fwcmd.h.

#define CARL9170_SET_KEY_CMD_SIZE   28

Definition at line 103 of file fwcmd.h.

#define CARL9170_TSF_RSP_SIZE   8

Definition at line 288 of file fwcmd.h.

#define CARL9170_TX_MAX_RATE_TRIES   7

Definition at line 270 of file fwcmd.h.

#define CARL9170_TX_MAX_RATES   4

Definition at line 272 of file fwcmd.h.

#define CARL9170_TX_MAX_RETRY_RATES   (CARL9170_TX_MAX_RATES - 1)

Definition at line 273 of file fwcmd.h.

#define CARL9170_TX_STATUS_QUEUE   3

Definition at line 230 of file fwcmd.h.

#define CARL9170_TX_STATUS_QUEUE_S   0

Definition at line 231 of file fwcmd.h.

#define CARL9170_TX_STATUS_RIX   (3 << CARL9170_TX_STATUS_RIX_S)

Definition at line 233 of file fwcmd.h.

#define CARL9170_TX_STATUS_RIX_S   2

Definition at line 232 of file fwcmd.h.

#define CARL9170_TX_STATUS_SIZE   2

Definition at line 265 of file fwcmd.h.

#define CARL9170_TX_STATUS_SUCCESS   0x80

Definition at line 236 of file fwcmd.h.

#define CARL9170_TX_STATUS_TRIES   (7 << CARL9170_TX_STATUS_TRIES_S)

Definition at line 235 of file fwcmd.h.

#define CARL9170_TX_STATUS_TRIES_S   4

Definition at line 234 of file fwcmd.h.

#define CARL9170_WOL_CMD_SIZE   60

Definition at line 195 of file fwcmd.h.

#define CARL9170_WOL_DISCONNECT   1

Definition at line 197 of file fwcmd.h.

#define CARL9170_WOL_MAGIC_PKT   2

Definition at line 198 of file fwcmd.h.

#define CARL9170FW_API_MAX_VER   1

Definition at line 46 of file fwcmd.h.

#define CARL9170FW_API_MIN_VER   1

Definition at line 45 of file fwcmd.h.

#define CARL9170FW_PHY_HT_DYN2040   0x8

Definition at line 127 of file fwcmd.h.

#define CARL9170FW_PHY_HT_ENABLE   0x4

Definition at line 126 of file fwcmd.h.

#define CARL9170FW_PHY_HT_EXT_CHAN_OFF   0x3

Definition at line 128 of file fwcmd.h.

#define CARL9170FW_PHY_HT_EXT_CHAN_OFF_S   2

Definition at line 129 of file fwcmd.h.

Enumeration Type Documentation

Enumerator:
CARL9170_CMD_RREG 
CARL9170_CMD_WREG 
CARL9170_CMD_ECHO 
CARL9170_CMD_SWRST 
CARL9170_CMD_REBOOT 
CARL9170_CMD_BCN_CTRL 
CARL9170_CMD_READ_TSF 
CARL9170_CMD_RX_FILTER 
CARL9170_CMD_WOL 
CARL9170_CMD_TALLY 
CARL9170_CMD_EKEY 
CARL9170_CMD_DKEY 
CARL9170_CMD_FREQUENCY 
CARL9170_CMD_RF_INIT 
CARL9170_CMD_SYNTH 
CARL9170_CMD_FREQ_START 
CARL9170_CMD_PSM 
CARL9170_CMD_ASYNC_FLAG 
CARL9170_CMD_WREG_ASYNC 
CARL9170_CMD_REBOOT_ASYNC 
CARL9170_CMD_BCN_CTRL_ASYNC 
CARL9170_CMD_PSM_ASYNC 
CARL9170_RSP_FLAG 
CARL9170_RSP_PRETBTT 
CARL9170_RSP_TXCOMP 
CARL9170_RSP_BEACON_CONFIG 
CARL9170_RSP_ATIM 
CARL9170_RSP_WATCHDOG 
CARL9170_RSP_TEXT 
CARL9170_RSP_HEXDUMP 
CARL9170_RSP_RADAR 
CARL9170_RSP_GPIO 
CARL9170_RSP_BOOT 

Definition at line 48 of file fwcmd.h.

Function Documentation

struct carl9170_set_key_cmd __aligned ( )

Variable Documentation

union { ... } __packed
struct _carl9170_tx_status _tx_status[0]

Definition at line 326 of file fwcmd.h.

Definition at line 239 of file fwcmd.h.

Definition at line 241 of file fwcmd.h.

Definition at line 232 of file fwcmd.h.

Definition at line 233 of file fwcmd.h.

Definition at line 327 of file fwcmd.h.

Definition at line 229 of file fwcmd.h.

u32 key[4]

Definition at line 107 of file fwcmd.h.

__le16 keyId

Definition at line 104 of file fwcmd.h.

u8 macAddr[6]

Definition at line 106 of file fwcmd.h.

__le16 padding

Definition at line 110 of file fwcmd.h.

Definition at line 237 of file fwcmd.h.

Definition at line 236 of file fwcmd.h.

Definition at line 320 of file fwcmd.h.

Definition at line 234 of file fwcmd.h.

Definition at line 321 of file fwcmd.h.

Definition at line 240 of file fwcmd.h.

Definition at line 231 of file fwcmd.h.

Definition at line 330 of file fwcmd.h.

Definition at line 328 of file fwcmd.h.

Definition at line 105 of file fwcmd.h.

Definition at line 103 of file fwcmd.h.

Definition at line 238 of file fwcmd.h.

Definition at line 235 of file fwcmd.h.