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

Go to the source code of this file.

Data Structures

struct  hermes_tx_descriptor
 
struct  hermes_tallies_frame
 
struct  prism2_scan_apinfo
 
struct  agere_scan_apinfo
 
struct  symbol_scan_apinfo
 
union  hermes_scan_info
 
struct  agere_ext_scan_info
 
struct  hermes_linkstatus
 
struct  hermes_response
 
struct  hermes_idstring
 
struct  hermes_multicast
 
struct  hermes_ops
 
struct  hermes
 

Macros

#define HERMES_ALLOC_LEN_MIN   (4)
 
#define HERMES_ALLOC_LEN_MAX   (2400)
 
#define HERMES_LTV_LEN_MAX   (34)
 
#define HERMES_BAP_DATALEN_MAX   (4096)
 
#define HERMES_BAP_OFFSET_MAX   (4096)
 
#define HERMES_PORTID_MAX   (7)
 
#define HERMES_NUMPORTS_MAX   (HERMES_PORTID_MAX + 1)
 
#define HERMES_PDR_LEN_MAX   (260) /* in bytes, from EK */
 
#define HERMES_PDA_RECS_MAX   (200) /* a guess */
 
#define HERMES_PDA_LEN_MAX   (1024) /* in bytes, from EK */
 
#define HERMES_SCANRESULT_MAX   (35)
 
#define HERMES_CHINFORESULT_MAX   (8)
 
#define HERMES_MAX_MULTICAST   (16)
 
#define HERMES_MAGIC   (0x7d1f)
 
#define HERMES_CMD   (0x00)
 
#define HERMES_PARAM0   (0x02)
 
#define HERMES_PARAM1   (0x04)
 
#define HERMES_PARAM2   (0x06)
 
#define HERMES_STATUS   (0x08)
 
#define HERMES_RESP0   (0x0A)
 
#define HERMES_RESP1   (0x0C)
 
#define HERMES_RESP2   (0x0E)
 
#define HERMES_INFOFID   (0x10)
 
#define HERMES_RXFID   (0x20)
 
#define HERMES_ALLOCFID   (0x22)
 
#define HERMES_TXCOMPLFID   (0x24)
 
#define HERMES_SELECT0   (0x18)
 
#define HERMES_OFFSET0   (0x1C)
 
#define HERMES_DATA0   (0x36)
 
#define HERMES_SELECT1   (0x1A)
 
#define HERMES_OFFSET1   (0x1E)
 
#define HERMES_DATA1   (0x38)
 
#define HERMES_EVSTAT   (0x30)
 
#define HERMES_INTEN   (0x32)
 
#define HERMES_EVACK   (0x34)
 
#define HERMES_CONTROL   (0x14)
 
#define HERMES_SWSUPPORT0   (0x28)
 
#define HERMES_SWSUPPORT1   (0x2A)
 
#define HERMES_SWSUPPORT2   (0x2C)
 
#define HERMES_AUXPAGE   (0x3A)
 
#define HERMES_AUXOFFSET   (0x3C)
 
#define HERMES_AUXDATA   (0x3E)
 
#define HERMES_CMD_BUSY   (0x8000)
 
#define HERMES_CMD_AINFO   (0x7f00)
 
#define HERMES_CMD_MACPORT   (0x0700)
 
#define HERMES_CMD_RECL   (0x0100)
 
#define HERMES_CMD_WRITE   (0x0100)
 
#define HERMES_CMD_PROGMODE   (0x0300)
 
#define HERMES_CMD_CMDCODE   (0x003f)
 
#define HERMES_STATUS_RESULT   (0x7f00)
 
#define HERMES_STATUS_CMDCODE   (0x003f)
 
#define HERMES_OFFSET_BUSY   (0x8000)
 
#define HERMES_OFFSET_ERR   (0x4000)
 
#define HERMES_OFFSET_DATAOFF   (0x0ffe)
 
