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

Go to the source code of this file.

Data Structures

struct  carl9170fw_desc_head
 
struct  carl9170fw_otus_desc
 
struct  carl9170fw_motd_desc
 
struct  carl9170fw_fix_entry
 
struct  carl9170fw_fix_desc
 
struct  carl9170fw_dbg_desc
 
struct  carl9170fw_chk_desc
 
struct  carl9170fw_txsq_desc
 
struct  carl9170fw_wol_desc
 
struct  carl9170fw_last_desc
 

Macros

#define OTUS_MAGIC   "OTAR"
 
#define MOTD_MAGIC   "MOTD"
 
#define FIX_MAGIC   "FIX\0"
 
#define DBG_MAGIC   "DBG\0"
 
#define CHK_MAGIC   "CHK\0"
 
#define TXSQ_MAGIC   "TXSQ"
 
#define WOL_MAGIC   "WOL\0"
 
#define LAST_MAGIC   "LAST"
 
#define CARL9170FW_SET_DAY(d)   (((d) - 1) % 31)
 
#define CARL9170FW_SET_MONTH(m)   ((((m) - 1) % 12) * 31)
 
#define CARL9170FW_SET_YEAR(y)   (((y) - 10) * 372)
 
#define CARL9170FW_GET_DAY(d)   (((d) % 31) + 1)
 
#define CARL9170FW_GET_MONTH(m)   ((((m) / 31) % 12) + 1)
 
#define CARL9170FW_GET_YEAR(y)   ((y) / 372 + 10)
 
#define CARL9170FW_MAGIC_SIZE   4
 
#define CARL9170FW_DESC_HEAD_SIZE   (sizeof(struct carl9170fw_desc_head))
 
#define CARL9170FW_OTUS_DESC_MIN_VER   6
 
#define CARL9170FW_OTUS_DESC_CUR_VER   7
 
#define CARL9170FW_OTUS_DESC_SIZE   (sizeof(struct carl9170fw_otus_desc))
 
#define CARL9170FW_MOTD_STRING_LEN   24
 
#define CARL9170FW_MOTD_RELEASE_LEN   20
 
#define CARL9170FW_MOTD_DESC_MIN_VER   1
 
#define CARL9170FW_MOTD_DESC_CUR_VER   2
 
#define CARL9170FW_MOTD_DESC_SIZE   (sizeof(struct carl9170fw_motd_desc))
 
#define CARL9170FW_FIX_DESC_MIN_VER   1
 
#define CARL9170FW_FIX_DESC_CUR_VER   2
 
#define CARL9170FW_FIX_DESC_SIZE   (sizeof(struct carl9170fw_fix_desc))
 
#define CARL9170FW_DBG_DESC_MIN_VER   1
 
#define CARL9170FW_DBG_DESC_CUR_VER   3
 
#define CARL9170FW_DBG_DESC_SIZE   (sizeof(struct carl9170fw_dbg_desc))
 
#define CARL9170FW_CHK_DESC_MIN_VER   1
 
#define CARL9170FW_CHK_DESC_CUR_VER   2
 
#define CARL9170FW_CHK_DESC_SIZE   (sizeof(struct carl9170fw_chk_desc))
 
#define CARL9170FW_TXSQ_DESC_MIN_VER   1
 
#define CARL9170FW_TXSQ_DESC_CUR_VER   1
 
#define CARL9170FW_TXSQ_DESC_SIZE   (sizeof(struct carl9170fw_txsq_desc))
 
#define CARL9170FW_WOL_DESC_MIN_VER   1
 
#define CARL9170FW_WOL_DESC_CUR_VER   1
 
#define CARL9170FW_WOL_DESC_SIZE   (sizeof(struct carl9170fw_wol_desc))
 
#define CARL9170FW_LAST_DESC_MIN_VER   1
 
#define CARL9170FW_LAST_DESC_CUR_VER   2
 
#define CARL9170FW_LAST_DESC_SIZE   (sizeof(struct carl9170fw_fix_desc))
 
#define CARL9170FW_DESC_MAX_LENGTH   8192
 
#define CARL9170FW_FILL_DESC(_magic, _length, _min_ver, _cur_ver)
 
#define carl9170fw_for_each_hdr(desc, fw_desc)
 
#define CHECK_HDR_VERSION(head, _min_ver)   (((head)->cur_ver < _min_ver) || ((head)->min_ver > _min_ver)) \
 
#define CARL9170FW_MIN_SIZE   32
 
