Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Variables
defs.h File Reference
#include <linux/spinlock.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "libertas"
 
#define LBS_DEB_ENTER   0x00000001
 
#define LBS_DEB_LEAVE   0x00000002
 
#define LBS_DEB_MAIN   0x00000004
 
#define LBS_DEB_NET   0x00000008
 
#define LBS_DEB_MESH   0x00000010
 
#define LBS_DEB_WEXT   0x00000020
 
#define LBS_DEB_IOCTL   0x00000040
 
#define LBS_DEB_SCAN   0x00000080
 
#define LBS_DEB_ASSOC   0x00000100
 
#define LBS_DEB_JOIN   0x00000200
 
#define LBS_DEB_11D   0x00000400
 
#define LBS_DEB_DEBUGFS   0x00000800
 
#define LBS_DEB_ETHTOOL   0x00001000
 
#define LBS_DEB_HOST   0x00002000
 
#define LBS_DEB_CMD   0x00004000
 
#define LBS_DEB_RX   0x00008000
 
#define LBS_DEB_TX   0x00010000
 
#define LBS_DEB_USB   0x00020000
 
#define LBS_DEB_CS   0x00040000
 
#define LBS_DEB_FW   0x00080000
 
#define LBS_DEB_THREAD   0x00100000
 
#define LBS_DEB_HEX   0x00200000
 
#define LBS_DEB_SDIO   0x00400000
 
#define LBS_DEB_SYSFS   0x00800000
 
#define LBS_DEB_SPI   0x01000000
 
#define LBS_DEB_CFG80211   0x02000000
 
#define LBS_DEB_LL(grp, grpnam, fmt, args...)   do {} while (0)
 
#define lbs_deb_enter(grp)   LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s()\n", __func__);
 
#define lbs_deb_enter_args(grp, fmt, args...)   LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s(" fmt ")\n", __func__, ## args);
 
#define lbs_deb_leave(grp)   LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s()\n", __func__);
 
#define lbs_deb_leave_args(grp, fmt, args...)
 
#define lbs_deb_main(fmt, args...)   LBS_DEB_LL(LBS_DEB_MAIN, " main", fmt, ##args)
 
#define lbs_deb_net(fmt, args...)   LBS_DEB_LL(LBS_DEB_NET, " net", fmt, ##args)
 
#define lbs_deb_mesh(fmt, args...)   LBS_DEB_LL(LBS_DEB_MESH, " mesh", fmt, ##args)
 
#define lbs_deb_wext(fmt, args...)   LBS_DEB_LL(LBS_DEB_WEXT, " wext", fmt, ##args)
 
#define lbs_deb_ioctl(fmt, args...)   LBS_DEB_LL(LBS_DEB_IOCTL, " ioctl", fmt, ##args)
 
#define lbs_deb_scan(fmt, args...)   LBS_DEB_LL(LBS_DEB_SCAN, " scan", fmt, ##args)
 
#define lbs_deb_assoc(fmt, args...)   LBS_DEB_LL(LBS_DEB_ASSOC, " assoc", fmt, ##args)
 
#define lbs_deb_join(fmt, args...)   LBS_DEB_LL(LBS_DEB_JOIN, " join", fmt, ##args)
 
#define lbs_deb_11d(fmt, args...)   LBS_DEB_LL(LBS_DEB_11D, " 11d", fmt, ##args)
 
#define lbs_deb_debugfs(fmt, args...)   LBS_DEB_LL(LBS_DEB_DEBUGFS, " debugfs", fmt, ##args)
 
#define lbs_deb_ethtool(fmt, args...)   LBS_DEB_LL(LBS_DEB_ETHTOOL, " ethtool", fmt, ##args)
 
#define lbs_deb_host(fmt, args...)   LBS_DEB_LL(LBS_DEB_HOST, " host", fmt, ##args)
 
#define lbs_deb_cmd(fmt, args...)   LBS_DEB_LL(LBS_DEB_CMD, " cmd", fmt, ##args)
 
#define lbs_deb_rx(fmt, args...)   LBS_DEB_LL(LBS_DEB_RX, " rx", fmt, ##args)
 
#define lbs_deb_tx(fmt, args...)   LBS_DEB_LL(LBS_DEB_TX, " tx", fmt, ##args)
 