#define HERMES_EV_TICK   (0x8000)
 
#define HERMES_EV_WTERR   (0x4000)
 
#define HERMES_EV_INFDROP   (0x2000)
 
#define HERMES_EV_INFO   (0x0080)
 
#define HERMES_EV_DTIM   (0x0020)
 
#define HERMES_EV_CMD   (0x0010)
 
#define HERMES_EV_ALLOC   (0x0008)
 
#define HERMES_EV_TXEXC   (0x0004)
 
#define HERMES_EV_TX   (0x0002)
 
#define HERMES_EV_RX   (0x0001)
 
#define HERMES_CMD_INIT   (0x0000)
 
#define HERMES_CMD_ENABLE   (0x0001)
 
#define HERMES_CMD_DISABLE   (0x0002)
 
#define HERMES_CMD_DIAG   (0x0003)
 
#define HERMES_CMD_ALLOC   (0x000A)
 
#define HERMES_CMD_TX   (0x000B)
 
#define HERMES_CMD_NOTIFY   (0x0010)
 
#define HERMES_CMD_INQUIRE   (0x0011)
 
#define HERMES_CMD_ACCESS   (0x0021)
 
#define HERMES_CMD_DOWNLD   (0x0022)
 
#define HERMES_CMD_READMIF   (0x0030)
 
#define HERMES_CMD_WRITEMIF   (0x0031)
 
#define HERMES_CMD_TEST   (0x0038)
 
#define HERMES_TEST_SET_CHANNEL   0x0800
 
#define HERMES_TEST_MONITOR   0x0b00
 
#define HERMES_TEST_STOP   0x0f00
 
#define HERMES_AUTH_OPEN   1
 
#define HERMES_AUTH_SHARED_KEY   2
 
#define HERMES_WEP_PRIVACY_INVOKED   0x0001
 
#define HERMES_WEP_EXCL_UNENCRYPTED   0x0002
 
#define HERMES_WEP_HOST_ENCRYPT   0x0010
 
#define HERMES_WEP_HOST_DECRYPT   0x0080
 
#define HERMES_HOSTSCAN_SYMBOL_5SEC   0x0001
 
#define HERMES_HOSTSCAN_SYMBOL_ONCE   0x0002
 
#define HERMES_HOSTSCAN_SYMBOL_PASSIVE   0x0040
 
#define HERMES_HOSTSCAN_SYMBOL_BCAST   0x0080
 
#define HERMES_DESCRIPTOR_OFFSET   0
 
#define HERMES_802_11_OFFSET   (14)
 
#define HERMES_802_3_OFFSET   (14 + 32)
 
#define HERMES_802_2_OFFSET   (14 + 32 + 14)
 
#define HERMES_TXCNTL2_OFFSET   (HERMES_802_3_OFFSET - 2)
 
#define HERMES_RXSTAT_ERR   (0x0003)
 
#define HERMES_RXSTAT_BADCRC   (0x0001)
 
#define HERMES_RXSTAT_UNDECRYPTABLE   (0x0002)
 
#define HERMES_RXSTAT_MIC   (0x0010) /* Frame contains MIC */
 
#define HERMES_RXSTAT_MACPORT   (0x0700)
 
#define HERMES_RXSTAT_PCF   (0x1000) /* Frame was received in CF period */
 
#define HERMES_RXSTAT_MIC_KEY_ID   (0x1800) /* MIC key used */
 
#define HERMES_RXSTAT_MSGTYPE   (0xE000)
 
#define HERMES_RXSTAT_1042   (0x2000) /* RFC-1042 frame */
 
#define HERMES_RXSTAT_TUNNEL   (0x4000) /* bridge-tunnel encoded frame */
 
#define HERMES_RXSTAT_WMP   (0x6000) /* Wavelan-II Management Protocol frame */
 
#define HERMES_MIC_KEY_ID_SHIFT   11
 
#define HERMES_TXSTAT_RETRYERR   (0x0001)
 