#define CARL9170FW_MAX_SIZE   16384
 

Enumerations

enum  carl9170fw_feature_list {
  CARL9170FW_DUMMY_FEATURE, CARL9170FW_MINIBOOT, CARL9170FW_USB_INIT_FIRMWARE, CARL9170FW_USB_RESP_EP2,
  CARL9170FW_USB_DOWN_STREAM, CARL9170FW_USB_UP_STREAM, CARL9170FW_UNUSABLE, CARL9170FW_COMMAND_PHY,
  CARL9170FW_COMMAND_CAM, CARL9170FW_WLANTX_CAB, CARL9170FW_HANDLE_BACK_REQ, CARL9170FW_GPIO_INTERRUPT,
  CARL9170FW_PSM, CARL9170FW_RX_FILTER, CARL9170FW_WOL, CARL9170FW_FIXED_5GHZ_PSM,
  CARL9170FW_HW_COUNTERS, CARL9170FW_RX_BA_FILTER, __CARL9170FW_FEATURE_NUM
}
 

Variables

struct carl9170fw_desc_head __packed
 

Macro Definition Documentation

#define CARL9170FW_CHK_DESC_CUR_VER   2

Definition at line 180 of file fwdesc.h.

#define CARL9170FW_CHK_DESC_MIN_VER   1

Definition at line 179 of file fwdesc.h.

#define CARL9170FW_CHK_DESC_SIZE   (sizeof(struct carl9170fw_chk_desc))

Definition at line 186 of file fwdesc.h.

#define CARL9170FW_DBG_DESC_CUR_VER   3

Definition at line 164 of file fwdesc.h.

#define CARL9170FW_DBG_DESC_MIN_VER   1

Definition at line 163 of file fwdesc.h.

#define CARL9170FW_DBG_DESC_SIZE   (sizeof(struct carl9170fw_dbg_desc))

Definition at line 176 of file fwdesc.h.

#define CARL9170FW_DESC_HEAD_SIZE   (sizeof(struct carl9170fw_desc_head))

Definition at line 113 of file fwdesc.h.

#define CARL9170FW_DESC_MAX_LENGTH   8192

Definition at line 217 of file fwdesc.h.

#define CARL9170FW_FILL_DESC (   _magic,
  _length,
  _min_ver,
  _cur_ver 
)
Value:
.head = { \
.magic = _magic, \
.length = cpu_to_le16(_length), \
.min_ver = _min_ver, \
.cur_ver = _cur_ver, \
}

Definition at line 219 of file fwdesc.h.

#define CARL9170FW_FIX_DESC_CUR_VER   2

Definition at line 149 of file fwdesc.h.

#define CARL9170FW_FIX_DESC_MIN_VER   1

Definition at line 148 of file fwdesc.h.

#define CARL9170FW_FIX_DESC_SIZE   (sizeof(struct carl9170fw_fix_desc))

Definition at line 160 of file fwdesc.h.

#define carl9170fw_for_each_hdr (   desc,
  fw_desc 
)
Value:
for (desc = fw_desc; \
memcmp(desc->magic, LAST_MAGIC, CARL9170FW_MAGIC_SIZE) && \
le16_to_cpu(desc->length) >= CARL9170FW_DESC_HEAD_SIZE && \
le16_to_cpu(desc->length) < CARL9170FW_DESC_MAX_LENGTH; \
desc = (void *)((unsigned long)desc + le16_to_cpu(desc->length)))

Definition at line 241 of file fwdesc.h.

#define CARL9170FW_GET_DAY (   d)    (((d) % 31) + 1)

Definition at line 101 of file fwdesc.h.

#define CARL9170FW_GET_MONTH (   m)    ((((m) / 31) % 12) + 1)

Definition at line 102 of file fwdesc.h.

#define CARL9170FW_GET_YEAR (   y)    ((y) / 372 + 10)

Definition at line 103 of file fwdesc.h.

#define CARL9170FW_LAST_DESC_CUR_VER   2

Definition at line 210 of file fwdesc.h.

#define CARL9170FW_LAST_DESC_MIN_VER   1

Definition at line 209 of file fwdesc.h.

#define CARL9170FW_LAST_DESC_SIZE   (sizeof(struct carl9170fw_fix_desc))

Definition at line 214 of file fwdesc.h.

#define CARL9170FW_MAGIC_SIZE   4

Definition at line 105 of file fwdesc.h.

#define CARL9170FW_MAX_SIZE   16384