#define lbs_deb_fw(fmt, args...)   LBS_DEB_LL(LBS_DEB_FW, " fw", fmt, ##args)
 
#define lbs_deb_usb(fmt, args...)   LBS_DEB_LL(LBS_DEB_USB, " usb", fmt, ##args)
 
#define lbs_deb_usbd(dev, fmt, args...)   LBS_DEB_LL(LBS_DEB_USB, " usbd", "%s:" fmt, dev_name(dev), ##args)
 
#define lbs_deb_cs(fmt, args...)   LBS_DEB_LL(LBS_DEB_CS, " cs", fmt, ##args)
 
#define lbs_deb_thread(fmt, args...)   LBS_DEB_LL(LBS_DEB_THREAD, " thread", fmt, ##args)
 
#define lbs_deb_sdio(fmt, args...)   LBS_DEB_LL(LBS_DEB_SDIO, " sdio", fmt, ##args)
 
#define lbs_deb_sysfs(fmt, args...)   LBS_DEB_LL(LBS_DEB_SYSFS, " sysfs", fmt, ##args)
 
#define lbs_deb_spi(fmt, args...)   LBS_DEB_LL(LBS_DEB_SPI, " spi", fmt, ##args)
 
#define lbs_deb_cfg80211(fmt, args...)   LBS_DEB_LL(LBS_DEB_CFG80211, " cfg80211", fmt, ##args)
 
#define lbs_deb_hex(grp, prompt, buf, len)   do {} while (0)
 
#define MRVDRV_MAX_MULTICAST_LIST_SIZE   32
 
#define LBS_NUM_CMD_BUFFERS   10
 
#define LBS_CMD_BUFFER_SIZE   (2 * 1024)
 
#define MRVDRV_MAX_CHANNEL_SIZE   14
 
#define MRVDRV_ASSOCIATION_TIME_OUT   255
 
#define MRVDRV_SNAP_HEADER_LEN   8
 
#define LBS_UPLD_SIZE   2312
 
#define DEV_NAME_LEN   32
 
#define EHS_WAKE_ON_BROADCAST_DATA   0x0001
 
#define EHS_WAKE_ON_UNICAST_DATA   0x0002
 
#define EHS_WAKE_ON_MAC_EVENT   0x0004
 
#define EHS_WAKE_ON_MULTICAST_DATA   0x0008
 
#define EHS_REMOVE_WAKEUP   0xFFFFFFFF
 
#define WOL_RULE_NET_TYPE_INFRA_OR_IBSS   0x00
 
#define WOL_RULE_NET_TYPE_MESH   0x10
 
#define WOL_RULE_ADDR_TYPE_BCAST   0x01
 
#define WOL_RULE_ADDR_TYPE_MCAST   0x08
 
#define WOL_RULE_ADDR_TYPE_UCAST   0x02
 
#define WOL_RULE_OP_AND   0x01
 
#define WOL_RULE_OP_OR   0x02
 
#define WOL_RULE_OP_INVALID   0xFF
 
#define WOL_RESULT_VALID_CMD   0
 
#define WOL_RESULT_NOSPC_ERR   1
 
#define WOL_RESULT_EEXIST_ERR   2
 
#define MRVDRV_MAX_BSS_DESCRIPTS   16
 
#define MRVDRV_MAX_REGION_CODE   6
 
#define MRVDRV_DEFAULT_LISTEN_INTERVAL   10
 
#define MRVDRV_CHANNELS_PER_SCAN   4
 
#define MRVDRV_MAX_CHANNELS_PER_SCAN   14
 
#define MRVDRV_MIN_BEACON_INTERVAL   20
 
#define MRVDRV_MAX_BEACON_INTERVAL   1000
 
#define MRVDRV_BEACON_INTERVAL   100
 
#define MARVELL_MESH_IE_LENGTH   9
 
#define MARVELL_MESH_IE_TYPE   4
 
#define MARVELL_MESH_IE_SUBTYPE   0
 
#define MARVELL_MESH_IE_VERSION   0
 
#define MARVELL_MESH_PROTO_ID_HWMP   0
 
#define MARVELL_MESH_METRIC_ID   0
 
#define MARVELL_MESH_CAPABILITY   0
 
#define MRVDRV_TX_DNLD_RDY   0x0001
 