#define HERMES_TXSTAT_AGEDERR   (0x0002)
 
#define HERMES_TXSTAT_DISCON   (0x0004)
 
#define HERMES_TXSTAT_FORMERR   (0x0008)
 
#define HERMES_TXCTRL_TX_OK   (0x0002) /* ?? interrupt on Tx complete */
 
#define HERMES_TXCTRL_TX_EX   (0x0004) /* ?? interrupt on Tx exception */
 
#define HERMES_TXCTRL_802_11   (0x0008) /* We supply 802.11 header */
 
#define HERMES_TXCTRL_MIC   (0x0010) /* 802.3 + TKIP */
 
#define HERMES_TXCTRL_MIC_KEY_ID   (0x1800) /* MIC Key ID mask */
 
#define HERMES_TXCTRL_ALT_RTRY   (0x0020)
 
#define HERMES_INQ_TALLIES   (0xF100)
 
#define HERMES_INQ_SCAN   (0xF101)
 
#define HERMES_INQ_CHANNELINFO   (0xF102)
 
#define HERMES_INQ_HOSTSCAN   (0xF103)
 
#define HERMES_INQ_HOSTSCAN_SYMBOL   (0xF104)
 
#define HERMES_INQ_LINKSTATUS   (0xF200)
 
#define HERMES_INQ_SEC_STAT_AGERE   (0xF202)
 
#define HERMES_LINKSTATUS_NOT_CONNECTED   (0x0000)
 
#define HERMES_LINKSTATUS_CONNECTED   (0x0001)
 
#define HERMES_LINKSTATUS_DISCONNECTED   (0x0002)
 
#define HERMES_LINKSTATUS_AP_CHANGE   (0x0003)
 
#define HERMES_LINKSTATUS_AP_OUT_OF_RANGE   (0x0004)
 
#define HERMES_LINKSTATUS_AP_IN_RANGE   (0x0005)
 
#define HERMES_LINKSTATUS_ASSOC_FAILED   (0x0006)
 
#define HERMES_BAP_BUSY_TIMEOUT   (10000) /* In iterations of ~1us */
 
#define HERMES_16BIT_REGSPACING   0
 
#define HERMES_32BIT_REGSPACING   1
 
#define hermes_read_reg(hw, off)   (ioread16((hw)->iobase + ((off) << (hw)->reg_spacing)))
 
#define hermes_write_reg(hw, off, val)   (iowrite16((val), (hw)->iobase + ((off) << (hw)->reg_spacing)))
 
#define hermes_read_regn(hw, name)   hermes_read_reg((hw), HERMES_##name)
 
#define hermes_write_regn(hw, name, val)   hermes_write_reg((hw), HERMES_##name, (val))
 
#define HERMES_BYTES_TO_RECLEN(n)   ((((n) + 1) / 2) + 1)
 
#define HERMES_RECLEN_TO_BYTES(n)   (((n) - 1) * 2)
 
#define HERMES_READ_RECORD(hw, bap, rid, buf)   (hw->ops->read_ltv((hw), (bap), (rid), sizeof(*buf), NULL, (buf)))
 
#define HERMES_WRITE_RECORD(hw, bap, rid, buf)
 

Functions

void hermes_struct_init (struct hermes *hw, void __iomem *address, int reg_spacing)
 

Variables

struct hermes_tx_descriptor __packed
 

Macro Definition Documentation

#define HERMES_16BIT_REGSPACING   0

Definition at line 412 of file hermes.h.

#define HERMES_32BIT_REGSPACING   1

Definition at line 413 of file hermes.h.

#define HERMES_802_11_OFFSET   (14)

Definition at line 180 of file hermes.h.

#define HERMES_802_2_OFFSET   (14 + 32 + 14)

Definition at line 182 of file hermes.h.

#define HERMES_802_3_OFFSET   (14 + 32)

Definition at line 181 of file hermes.h.

#define HERMES_ALLOC_LEN_MAX   (2400)