Definition at line 270 of file fwdesc.h.

#define CARL9170FW_MIN_SIZE   32

Definition at line 269 of file fwdesc.h.

#define CARL9170FW_MOTD_DESC_CUR_VER   2

Definition at line 138 of file fwdesc.h.

#define CARL9170FW_MOTD_DESC_MIN_VER   1

Definition at line 137 of file fwdesc.h.

#define CARL9170FW_MOTD_DESC_SIZE   (sizeof(struct carl9170fw_motd_desc))

Definition at line 145 of file fwdesc.h.

#define CARL9170FW_MOTD_RELEASE_LEN   20

Definition at line 136 of file fwdesc.h.

#define CARL9170FW_MOTD_STRING_LEN   24

Definition at line 135 of file fwdesc.h.

#define CARL9170FW_OTUS_DESC_CUR_VER   7

Definition at line 117 of file fwdesc.h.

#define CARL9170FW_OTUS_DESC_MIN_VER   6

Definition at line 116 of file fwdesc.h.

#define CARL9170FW_OTUS_DESC_SIZE   (sizeof(struct carl9170fw_otus_desc))

Definition at line 132 of file fwdesc.h.

#define CARL9170FW_SET_DAY (   d)    (((d) - 1) % 31)

Definition at line 97 of file fwdesc.h.

#define CARL9170FW_SET_MONTH (   m)    ((((m) - 1) % 12) * 31)

Definition at line 98 of file fwdesc.h.

#define CARL9170FW_SET_YEAR (   y)    (((y) - 10) * 372)

Definition at line 99 of file fwdesc.h.

#define CARL9170FW_TXSQ_DESC_CUR_VER   1

Definition at line 190 of file fwdesc.h.

#define CARL9170FW_TXSQ_DESC_MIN_VER   1

Definition at line 189 of file fwdesc.h.

#define CARL9170FW_TXSQ_DESC_SIZE   (sizeof(struct carl9170fw_txsq_desc))

Definition at line 196 of file fwdesc.h.

#define CARL9170FW_WOL_DESC_CUR_VER   1

Definition at line 200 of file fwdesc.h.

#define CARL9170FW_WOL_DESC_MIN_VER   1

Definition at line 199 of file fwdesc.h.

#define CARL9170FW_WOL_DESC_SIZE   (sizeof(struct carl9170fw_wol_desc))

Definition at line 206 of file fwdesc.h.

#define CHECK_HDR_VERSION (   head,
  _min_ver 
)    (((head)->cur_ver < _min_ver) || ((head)->min_ver > _min_ver)) \

Definition at line 248 of file fwdesc.h.

#define CHK_MAGIC   "CHK\0"

Definition at line 92 of file fwdesc.h.

#define DBG_MAGIC   "DBG\0"

Definition at line 91 of file fwdesc.h.

#define FIX_MAGIC   "FIX\0"

Definition at line 90 of file fwdesc.h.

#define LAST_MAGIC   "LAST"

Definition at line 95 of file fwdesc.h.

#define MOTD_MAGIC   "MOTD"

Definition at line 89 of file fwdesc.h.

#define OTUS_MAGIC   "OTAR"

Definition at line 88 of file fwdesc.h.

#define TXSQ_MAGIC   "TXSQ"

Definition at line 93 of file fwdesc.h.

#define WOL_MAGIC   "WOL\0"

Definition at line 94 of file fwdesc.h.

Enumeration Type Documentation

Enumerator:
CARL9170FW_DUMMY_FEATURE 
CARL9170FW_MINIBOOT 
CARL9170FW_USB_INIT_FIRMWARE 
CARL9170FW_USB_RESP_EP2 
CARL9170FW_USB_DOWN_STREAM 
CARL9170FW_USB_UP_STREAM 
CARL9170FW_UNUSABLE 
CARL9170FW_COMMAND_PHY 
CARL9170FW_COMMAND_CAM 
CARL9170FW_WLANTX_CAB 
CARL9170FW_HANDLE_BACK_REQ 
CARL9170FW_GPIO_INTERRUPT 
CARL9170FW_PSM 
CARL9170FW_RX_FILTER 
CARL9170FW_WOL 
CARL9170FW_FIXED_5GHZ_PSM 
CARL9170FW_HW_COUNTERS 
CARL9170FW_RX_BA_FILTER 
__CARL9170FW_FEATURE_NUM 

Definition at line 26 of file fwdesc.h.

Variable Documentation