#define MRVDRV_RX_UPLD_RDY   0x0002
 
#define MRVDRV_CMD_DNLD_RDY   0x0004
 
#define MRVDRV_CMD_UPLD_RDY   0x0008
 
#define MRVDRV_CARDEVENT   0x0010
 
#define POW_ADAPT_DEFAULT_P0   13
 
#define POW_ADAPT_DEFAULT_P1   15
 
#define POW_ADAPT_DEFAULT_P2   18
 
#define TPC_DEFAULT_P0   5
 
#define TPC_DEFAULT_P1   10
 
#define TPC_DEFAULT_P2   13
 
#define MRVDRV_TxPD_POWER_MGMT_NULL_PACKET   0x01
 
#define MRVDRV_TxPD_POWER_MGMT_LAST_PACKET   0x08
 
#define TxPD_CONTROL_WDS_FRAME   (1<<17)
 
#define TxPD_MESH_FRAME   TxPD_CONTROL_WDS_FRAME
 
#define MESH_IFACE_ID   0x0001
 
#define MESH_IFACE_BIT_OFFSET   0x000c
 
#define MESH_CAPINFO_ENABLE_MASK   (1<<16)
 
#define MRVL_FW_V4   (0x04)
 
#define MRVL_FW_V5   (0x05)
 
#define MRVL_FW_V10   (0x0a)
 
#define MRVL_FW_MAJOR_REV(x)   ((x)>>24)
 
#define MRVDRV_RXPD_STATUS_OK   0x0001
 
#define RxPD_CONTROL_WDS_FRAME   (0x40)
 
#define RxPD_MESH_FRAME   RxPD_CONTROL_WDS_FRAME
 
#define MRVDRV_NF_DEFAULT_SCAN_VALUE   (-96)
 
#define MRVDRV_RTS_MIN_VALUE   0
 
#define MRVDRV_RTS_MAX_VALUE   2347
 
#define MRVDRV_FRAG_MIN_VALUE   256
 
#define MRVDRV_FRAG_MAX_VALUE   2346
 
#define EXTRA_LEN   36
 
#define MRVDRV_ETH_TX_PACKET_BUFFER_SIZE   (ETH_FRAME_LEN + sizeof(struct txpd) + EXTRA_LEN)
 
#define MRVDRV_ETH_RX_PACKET_BUFFER_SIZE
 
#define CMD_F_HOSTCMD   (1 << 0)
 
#define FW_CAPINFO_WPA   (1 << 0)
 
#define FW_CAPINFO_PS   (1 << 1)
 
#define FW_CAPINFO_FIRMWARE_UPGRADE   (1 << 13)
 
#define FW_CAPINFO_BOOT2_UPGRADE   (1<<14)
 
#define FW_CAPINFO_PERSISTENT_CONFIG   (1<<15)
 
#define KEY_LEN_WPA_AES   16
 
#define KEY_LEN_WPA_TKIP   32
 
#define KEY_LEN_WEP_104   13
 
#define KEY_LEN_WEP_40   5
 
#define RF_ANTENNA_1   0x1
 
#define RF_ANTENNA_2   0x2
 
#define RF_ANTENNA_AUTO   0xFFFF
 
#define BAND_B   (0x01)
 
#define BAND_G   (0x02)
 
#define ALL_802_11_BANDS   (BAND_B | BAND_G)
 
#define MAX_RATES   14
 
#define MAX_LEDS   8
 
#define FWT_DEFAULT_METRIC   0
 
#define FWT_DEFAULT_DIR   1
 
#define FWT_DEFAULT_RATE   3
 
#define FWT_DEFAULT_SSN   0xffffffff
 
#define FWT_DEFAULT_DSN   0
 
#define FWT_DEFAULT_HOPCOUNT   0
 
#define FWT_DEFAULT_TTL   0
 
#define FWT_DEFAULT_EXPIRATION   0
 
#define FWT_DEFAULT_SLEEPMODE   0
 
#define FWT_DEFAULT_SNR   0
 

Enumerations

enum  SNRNF_TYPE { TYPE_BEACON = 0, TYPE_RXPD, MAX_TYPE_B }
 
enum  SNRNF_DATA { TYPE_NOAVG = 0, TYPE_AVG, MAX_TYPE_AVG }
 