Definition at line 41 of file hermes.h.

#define HERMES_ALLOC_LEN_MIN   (4)

Definition at line 40 of file hermes.h.

#define HERMES_ALLOCFID   (0x22)

Definition at line 68 of file hermes.h.

#define HERMES_AUTH_OPEN   1

Definition at line 160 of file hermes.h.

#define HERMES_AUTH_SHARED_KEY   2

Definition at line 161 of file hermes.h.

#define HERMES_AUXDATA   (0x3E)

Definition at line 85 of file hermes.h.

#define HERMES_AUXOFFSET   (0x3C)

Definition at line 84 of file hermes.h.

#define HERMES_AUXPAGE   (0x3A)

Definition at line 83 of file hermes.h.

#define HERMES_BAP_BUSY_TIMEOUT   (10000) /* In iterations of ~1us */

Definition at line 375 of file hermes.h.

#define HERMES_BAP_DATALEN_MAX   (4096)

Definition at line 43 of file hermes.h.

#define HERMES_BAP_OFFSET_MAX   (4096)

Definition at line 44 of file hermes.h.

#define HERMES_BYTES_TO_RECLEN (   n)    ((((n) + 1) / 2) + 1)

Definition at line 465 of file hermes.h.

#define HERMES_CHINFORESULT_MAX   (8)

Definition at line 51 of file hermes.h.

#define HERMES_CMD   (0x00)

Definition at line 58 of file hermes.h.

#define HERMES_CMD_ACCESS   (0x0021)

Definition at line 143 of file hermes.h.

#define HERMES_CMD_AINFO   (0x7f00)

Definition at line 91 of file hermes.h.

#define HERMES_CMD_ALLOC   (0x000A)

Definition at line 135 of file hermes.h.

#define HERMES_CMD_BUSY   (0x8000)

Definition at line 90 of file hermes.h.

#define HERMES_CMD_CMDCODE   (0x003f)

Definition at line 96 of file hermes.h.

#define HERMES_CMD_DIAG   (0x0003)

Definition at line 132 of file hermes.h.

#define HERMES_CMD_DISABLE   (0x0002)

Definition at line 131 of file hermes.h.

#define HERMES_CMD_DOWNLD   (0x0022)

Definition at line 144 of file hermes.h.

#define HERMES_CMD_ENABLE   (0x0001)

Definition at line 130 of file hermes.h.

#define HERMES_CMD_INIT   (0x0000)

Definition at line 129 of file hermes.h.

#define HERMES_CMD_INQUIRE   (0x0011)

Definition at line 140 of file hermes.h.

#define HERMES_CMD_MACPORT   (0x0700)

Definition at line 92 of file hermes.h.

#define HERMES_CMD_NOTIFY   (0x0010)

Definition at line 139 of file hermes.h.

#define HERMES_CMD_PROGMODE   (0x0300)

Definition at line 95 of file hermes.h.

#define HERMES_CMD_READMIF   (0x0030)

Definition at line 147 of file hermes.h.

#define HERMES_CMD_RECL   (0x0100)

Definition at line 93 of file hermes.h.

#define HERMES_CMD_TEST   (0x0038)

Definition at line 151 of file hermes.h.

#define HERMES_CMD_TX   (0x000B)

Definition at line 136 of file hermes.h.

#define HERMES_CMD_WRITE   (0x0100)

Definition at line 94 of file hermes.h.

#define HERMES_CMD_WRITEMIF   (0x0031)

Definition at line 148 of file hermes.h.

#define HERMES_CONTROL   (0x14)

Definition at line 79 of file hermes.h.

#define HERMES_DATA0   (0x36)

Definition at line 72 of file hermes.h.

#define HERMES_DATA1   (0x38)

Definition at line 75 of file hermes.h.

#define HERMES_DESCRIPTOR_OFFSET   0

Definition at line 179 of file hermes.h.

#define HERMES_EV_ALLOC   (0x0008)

Definition at line 120 of file hermes.h.

#define HERMES_EV_CMD   (0x0010)

Definition at line 119 of file hermes.h.

#define HERMES_EV_DTIM   (0x0020)

Definition at line 118 of file hermes.h.

#define HERMES_EV_INFDROP   (0x2000)

Definition at line 116 of file hermes.h.

#define HERMES_EV_INFO   (0x0080)

Definition at line 117 of file hermes.h.

#define HERMES_EV_RX   (0x0001)

Definition at line 123 of file hermes.h.

#define HERMES_EV_TICK   (0x8000)

Definition at line 114 of file hermes.h.

#define HERMES_EV_TX   (0x0002)

Definition at line 122 of file hermes.h.

#define HERMES_EV_TXEXC   (0x0004)

Definition at line 121 of file hermes.h.

#define HERMES_EV_WTERR   (0x4000)

Definition at line 115 of file hermes.h.

#define HERMES_EVACK   (0x34)

Definition at line 78 of file hermes.h.

#define HERMES_EVSTAT   (0x30)

Definition at line 76 of file hermes.h.

#define HERMES_HOSTSCAN_SYMBOL_5SEC   0x0001

Definition at line 170 of file hermes.h.

#define HERMES_HOSTSCAN_SYMBOL_BCAST   0x0080

Definition at line 173 of file hermes.h.

#define HERMES_HOSTSCAN_SYMBOL_ONCE   0x0002

Definition at line 171 of file hermes.h.

#define HERMES_HOSTSCAN_SYMBOL_PASSIVE   0x0040

Definition at line 172 of file hermes.h.

#define HERMES_INFOFID   (0x10)

Definition at line 66 of file hermes.h.

#define HERMES_INQ_CHANNELINFO   (0xF102)

Definition at line 226 of file hermes.h.

#define HERMES_INQ_HOSTSCAN   (0xF103)

Definition at line 227 of file hermes.h.

#define HERMES_INQ_HOSTSCAN_SYMBOL   (0xF104)

Definition at line 228 of file hermes.h.

#define HERMES_INQ_LINKSTATUS   (0xF200)

Definition at line 229 of file hermes.h.

#define HERMES_INQ_SCAN   (0xF101)

Definition at line 225 of file hermes.h.

#define HERMES_INQ_SEC_STAT_AGERE   (0xF202)

Definition at line 230 of file hermes.h.

#define HERMES_INQ_TALLIES   (0xF100)

Definition at line 224 of file hermes.h.

#define HERMES_INTEN   (0x32)

Definition at line 77 of file hermes.h.

#define HERMES_LINKSTATUS_AP_CHANGE   (0x0003)

Definition at line 351 of file hermes.h.

#define HERMES_LINKSTATUS_AP_IN_RANGE   (0x0005)

Definition at line 353 of file hermes.h.

#define HERMES_LINKSTATUS_AP_OUT_OF_RANGE   (0x0004)

Definition at line 352 of file hermes.h.

#define HERMES_LINKSTATUS_ASSOC_FAILED   (0x0006)

Definition at line 354 of file hermes.h.

#define HERMES_LINKSTATUS_CONNECTED   (0x0001)

Definition at line 349 of file hermes.h.

#define HERMES_LINKSTATUS_DISCONNECTED   (0x0002)

Definition at line 350 of file hermes.h.

#define HERMES_LINKSTATUS_NOT_CONNECTED   (0x0000)

Definition at line 348 of file hermes.h.

#define HERMES_LTV_LEN_MAX   (34)

Definition at line 42 of file hermes.h.

#define HERMES_MAGIC   (0x7d1f)

Definition at line 53 of file hermes.h.

#define HERMES_MAX_MULTICAST   (16)

Definition at line 52 of file hermes.h.

#define HERMES_MIC_KEY_ID_SHIFT   11

Definition at line 198 of file hermes.h.