enum  LBS_802_11_POWER_MODE { LBS802_11POWERMODECAM, LBS802_11POWERMODEMAX_PSP, LBS802_11POWERMODEFAST_PSP, LBS802_11POWEMODEMAX }
 
enum  PS_STATE { PS_STATE_FULL_POWER, PS_STATE_AWAKE, PS_STATE_PRE_SLEEP, PS_STATE_SLEEP }
 
enum  DNLD_STATE { DNLD_RES_RECEIVED, DNLD_DATA_SENT, DNLD_CMD_SENT, DNLD_BOOTCMD_SENT }
 
enum  LBS_MEDIA_STATE { LBS_CONNECTED, LBS_DISCONNECTED }
 
enum  LBS_802_11_PRIVACY_FILTER { LBS802_11PRIVFILTERACCEPTALL, LBS802_11PRIVFILTER8021XWEP }
 
enum  mv_ms_type {
  MVMS_DAT = 0, MVMS_CMD = 1, MVMS_TXDONE = 2, MVMS_EVENT,
  MVMS_DAT = 0, MVMS_CMD = 1, MVMS_TXDONE = 2, MVMS_EVENT
}
 
enum  KEY_TYPE_ID {
  KEY_TYPE_ID_WEP = 0, KEY_TYPE_ID_TKIP, KEY_TYPE_ID_AES, KEY_TYPE_ID_WEP = 0,
  KEY_TYPE_ID_TKIP, KEY_TYPE_ID_AES, KEY_TYPE_ID_WAPI, KEY_TYPE_ID_AES_CMAC
}
 
enum  KEY_INFO_WPA { KEY_INFO_WPA_MCAST = 0x01, KEY_INFO_WPA_UNICAST = 0x02, KEY_INFO_WPA_ENABLED = 0x04 }
 

Variables

unsigned int lbs_debug
 
const char lbs_driver_version []
 
u16 lbs_region_code_to_index [MRVDRV_MAX_REGION_CODE]
 

Macro Definition Documentation

#define ALL_802_11_BANDS   (BAND_B | BAND_G)

Definition at line 295 of file defs.h.

#define BAND_B   (0x01)

Definition at line 293 of file defs.h.

#define BAND_G   (0x02)

Definition at line 294 of file defs.h.

#define CMD_F_HOSTCMD   (1 << 0)

Definition at line 277 of file defs.h.

#define DEV_NAME_LEN   32

Definition at line 141 of file defs.h.

#define DRV_NAME   "libertas"

Definition at line 16 of file defs.h.

#define EHS_REMOVE_WAKEUP   0xFFFFFFFF

Definition at line 148 of file defs.h.

#define EHS_WAKE_ON_BROADCAST_DATA   0x0001

Definition at line 144 of file defs.h.

#define EHS_WAKE_ON_MAC_EVENT   0x0004

Definition at line 146 of file defs.h.

#define EHS_WAKE_ON_MULTICAST_DATA   0x0008

Definition at line 147 of file defs.h.

#define EHS_WAKE_ON_UNICAST_DATA   0x0002

Definition at line 145 of file defs.h.

#define EXTRA_LEN   36

Definition at line 268 of file defs.h.

#define FW_CAPINFO_BOOT2_UPGRADE   (1<<14)

Definition at line 281 of file defs.h.

#define FW_CAPINFO_FIRMWARE_UPGRADE   (1 << 13)

Definition at line 280 of file defs.h.

#define FW_CAPINFO_PERSISTENT_CONFIG   (1<<15)

Definition at line 282 of file defs.h.

#define FW_CAPINFO_PS   (1 << 1)

Definition at line 279 of file defs.h.

#define FW_CAPINFO_WPA   (1 << 0)

Definition at line 278 of file defs.h.

#define FWT_DEFAULT_DIR   1

Definition at line 382 of file defs.h.

#define FWT_DEFAULT_DSN   0

Definition at line 386 of file defs.h.

#define FWT_DEFAULT_EXPIRATION   0

Definition at line 389 of file defs.h.

#define FWT_DEFAULT_HOPCOUNT   0

Definition at line 387 of file defs.h.

#define FWT_DEFAULT_METRIC   0

Definition at line 381 of file defs.h.

#define FWT_DEFAULT_RATE   3

Definition at line 384 of file defs.h.

#define FWT_DEFAULT_SLEEPMODE   0

Definition at line 390 of file defs.h.

#define FWT_DEFAULT_SNR   0

Definition at line 391 of file defs.h.

#define FWT_DEFAULT_SSN   0xffffffff

Definition at line 385 of file defs.h.

#define FWT_DEFAULT_TTL   0

Definition at line 388 of file defs.h.

#define KEY_LEN_WEP_104   13

Definition at line 286 of file defs.h.

#define KEY_LEN_WEP_40   5

Definition at line 287 of file defs.h.

#define KEY_LEN_WPA_AES   16

Definition at line 284 of file defs.h.

#define KEY_LEN_WPA_TKIP   32

Definition at line 285 of file defs.h.

#define LBS_CMD_BUFFER_SIZE   (2 * 1024)

Definition at line 135 of file defs.h.

#define LBS_DEB_11D   0x00000400

Definition at line 30 of file defs.h.

#define lbs_deb_11d (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_11D, " 11d", fmt, ##args)

Definition at line 75 of file defs.h.

#define LBS_DEB_ASSOC   0x00000100

Definition at line 28 of file defs.h.

#define lbs_deb_assoc (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_ASSOC, " assoc", fmt, ##args)

Definition at line 73 of file defs.h.

#define LBS_DEB_CFG80211   0x02000000

Definition at line 45 of file defs.h.

#define lbs_deb_cfg80211 (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_CFG80211, " cfg80211", fmt, ##args)

Definition at line 90 of file defs.h.

#define LBS_DEB_CMD   0x00004000

Definition at line 34 of file defs.h.

#define lbs_deb_cmd (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_CMD, " cmd", fmt, ##args)

Definition at line 79 of file defs.h.

#define LBS_DEB_CS   0x00040000

Definition at line 38 of file defs.h.

#define lbs_deb_cs (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_CS, " cs", fmt, ##args)

Definition at line 85 of file defs.h.

#define LBS_DEB_DEBUGFS   0x00000800

Definition at line 31 of file defs.h.

#define lbs_deb_debugfs (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_DEBUGFS, " debugfs", fmt, ##args)

Definition at line 76 of file defs.h.

#define LBS_DEB_ENTER   0x00000001

Definition at line 20 of file defs.h.

#define lbs_deb_enter (   grp)    LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s()\n", __func__);

Definition at line 58 of file defs.h.

#define lbs_deb_enter_args (   grp,
  fmt,
  args... 
)    LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s(" fmt ")\n", __func__, ## args);

Definition at line 60 of file defs.h.

#define LBS_DEB_ETHTOOL   0x00001000

Definition at line 32 of file defs.h.

#define lbs_deb_ethtool (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_ETHTOOL, " ethtool", fmt, ##args)

Definition at line 77 of file defs.h.

#define LBS_DEB_FW   0x00080000

Definition at line 39 of file defs.h.

#define lbs_deb_fw (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_FW, " fw", fmt, ##args)

Definition at line 82 of file defs.h.

#define LBS_DEB_HEX   0x00200000

Definition at line 41 of file defs.h.

#define lbs_deb_hex (   grp,
  prompt,
  buf,
  len 
)    do {} while (0)

Definition at line 114 of file defs.h.

#define LBS_DEB_HOST   0x00002000

Definition at line 33 of file defs.h.

#define lbs_deb_host (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_HOST, " host", fmt, ##args)

Definition at line 78 of file defs.h.

#define LBS_DEB_IOCTL   0x00000040

Definition at line 26 of file defs.h.

#define lbs_deb_ioctl (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_IOCTL, " ioctl", fmt, ##args)

Definition at line 71 of file defs.h.

#define LBS_DEB_JOIN   0x00000200

Definition at line 29 of file defs.h.

#define lbs_deb_join (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_JOIN, " join", fmt, ##args)

Definition at line 74 of file defs.h.

#define LBS_DEB_LEAVE   0x00000002

Definition at line 21 of file defs.h.

#define lbs_deb_leave (   grp)    LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s()\n", __func__);

Definition at line 62 of file defs.h.

#define lbs_deb_leave_args (   grp,
  fmt,
  args... 
)
Value:
LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s(), " fmt "\n", \
__func__, ##args);