#define HERMES_NUMPORTS_MAX   (HERMES_PORTID_MAX + 1)

Definition at line 46 of file hermes.h.

#define HERMES_OFFSET0   (0x1C)

Definition at line 71 of file hermes.h.

#define HERMES_OFFSET1   (0x1E)

Definition at line 74 of file hermes.h.

#define HERMES_OFFSET_BUSY   (0x8000)

Definition at line 107 of file hermes.h.

#define HERMES_OFFSET_DATAOFF   (0x0ffe)

Definition at line 109 of file hermes.h.

#define HERMES_OFFSET_ERR   (0x4000)

Definition at line 108 of file hermes.h.

#define HERMES_PARAM0   (0x02)

Definition at line 59 of file hermes.h.

#define HERMES_PARAM1   (0x04)

Definition at line 60 of file hermes.h.

#define HERMES_PARAM2   (0x06)

Definition at line 61 of file hermes.h.

#define HERMES_PDA_LEN_MAX   (1024) /* in bytes, from EK */

Definition at line 49 of file hermes.h.

#define HERMES_PDA_RECS_MAX   (200) /* a guess */

Definition at line 48 of file hermes.h.

#define HERMES_PDR_LEN_MAX   (260) /* in bytes, from EK */

Definition at line 47 of file hermes.h.

#define HERMES_PORTID_MAX   (7)

Definition at line 45 of file hermes.h.

#define HERMES_READ_RECORD (   hw,
  bap,
  rid,
  buf 
)    (hw->ops->read_ltv((hw), (bap), (rid), sizeof(*buf), NULL, (buf)))

Definition at line 496 of file hermes.h.

#define hermes_read_reg (   hw,
  off 
)    (ioread16((hw)->iobase + ((off) << (hw)->reg_spacing)))

Definition at line 421 of file hermes.h.