Definition at line 64 of file defs.h.

#define LBS_DEB_LL (   grp,
  grpnam,
  fmt,
  args... 
)    do {} while (0)

Definition at line 55 of file defs.h.

#define LBS_DEB_MAIN   0x00000004

Definition at line 22 of file defs.h.

#define lbs_deb_main (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_MAIN, " main", fmt, ##args)

Definition at line 67 of file defs.h.

#define LBS_DEB_MESH   0x00000010

Definition at line 24 of file defs.h.

#define lbs_deb_mesh (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_MESH, " mesh", fmt, ##args)

Definition at line 69 of file defs.h.

#define LBS_DEB_NET   0x00000008

Definition at line 23 of file defs.h.

#define lbs_deb_net (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_NET, " net", fmt, ##args)

Definition at line 68 of file defs.h.

#define LBS_DEB_RX   0x00008000

Definition at line 35 of file defs.h.

#define lbs_deb_rx (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_RX, " rx", fmt, ##args)

Definition at line 80 of file defs.h.

#define LBS_DEB_SCAN   0x00000080

Definition at line 27 of file defs.h.

#define lbs_deb_scan (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_SCAN, " scan", fmt, ##args)

Definition at line 72 of file defs.h.

#define LBS_DEB_SDIO   0x00400000

Definition at line 42 of file defs.h.

#define lbs_deb_sdio (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_SDIO, " sdio", fmt, ##args)

Definition at line 87 of file defs.h.

#define LBS_DEB_SPI   0x01000000

Definition at line 44 of file defs.h.

#define lbs_deb_spi (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_SPI, " spi", fmt, ##args)

Definition at line 89 of file defs.h.

#define LBS_DEB_SYSFS   0x00800000

Definition at line 43 of file defs.h.

#define lbs_deb_sysfs (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_SYSFS, " sysfs", fmt, ##args)

Definition at line 88 of file defs.h.

#define LBS_DEB_THREAD   0x00100000

Definition at line 40 of file defs.h.

#define lbs_deb_thread (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_THREAD, " thread", fmt, ##args)

Definition at line 86 of file defs.h.

#define LBS_DEB_TX   0x00010000

Definition at line 36 of file defs.h.

#define lbs_deb_tx (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_TX, " tx", fmt, ##args)

Definition at line 81 of file defs.h.

#define LBS_DEB_USB   0x00020000

Definition at line 37 of file defs.h.

#define lbs_deb_usb (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_USB, " usb", fmt, ##args)

Definition at line 83 of file defs.h.

#define lbs_deb_usbd (   dev,
  fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_USB, " usbd", "%s:" fmt, dev_name(dev), ##args)

Definition at line 84 of file defs.h.

#define LBS_DEB_WEXT   0x00000020

Definition at line 25 of file defs.h.