#define hermes_read_regn (   hw,
  name 
)    hermes_read_reg((hw), HERMES_##name)

Definition at line 425 of file hermes.h.

#define HERMES_RECLEN_TO_BYTES (   n)    (((n) - 1) * 2)

Definition at line 466 of file hermes.h.

#define HERMES_RESP0   (0x0A)

Definition at line 63 of file hermes.h.

#define HERMES_RESP1   (0x0C)

Definition at line 64 of file hermes.h.

#define HERMES_RESP2   (0x0E)

Definition at line 65 of file hermes.h.

#define HERMES_RXFID   (0x20)

Definition at line 67 of file hermes.h.

#define HERMES_RXSTAT_1042   (0x2000) /* RFC-1042 frame */

Definition at line 193 of file hermes.h.

#define HERMES_RXSTAT_BADCRC   (0x0001)

Definition at line 186 of file hermes.h.

#define HERMES_RXSTAT_ERR   (0x0003)

Definition at line 185 of file hermes.h.

#define HERMES_RXSTAT_MACPORT   (0x0700)

Definition at line 189 of file hermes.h.

#define HERMES_RXSTAT_MIC   (0x0010) /* Frame contains MIC */

Definition at line 188 of file hermes.h.

#define HERMES_RXSTAT_MIC_KEY_ID   (0x1800) /* MIC key used */

Definition at line 191 of file hermes.h.

#define HERMES_RXSTAT_MSGTYPE   (0xE000)

Definition at line 192 of file hermes.h.

#define HERMES_RXSTAT_PCF   (0x1000) /* Frame was received in CF period */

Definition at line 190 of file hermes.h.

#define HERMES_RXSTAT_TUNNEL   (0x4000) /* bridge-tunnel encoded frame */

Definition at line 194 of file hermes.h.

#define HERMES_RXSTAT_UNDECRYPTABLE   (0x0002)

Definition at line 187 of file hermes.h.

#define HERMES_RXSTAT_WMP   (0x6000) /* Wavelan-II Management Protocol frame */

Definition at line 195 of file hermes.h.

#define HERMES_SCANRESULT_MAX   (35)

Definition at line 50 of file hermes.h.

#define HERMES_SELECT0   (0x18)

Definition at line 70 of file hermes.h.

#define HERMES_SELECT1   (0x1A)

Definition at line 73 of file hermes.h.

#define HERMES_STATUS   (0x08)

Definition at line 62 of file hermes.h.

#define HERMES_STATUS_CMDCODE   (0x003f)

Definition at line 102 of file hermes.h.

#define HERMES_STATUS_RESULT   (0x7f00)

Definition at line 101 of file hermes.h.

#define HERMES_SWSUPPORT0   (0x28)

Definition at line 80 of file hermes.h.

#define HERMES_SWSUPPORT1   (0x2A)

Definition at line 81 of file hermes.h.

#define HERMES_SWSUPPORT2   (0x2C)

Definition at line 82 of file hermes.h.

#define HERMES_TEST_MONITOR   0x0b00

Definition at line 156 of file hermes.h.

#define HERMES_TEST_SET_CHANNEL   0x0800

Definition at line 155 of file hermes.h.

#define HERMES_TEST_STOP   0x0f00

Definition at line 157 of file hermes.h.

#define HERMES_TXCNTL2_OFFSET   (HERMES_802_3_OFFSET - 2)

Definition at line 183 of file hermes.h.

#define HERMES_TXCOMPLFID   (0x24)

Definition at line 69 of file hermes.h.

#define HERMES_TXCTRL_802_11   (0x0008) /* We supply 802.11 header */

Definition at line 217 of file hermes.h.

#define HERMES_TXCTRL_ALT_RTRY   (0x0020)

Definition at line 220 of file hermes.h.

#define HERMES_TXCTRL_MIC   (0x0010) /* 802.3 + TKIP */

Definition at line 218 of file hermes.h.

#define HERMES_TXCTRL_MIC_KEY_ID   (0x1800) /* MIC Key ID mask */

Definition at line 219 of file hermes.h.

#define HERMES_TXCTRL_TX_EX   (0x0004) /* ?? interrupt on Tx exception */

Definition at line 216 of file hermes.h.

#define HERMES_TXCTRL_TX_OK   (0x0002) /* ?? interrupt on Tx complete */

Definition at line 215 of file hermes.h.

#define HERMES_TXSTAT_AGEDERR   (0x0002)

Definition at line 211 of file hermes.h.

#define HERMES_TXSTAT_DISCON   (0x0004)

Definition at line 212 of file hermes.h.

#define HERMES_TXSTAT_FORMERR   (0x0008)

Definition at line 213 of file hermes.h.

#define HERMES_TXSTAT_RETRYERR   (0x0001)

Definition at line 210 of file hermes.h.

#define HERMES_WEP_EXCL_UNENCRYPTED   0x0002

Definition at line 165 of file hermes.h.

#define HERMES_WEP_HOST_DECRYPT   0x0080

Definition at line 167 of file hermes.h.

#define HERMES_WEP_HOST_ENCRYPT   0x0010

Definition at line 166 of file hermes.h.

#define HERMES_WEP_PRIVACY_INVOKED   0x0001

Definition at line 164 of file hermes.h.

#define HERMES_WRITE_RECORD (   hw,
  bap,
  rid,
  buf 
)
Value:
(hw->ops->write_ltv((hw), (bap), (rid), \

Definition at line 498 of file hermes.h.

#define hermes_write_reg (   hw,
  off,
  val 
)    (iowrite16((val), (hw)->iobase + ((off) << (hw)->reg_spacing)))

Definition at line 423 of file hermes.h.

#define hermes_write_regn (   hw,
  name,
  val 
)    hermes_write_reg((hw), HERMES_##name, (val))

Definition at line 426 of file hermes.h.

Function Documentation

void hermes_struct_init ( struct hermes hw,
void __iomem address,
int  reg_spacing 
)

Definition at line 188 of file hermes.c.

Variable Documentation