#define lbs_deb_wext (   fmt,
  args... 
)    LBS_DEB_LL(LBS_DEB_WEXT, " wext", fmt, ##args)

Definition at line 70 of file defs.h.

#define LBS_NUM_CMD_BUFFERS   10

Definition at line 134 of file defs.h.

#define LBS_UPLD_SIZE   2312

Definition at line 140 of file defs.h.

#define MARVELL_MESH_CAPABILITY   0

Definition at line 188 of file defs.h.

#define MARVELL_MESH_IE_LENGTH   9

Definition at line 177 of file defs.h.

#define MARVELL_MESH_IE_SUBTYPE   0

Definition at line 184 of file defs.h.

#define MARVELL_MESH_IE_TYPE   4

Definition at line 183 of file defs.h.

#define MARVELL_MESH_IE_VERSION   0

Definition at line 185 of file defs.h.

#define MARVELL_MESH_METRIC_ID   0

Definition at line 187 of file defs.h.

#define MARVELL_MESH_PROTO_ID_HWMP   0

Definition at line 186 of file defs.h.

#define MAX_LEDS   8

Definition at line 299 of file defs.h.

#define MAX_RATES   14

Definition at line 297 of file defs.h.

#define MESH_CAPINFO_ENABLE_MASK   (1<<16)

Definition at line 228 of file defs.h.

#define MESH_IFACE_BIT_OFFSET   0x000c

Definition at line 226 of file defs.h.

#define MESH_IFACE_ID   0x0001

Definition at line 224 of file defs.h.

#define MRVDRV_ASSOCIATION_TIME_OUT   255

Definition at line 137 of file defs.h.

#define MRVDRV_BEACON_INTERVAL   100

Definition at line 175 of file defs.h.

#define MRVDRV_CARDEVENT   0x0010

Definition at line 195 of file defs.h.

#define MRVDRV_CHANNELS_PER_SCAN   4

Definition at line 170 of file defs.h.

#define MRVDRV_CMD_DNLD_RDY   0x0004

Definition at line 193 of file defs.h.

#define MRVDRV_CMD_UPLD_RDY   0x0008

Definition at line 194 of file defs.h.

#define MRVDRV_DEFAULT_LISTEN_INTERVAL   10

Definition at line 168 of file defs.h.

#define MRVDRV_ETH_RX_PACKET_BUFFER_SIZE
Value:

Definition at line 273 of file defs.h.

#define MRVDRV_ETH_TX_PACKET_BUFFER_SIZE   (ETH_FRAME_LEN + sizeof(struct txpd) + EXTRA_LEN)

Definition at line 270 of file defs.h.

#define MRVDRV_FRAG_MAX_VALUE   2346

Definition at line 265 of file defs.h.

#define MRVDRV_FRAG_MIN_VALUE   256

Definition at line 264 of file defs.h.

#define MRVDRV_MAX_BEACON_INTERVAL   1000

Definition at line 174 of file defs.h.

#define MRVDRV_MAX_BSS_DESCRIPTS   16

Definition at line 165 of file defs.h.

#define MRVDRV_MAX_CHANNEL_SIZE   14

Definition at line 136 of file defs.h.

#define MRVDRV_MAX_CHANNELS_PER_SCAN   14

Definition at line 171 of file defs.h.

#define MRVDRV_MAX_MULTICAST_LIST_SIZE   32

Definition at line 133 of file defs.h.

#define MRVDRV_MAX_REGION_CODE   6

Definition at line 166 of file defs.h.

#define MRVDRV_MIN_BEACON_INTERVAL   20

Definition at line 173 of file defs.h.

#define MRVDRV_NF_DEFAULT_SCAN_VALUE   (-96)

Definition at line 259 of file defs.h.

#define MRVDRV_RTS_MAX_VALUE   2347

Definition at line 263 of file defs.h.

#define MRVDRV_RTS_MIN_VALUE   0

Definition at line 262 of file defs.h.

#define MRVDRV_RX_UPLD_RDY   0x0002

Definition at line 192 of file defs.h.

#define MRVDRV_RXPD_STATUS_OK   0x0001

Definition at line 241 of file defs.h.

#define MRVDRV_SNAP_HEADER_LEN   8

Definition at line 138 of file defs.h.

#define MRVDRV_TX_DNLD_RDY   0x0001

Definition at line 191 of file defs.h.

#define MRVDRV_TxPD_POWER_MGMT_LAST_PACKET   0x08

Definition at line 213 of file defs.h.

#define MRVDRV_TxPD_POWER_MGMT_NULL_PACKET   0x01

Definition at line 212 of file defs.h.

#define MRVL_FW_MAJOR_REV (   x)    ((x)>>24)

Definition at line 237 of file defs.h.

#define MRVL_FW_V10   (0x0a)

Definition at line 235 of file defs.h.

#define MRVL_FW_V4   (0x04)

Definition at line 231 of file defs.h.

#define MRVL_FW_V5   (0x05)

Definition at line 233 of file defs.h.

#define POW_ADAPT_DEFAULT_P0   13

Definition at line 198 of file defs.h.

#define POW_ADAPT_DEFAULT_P1   15

Definition at line 199 of file defs.h.

#define POW_ADAPT_DEFAULT_P2   18

Definition at line 200 of file defs.h.

#define RF_ANTENNA_1   0x1

Definition at line 289 of file defs.h.

#define RF_ANTENNA_2   0x2

Definition at line 290 of file defs.h.

#define RF_ANTENNA_AUTO   0xFFFF

Definition at line 291 of file defs.h.

#define RxPD_CONTROL_WDS_FRAME   (0x40)

Definition at line 249 of file defs.h.

#define RxPD_MESH_FRAME   RxPD_CONTROL_WDS_FRAME

Definition at line 250 of file defs.h.

#define TPC_DEFAULT_P0   5

Definition at line 201 of file defs.h.

#define TPC_DEFAULT_P1   10

Definition at line 202 of file defs.h.

#define TPC_DEFAULT_P2   13

Definition at line 203 of file defs.h.

#define TxPD_CONTROL_WDS_FRAME   (1<<17)

Definition at line 220 of file defs.h.

#define TxPD_MESH_FRAME   TxPD_CONTROL_WDS_FRAME

Definition at line 221 of file defs.h.

#define WOL_RESULT_EEXIST_ERR   2

Definition at line 160 of file defs.h.

#define WOL_RESULT_NOSPC_ERR   1

Definition at line 159 of file defs.h.

#define WOL_RESULT_VALID_CMD   0

Definition at line 158 of file defs.h.

#define WOL_RULE_ADDR_TYPE_BCAST   0x01

Definition at line 152 of file defs.h.

#define WOL_RULE_ADDR_TYPE_MCAST   0x08

Definition at line 153 of file defs.h.

#define WOL_RULE_ADDR_TYPE_UCAST   0x02

Definition at line 154 of file defs.h.

#define WOL_RULE_NET_TYPE_INFRA_OR_IBSS   0x00

Definition at line 150 of file defs.h.

#define WOL_RULE_NET_TYPE_MESH   0x10

Definition at line 151 of file defs.h.

#define WOL_RULE_OP_AND   0x01

Definition at line 155 of file defs.h.

#define WOL_RULE_OP_INVALID   0xFF

Definition at line 157 of file defs.h.

#define WOL_RULE_OP_OR   0x02

Definition at line 156 of file defs.h.

Enumeration Type Documentation

enum DNLD_STATE
Enumerator:
DNLD_RES_RECEIVED 
DNLD_DATA_SENT 
DNLD_CMD_SENT 
DNLD_BOOTCMD_SENT 

Definition at line 339 of file defs.h.

Enumerator:
KEY_INFO_WPA_MCAST 
KEY_INFO_WPA_UNICAST 
KEY_INFO_WPA_ENABLED 

Definition at line 374 of file defs.h.

Enumerator:
KEY_TYPE_ID_WEP 
KEY_TYPE_ID_TKIP 
KEY_TYPE_ID_AES 
KEY_TYPE_ID_WEP 
KEY_TYPE_ID_TKIP 
KEY_TYPE_ID_AES 
KEY_TYPE_ID_WAPI 
KEY_TYPE_ID_AES_CMAC 

Definition at line 367 of file defs.h.

Enumerator:
LBS802_11POWERMODECAM 
LBS802_11POWERMODEMAX_PSP 
LBS802_11POWERMODEFAST_PSP 
LBS802_11POWEMODEMAX 

Definition at line 322 of file defs.h.

Enumerator:
LBS802_11PRIVFILTERACCEPTALL 
LBS802_11PRIVFILTER8021XWEP 

Definition at line 353 of file defs.h.

Enumerator:
LBS_CONNECTED 
LBS_DISCONNECTED 

Definition at line 347 of file defs.h.

enum mv_ms_type
Enumerator:
MVMS_DAT 
MVMS_CMD 
MVMS_TXDONE 
MVMS_EVENT 
MVMS_DAT 
MVMS_CMD 
MVMS_TXDONE 
MVMS_EVENT 

Definition at line 359 of file defs.h.

enum PS_STATE
Enumerator:
PS_STATE_FULL_POWER 
PS_STATE_AWAKE 
PS_STATE_PRE_SLEEP 
PS_STATE_SLEEP 

Definition at line 331 of file defs.h.

enum SNRNF_DATA
Enumerator:
TYPE_NOAVG 
TYPE_AVG 
MAX_TYPE_AVG 

Definition at line 315 of file defs.h.

enum SNRNF_TYPE
Enumerator:
TYPE_BEACON 
TYPE_RXPD 
MAX_TYPE_B 

Definition at line 308 of file defs.h.

Variable Documentation

unsigned int lbs_debug

Definition at line 37 of file main.c.

const char lbs_driver_version[]

Definition at line 29 of file main.c.

u16 lbs_region_code_to_index[MRVDRV_MAX_REGION_CODE]

Definition at line 56 of file main.c.