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

Go to the source code of this file.

Data Structures

struct  basic_ring
 
struct  transmit_ring
 
struct  typhoon_indexes
 
struct  typhoon_interface
 
struct  tx_desc
 
struct  tcpopt_desc
 
struct  ipsec_desc
 
struct  rx_desc
 
struct  rx_free
 
struct  cmd_desc
 
struct  resp_desc
 
struct  stats_resp
 
struct  sa_descriptor
 
struct  typhoon_file_header
 
struct  typhoon_section_header
 

Macros

#define TYPHOON_TYPE_MASK   0x07
 
#define TYPHOON_FRAG_DESC   0x00
 
#define TYPHOON_TX_DESC   0x01
 
#define TYPHOON_CMD_DESC   0x02
 
#define TYPHOON_OPT_DESC   0x03
 
#define TYPHOON_RX_DESC   0x04
 
#define TYPHOON_RESP_DESC   0x05
 
#define TYPHOON_OPT_TYPE_MASK   0xf0
 
#define TYPHOON_OPT_IPSEC   0x00
 
#define TYPHOON_OPT_TCP_SEG   0x10
 
#define TYPHOON_CMD_RESPOND   0x40
 
#define TYPHOON_RESP_ERROR   0x40
 
#define TYPHOON_RX_ERROR   0x40
 
#define TYPHOON_DESC_VALID   0x80
 
#define TYPHOON_TX_PF_NO_CRC   cpu_to_le32(0x00000001)
 
#define TYPHOON_TX_PF_IP_CHKSUM   cpu_to_le32(0x00000002)
 
#define TYPHOON_TX_PF_TCP_CHKSUM   cpu_to_le32(0x00000004)
 
#define TYPHOON_TX_PF_TCP_SEGMENT   cpu_to_le32(0x00000008)
 
#define TYPHOON_TX_PF_INSERT_VLAN   cpu_to_le32(0x00000010)
 
#define TYPHOON_TX_PF_IPSEC   cpu_to_le32(0x00000020)
 
#define TYPHOON_TX_PF_VLAN_PRIORITY   cpu_to_le32(0x00000040)
 
#define TYPHOON_TX_PF_UDP_CHKSUM   cpu_to_le32(0x00000080)
 
#define TYPHOON_TX_PF_PAD_FRAME   cpu_to_le32(0x00000100)
 
#define TYPHOON_TX_PF_RESERVED   cpu_to_le32(0x00000e00)
 
#define TYPHOON_TX_PF_VLAN_MASK   cpu_to_le32(0x0ffff000)
 
#define TYPHOON_TX_PF_INTERNAL   cpu_to_le32(0xf0000000)
 
#define TYPHOON_TX_PF_VLAN_TAG_SHIFT   12
 
#define TYPHOON_TSO_FIRST   cpu_to_le16(0x1000)
 
#define TYPHOON_TSO_LAST   cpu_to_le16(0x2000)
 
#define TYPHOON_IPSEC_GEN_IV   cpu_to_le16(0x0000)
 
#define TYPHOON_IPSEC_USE_IV   cpu_to_le16(0x0001)
 
#define TYPHOON_RX_ERR_INTERNAL   cpu_to_le32(0x00000000)
 
#define TYPHOON_RX_ERR_FIFO_UNDERRUN   cpu_to_le32(0x00000001)
 
#define TYPHOON_RX_ERR_BAD_SSD   cpu_to_le32(0x00000002)
 
#define TYPHOON_RX_ERR_RUNT   cpu_to_le32(0x00000003)
 
#define TYPHOON_RX_ERR_CRC   cpu_to_le32(0x00000004)
 
#define TYPHOON_RX_ERR_OVERSIZE   cpu_to_le32(0x00000005)
 
#define TYPHOON_RX_ERR_ALIGN   cpu_to_le32(0x00000006)
 
#define TYPHOON_RX_ERR_DRIBBLE   cpu_to_le32(0x00000007)
 
#define TYPHOON_RX_PROTO_MASK   cpu_to_le32(0x00000003)
 
#define TYPHOON_RX_PROTO_UNKNOWN   cpu_to_le32(0x00000000)
 
#define TYPHOON_RX_PROTO_IP   cpu_to_le32(0x00000001)
 
#define TYPHOON_RX_PROTO_IPX   cpu_to_le32(0x00000002)
 
#define TYPHOON_RX_VLAN   cpu_to_le32(0x00000004)
 
#define TYPHOON_RX_IP_FRAG   cpu_to_le32(0x00000008)
 
#define TYPHOON_RX_IPSEC   cpu_to_le32(0x00000010)
 
#define TYPHOON_RX_IP_CHK_FAIL   cpu_to_le32(0x00000020)
 
#define TYPHOON_RX_TCP_CHK_FAIL   cpu_to_le32(0x00000040)
 
#define TYPHOON_RX_UDP_CHK_FAIL   cpu_to_le32(0x00000080)
 
#define TYPHOON_RX_IP_CHK_GOOD   cpu_to_le32(0x00000100)
 
#define TYPHOON_RX_TCP_CHK_GOOD   cpu_to_le32(0x00000200)
 
#define TYPHOON_RX_UDP_CHK_GOOD   cpu_to_le32(0x00000400)
 
#define TYPHOON_RX_FILTER_MASK   cpu_to_le16(0x7fff)
 
#define TYPHOON_RX_FILTERED   cpu_to_le16(0x8000)
 
#define TYPHOON_RX_OUTER_AH_GOOD   cpu_to_le16(0x0001)
 
#define TYPHOON_RX_OUTER_ESP_GOOD   cpu_to_le16(0x0002)
 
#define TYPHOON_RX_INNER_AH_GOOD   cpu_to_le16(0x0004)
 
#define TYPHOON_RX_INNER_ESP_GOOD   cpu_to_le16(0x0008)
 
#define TYPHOON_RX_OUTER_AH_FAIL   cpu_to_le16(0x0010)
 
#define TYPHOON_RX_OUTER_ESP_FAIL   cpu_to_le16(0x0020)
 
#define TYPHOON_RX_INNER_AH_FAIL   cpu_to_le16(0x0040)
 
#define TYPHOON_RX_INNER_ESP_FAIL   cpu_to_le16(0x0080)
 
#define TYPHOON_RX_UNKNOWN_SA   cpu_to_le16(0x0100)
 
#define TYPHOON_RX_ESP_FORMAT_ERR   cpu_to_le16(0x0200)
 
#define TYPHOON_CMD_TX_ENABLE   cpu_to_le16(0x0001)
 
#define TYPHOON_CMD_TX_DISABLE   cpu_to_le16(0x0002)
 
#define TYPHOON_CMD_RX_ENABLE   cpu_to_le16(0x0003)
 
#define TYPHOON_CMD_RX_DISABLE   cpu_to_le16(0x0004)
 
#define TYPHOON_CMD_SET_RX_FILTER   cpu_to_le16(0x0005)
 
#define TYPHOON_CMD_READ_STATS   cpu_to_le16(0x0007)
 
#define TYPHOON_CMD_XCVR_SELECT   cpu_to_le16(0x0013)
 
#define TYPHOON_CMD_SET_MAX_PKT_SIZE   cpu_to_le16(0x001a)
 
#define TYPHOON_CMD_READ_MEDIA_STATUS   cpu_to_le16(0x001b)
 
#define TYPHOON_CMD_GOTO_SLEEP   cpu_to_le16(0x0023)
 
#define TYPHOON_CMD_SET_MULTICAST_HASH   cpu_to_le16(0x0025)
 
#define TYPHOON_CMD_SET_MAC_ADDRESS   cpu_to_le16(0x0026)
 
#define TYPHOON_CMD_READ_MAC_ADDRESS   cpu_to_le16(0x0027)
 
#define TYPHOON_CMD_VLAN_TYPE_WRITE   cpu_to_le16(0x002b)
 
#define TYPHOON_CMD_CREATE_SA   cpu_to_le16(0x0034)
 
#define TYPHOON_CMD_DELETE_SA   cpu_to_le16(0x0035)
 
#define TYPHOON_CMD_READ_VERSIONS   cpu_to_le16(0x0043)
 
#define TYPHOON_CMD_IRQ_COALESCE_CTRL   cpu_to_le16(0x0045)
 
#define TYPHOON_CMD_ENABLE_WAKE_EVENTS   cpu_to_le16(0x0049)
 
#define TYPHOON_CMD_SET_OFFLOAD_TASKS   cpu_to_le16(0x004f)
 
#define TYPHOON_CMD_HELLO_RESP   cpu_to_le16(0x0057)
 
#define TYPHOON_CMD_HALT   cpu_to_le16(0x005d)
 
#define TYPHOON_CMD_READ_IPSEC_INFO   cpu_to_le16(0x005e)
 
#define TYPHOON_CMD_GET_IPSEC_ENABLE   cpu_to_le16(0x0067)
 
#define TYPHOON_CMD_GET_CMD_LVL   cpu_to_le16(0x0069)
 
#define INIT_COMMAND_NO_RESPONSE(x, command)
 
#define INIT_COMMAND_WITH_RESPONSE(x, command)
 
#define TYPHOON_RX_FILTER_DIRECTED   cpu_to_le16(0x0001)
 
#define TYPHOON_RX_FILTER_ALL_MCAST   cpu_to_le16(0x0002)
 
#define TYPHOON_RX_FILTER_BROADCAST   cpu_to_le16(0x0004)
 
#define TYPHOON_RX_FILTER_PROMISCOUS   cpu_to_le16(0x0008)
 
#define TYPHOON_RX_FILTER_MCAST_HASH   cpu_to_le16(0x0010)
 
#define TYPHOON_LINK_STAT_MASK   cpu_to_le32(0x00000001)
 
#define TYPHOON_LINK_GOOD   cpu_to_le32(0x00000001)
 
#define TYPHOON_LINK_BAD   cpu_to_le32(0x00000000)
 
#define TYPHOON_LINK_SPEED_MASK   cpu_to_le32(0x00000002)
 
#define TYPHOON_LINK_100MBPS   cpu_to_le32(0x00000002)
 
#define TYPHOON_LINK_10MBPS   cpu_to_le32(0x00000000)
 
#define TYPHOON_LINK_DUPLEX_MASK   cpu_to_le32(0x00000004)
 
#define TYPHOON_LINK_FULL_DUPLEX   cpu_to_le32(0x00000004)
 
#define TYPHOON_LINK_HALF_DUPLEX   cpu_to_le32(0x00000000)
 
#define TYPHOON_XCVR_10HALF   cpu_to_le16(0x0000)
 
#define TYPHOON_XCVR_10FULL   cpu_to_le16(0x0001)
 
#define TYPHOON_XCVR_100HALF   cpu_to_le16(0x0002)
 
#define TYPHOON_XCVR_100FULL   cpu_to_le16(0x0003)
 
#define TYPHOON_XCVR_AUTONEG   cpu_to_le16(0x0004)
 
#define TYPHOON_MEDIA_STAT_CRC_STRIP_DISABLE   cpu_to_le16(0x0004)
 
#define TYPHOON_MEDIA_STAT_COLLISION_DETECT   cpu_to_le16(0x0010)
 
#define TYPHOON_MEDIA_STAT_CARRIER_SENSE   cpu_to_le16(0x0020)
 
#define TYPHOON_MEDIA_STAT_POLARITY_REV   cpu_to_le16(0x0400)
 
#define TYPHOON_MEDIA_STAT_NO_LINK   cpu_to_le16(0x0800)
 
#define TYPHOON_MCAST_HASH_DISABLE   cpu_to_le16(0x0000)
 
#define TYPHOON_MCAST_HASH_ENABLE   cpu_to_le16(0x0001)
 
#define TYPHOON_MCAST_HASH_SET   cpu_to_le16(0x0002)
 
#define TYPHOON_SA_MODE_NULL   cpu_to_le16(0x0000)
 
#define TYPHOON_SA_MODE_AH   cpu_to_le16(0x0001)
 
#define TYPHOON_SA_MODE_ESP   cpu_to_le16(0x0002)
 
#define TYPHOON_SA_HASH_ENABLE   0x01
 
#define TYPHOON_SA_HASH_SHA1   0x02
 
#define TYPHOON_SA_HASH_MD5   0x04
 
#define TYPHOON_SA_DIR_RX   0x00
 
#define TYPHOON_SA_DIR_TX   0x01
 
#define TYPHOON_SA_ENCRYPT_ENABLE   0x01
 
#define TYPHOON_SA_ENCRYPT_DES   0x02
 
#define TYPHOON_SA_ENCRYPT_3DES   0x00
 
#define TYPHOON_SA_ENCRYPT_3DES_2KEY   0x00
 
#define TYPHOON_SA_ENCRYPT_3DES_3KEY   0x04
 
#define TYPHOON_SA_ENCRYPT_CBC   0x08
 
#define TYPHOON_SA_ENCRYPT_ECB   0x00
 
#define TYPHOON_SA_SPECIFY_INDEX   0x01
 
#define TYPHOON_SA_GENERATE_INDEX   0x00
 
#define TYPHOON_OFFLOAD_TCP_CHKSUM   cpu_to_le32(0x00000002)
 
#define TYPHOON_OFFLOAD_UDP_CHKSUM   cpu_to_le32(0x00000004)
 
#define TYPHOON_OFFLOAD_IP_CHKSUM   cpu_to_le32(0x00000008)
 
#define TYPHOON_OFFLOAD_IPSEC   cpu_to_le32(0x00000010)
 
#define TYPHOON_OFFLOAD_BCAST_THROTTLE   cpu_to_le32(0x00000020)
 
#define TYPHOON_OFFLOAD_DHCP_PREVENT   cpu_to_le32(0x00000040)
 
#define TYPHOON_OFFLOAD_VLAN   cpu_to_le32(0x00000080)
 
#define TYPHOON_OFFLOAD_FILTERING   cpu_to_le32(0x00000100)
 
#define TYPHOON_OFFLOAD_TCP_SEGMENT   cpu_to_le32(0x00000200)
 
#define TYPHOON_WAKE_MAGIC_PKT   cpu_to_le16(0x01)
 
#define TYPHOON_WAKE_LINK_EVENT   cpu_to_le16(0x02)
 
#define TYPHOON_WAKE_ICMP_ECHO   cpu_to_le16(0x04)
 
#define TYPHOON_WAKE_ARP   cpu_to_le16(0x08)
 
#define TYPHOON_REG_SOFT_RESET   0x00
 
#define TYPHOON_REG_INTR_STATUS   0x04
 
#define TYPHOON_REG_INTR_ENABLE   0x08
 
#define TYPHOON_REG_INTR_MASK   0x0c
 
#define TYPHOON_REG_SELF_INTERRUPT   0x10
 
#define TYPHOON_REG_HOST2ARM7   0x14
 
#define TYPHOON_REG_HOST2ARM6   0x18
 
#define TYPHOON_REG_HOST2ARM5   0x1c
 
#define TYPHOON_REG_HOST2ARM4   0x20
 
#define TYPHOON_REG_HOST2ARM3   0x24
 
#define TYPHOON_REG_HOST2ARM2   0x28
 
#define TYPHOON_REG_HOST2ARM1   0x2c
 
#define TYPHOON_REG_HOST2ARM0   0x30
 
#define TYPHOON_REG_ARM2HOST3   0x34
 
#define TYPHOON_REG_ARM2HOST2   0x38
 
#define TYPHOON_REG_ARM2HOST1   0x3c
 
#define TYPHOON_REG_ARM2HOST0   0x40
 
#define TYPHOON_REG_BOOT_DATA_LO   TYPHOON_REG_HOST2ARM5
 
#define TYPHOON_REG_BOOT_DATA_HI   TYPHOON_REG_HOST2ARM4
 
#define TYPHOON_REG_BOOT_DEST_ADDR   TYPHOON_REG_HOST2ARM3
 
#define TYPHOON_REG_BOOT_CHECKSUM   TYPHOON_REG_HOST2ARM2
 
#define TYPHOON_REG_BOOT_LENGTH   TYPHOON_REG_HOST2ARM1
 
#define TYPHOON_REG_DOWNLOAD_BOOT_ADDR   TYPHOON_REG_HOST2ARM1
 
#define TYPHOON_REG_DOWNLOAD_HMAC_0   TYPHOON_REG_HOST2ARM2
 
#define TYPHOON_REG_DOWNLOAD_HMAC_1   TYPHOON_REG_HOST2ARM3
 
#define TYPHOON_REG_DOWNLOAD_HMAC_2   TYPHOON_REG_HOST2ARM4
 
#define TYPHOON_REG_DOWNLOAD_HMAC_3   TYPHOON_REG_HOST2ARM5
 
#define TYPHOON_REG_DOWNLOAD_HMAC_4   TYPHOON_REG_HOST2ARM6
 
#define TYPHOON_REG_BOOT_RECORD_ADDR_HI   TYPHOON_REG_HOST2ARM2
 
#define TYPHOON_REG_BOOT_RECORD_ADDR_LO   TYPHOON_REG_HOST2ARM1
 
#define TYPHOON_REG_TX_LO_READY   TYPHOON_REG_HOST2ARM3
 
#define TYPHOON_REG_CMD_READY   TYPHOON_REG_HOST2ARM2
 
#define TYPHOON_REG_TX_HI_READY   TYPHOON_REG_HOST2ARM1
 
#define TYPHOON_REG_COMMAND   TYPHOON_REG_HOST2ARM0
 
#define TYPHOON_REG_HEARTBEAT   TYPHOON_REG_ARM2HOST3
 
#define TYPHOON_REG_STATUS   TYPHOON_REG_ARM2HOST0
 
#define TYPHOON_RESET_ALL   0x7f
 
#define TYPHOON_RESET_NONE   0x00
 
#define TYPHOON_INTR_HOST_INT   0x00000001
 
#define TYPHOON_INTR_ARM2HOST0   0x00000002
 
#define TYPHOON_INTR_ARM2HOST1   0x00000004
 
#define TYPHOON_INTR_ARM2HOST2   0x00000008
 
#define TYPHOON_INTR_ARM2HOST3   0x00000010
 
#define TYPHOON_INTR_DMA0   0x00000020
 
#define TYPHOON_INTR_DMA1   0x00000040
 
#define TYPHOON_INTR_DMA2   0x00000080
 
#define TYPHOON_INTR_DMA3   0x00000100
 
#define TYPHOON_INTR_MASTER_ABORT   0x00000200
 
#define TYPHOON_INTR_TARGET_ABORT   0x00000400
 
#define TYPHOON_INTR_SELF   0x00000800
 
#define TYPHOON_INTR_RESERVED   0xfffff000
 
#define TYPHOON_INTR_BOOTCMD   TYPHOON_INTR_ARM2HOST0
 
#define TYPHOON_INTR_ENABLE_ALL   0xffffffef
 
#define TYPHOON_INTR_ALL   0xffffffff
 
#define TYPHOON_INTR_NONE   0x00000000
 
#define TYPHOON_BOOTCMD_BOOT   0x00
 
#define TYPHOON_BOOTCMD_WAKEUP   0xfa
 
#define TYPHOON_BOOTCMD_DNLD_COMPLETE   0xfb
 
#define TYPHOON_BOOTCMD_SEG_AVAILABLE   0xfc
 
#define TYPHOON_BOOTCMD_RUNTIME_IMAGE   0xfd
 
#define TYPHOON_BOOTCMD_REG_BOOT_RECORD   0xff
 
#define TYPHOON_STATUS_WAITING_FOR_BOOT   0x07
 
#define TYPHOON_STATUS_SECOND_INIT   0x08
 
#define TYPHOON_STATUS_RUNNING   0x09
 
#define TYPHOON_STATUS_WAITING_FOR_HOST   0x0d
 
#define TYPHOON_STATUS_WAITING_FOR_SEGMENT   0x10
 
#define TYPHOON_STATUS_SLEEPING   0x11
 
#define TYPHOON_STATUS_HALTED   0x14
 

Variables

struct typhoon_indexes __packed
 

Macro Definition Documentation

#define INIT_COMMAND_NO_RESPONSE (   x,
  command 
)
Value:
do { struct cmd_desc *_ptr = (x); \
memset(_ptr, 0, sizeof(struct cmd_desc)); \
_ptr->cmd = command; \
} while(0)

Definition at line 364 of file typhoon.h.

#define INIT_COMMAND_WITH_RESPONSE (   x,
  command 
)
Value:
do { struct cmd_desc *_ptr = (x); \
memset(_ptr, 0, sizeof(struct cmd_desc)); \
_ptr->flags |= TYPHOON_DESC_VALID; \
_ptr->cmd = command; \
_ptr->seqNo = 1; \
} while(0)

Definition at line 372 of file typhoon.h.

#define TYPHOON_BOOTCMD_BOOT   0x00

Definition at line 609 of file typhoon.h.

#define TYPHOON_BOOTCMD_DNLD_COMPLETE   0xfb

Definition at line 611 of file typhoon.h.

#define TYPHOON_BOOTCMD_REG_BOOT_RECORD   0xff

Definition at line 614 of file typhoon.h.

#define TYPHOON_BOOTCMD_RUNTIME_IMAGE   0xfd

Definition at line 613 of file typhoon.h.

#define TYPHOON_BOOTCMD_SEG_AVAILABLE   0xfc

Definition at line 612 of file typhoon.h.

#define TYPHOON_BOOTCMD_WAKEUP   0xfa

Definition at line 610 of file typhoon.h.

#define TYPHOON_CMD_CREATE_SA   cpu_to_le16(0x0034)

Definition at line 335 of file typhoon.h.

#define TYPHOON_CMD_DELETE_SA   cpu_to_le16(0x0035)

Definition at line 336 of file typhoon.h.

#define TYPHOON_CMD_DESC   0x02

Definition at line 156 of file typhoon.h.

#define TYPHOON_CMD_ENABLE_WAKE_EVENTS   cpu_to_le16(0x0049)

Definition at line 339 of file typhoon.h.

#define TYPHOON_CMD_GET_CMD_LVL   cpu_to_le16(0x0069)

Definition at line 345 of file typhoon.h.

#define TYPHOON_CMD_GET_IPSEC_ENABLE   cpu_to_le16(0x0067)

Definition at line 344 of file typhoon.h.

#define TYPHOON_CMD_GOTO_SLEEP   cpu_to_le16(0x0023)

Definition at line 330 of file typhoon.h.

#define TYPHOON_CMD_HALT   cpu_to_le16(0x005d)

Definition at line 342 of file typhoon.h.

#define TYPHOON_CMD_HELLO_RESP   cpu_to_le16(0x0057)

Definition at line 341 of file typhoon.h.

#define TYPHOON_CMD_IRQ_COALESCE_CTRL   cpu_to_le16(0x0045)

Definition at line 338 of file typhoon.h.

#define TYPHOON_CMD_READ_IPSEC_INFO   cpu_to_le16(0x005e)

Definition at line 343 of file typhoon.h.

#define TYPHOON_CMD_READ_MAC_ADDRESS   cpu_to_le16(0x0027)

Definition at line 333 of file typhoon.h.

#define TYPHOON_CMD_READ_MEDIA_STATUS   cpu_to_le16(0x001b)

Definition at line 329 of file typhoon.h.

#define TYPHOON_CMD_READ_STATS   cpu_to_le16(0x0007)

Definition at line 326 of file typhoon.h.

#define TYPHOON_CMD_READ_VERSIONS   cpu_to_le16(0x0043)

Definition at line 337 of file typhoon.h.

#define TYPHOON_CMD_RESPOND   0x40

Definition at line 163 of file typhoon.h.

#define TYPHOON_CMD_RX_DISABLE   cpu_to_le16(0x0004)

Definition at line 324 of file typhoon.h.

#define TYPHOON_CMD_RX_ENABLE   cpu_to_le16(0x0003)

Definition at line 323 of file typhoon.h.

#define TYPHOON_CMD_SET_MAC_ADDRESS   cpu_to_le16(0x0026)

Definition at line 332 of file typhoon.h.

#define TYPHOON_CMD_SET_MAX_PKT_SIZE   cpu_to_le16(0x001a)

Definition at line 328 of file typhoon.h.

#define TYPHOON_CMD_SET_MULTICAST_HASH   cpu_to_le16(0x0025)

Definition at line 331 of file typhoon.h.

#define TYPHOON_CMD_SET_OFFLOAD_TASKS   cpu_to_le16(0x004f)

Definition at line 340 of file typhoon.h.

#define TYPHOON_CMD_SET_RX_FILTER   cpu_to_le16(0x0005)

Definition at line 325 of file typhoon.h.

#define TYPHOON_CMD_TX_DISABLE   cpu_to_le16(0x0002)

Definition at line 322 of file typhoon.h.

#define TYPHOON_CMD_TX_ENABLE   cpu_to_le16(0x0001)

Definition at line 321 of file typhoon.h.

#define TYPHOON_CMD_VLAN_TYPE_WRITE   cpu_to_le16(0x002b)

Definition at line 334 of file typhoon.h.

#define TYPHOON_CMD_XCVR_SELECT   cpu_to_le16(0x0013)

Definition at line 327 of file typhoon.h.

#define TYPHOON_DESC_VALID   0x80

Definition at line 166 of file typhoon.h.

#define TYPHOON_FRAG_DESC   0x00

Definition at line 154 of file typhoon.h.

#define TYPHOON_INTR_ALL   0xffffffff

Definition at line 604 of file typhoon.h.

#define TYPHOON_INTR_ARM2HOST0   0x00000002

Definition at line 588 of file typhoon.h.

#define TYPHOON_INTR_ARM2HOST1   0x00000004

Definition at line 589 of file typhoon.h.

#define TYPHOON_INTR_ARM2HOST2   0x00000008

Definition at line 590 of file typhoon.h.

#define TYPHOON_INTR_ARM2HOST3   0x00000010

Definition at line 591 of file typhoon.h.

#define TYPHOON_INTR_BOOTCMD   TYPHOON_INTR_ARM2HOST0

Definition at line 601 of file typhoon.h.

#define TYPHOON_INTR_DMA0   0x00000020

Definition at line 592 of file typhoon.h.

#define TYPHOON_INTR_DMA1   0x00000040

Definition at line 593 of file typhoon.h.

#define TYPHOON_INTR_DMA2   0x00000080

Definition at line 594 of file typhoon.h.

#define TYPHOON_INTR_DMA3   0x00000100

Definition at line 595 of file typhoon.h.

#define TYPHOON_INTR_ENABLE_ALL   0xffffffef

Definition at line 603 of file typhoon.h.

#define TYPHOON_INTR_HOST_INT   0x00000001

Definition at line 587 of file typhoon.h.

#define TYPHOON_INTR_MASTER_ABORT   0x00000200

Definition at line 596 of file typhoon.h.

#define TYPHOON_INTR_NONE   0x00000000

Definition at line 605 of file typhoon.h.

#define TYPHOON_INTR_RESERVED   0xfffff000

Definition at line 599 of file typhoon.h.

#define TYPHOON_INTR_SELF   0x00000800

Definition at line 598 of file typhoon.h.

#define TYPHOON_INTR_TARGET_ABORT   0x00000400

Definition at line 597 of file typhoon.h.

#define TYPHOON_IPSEC_GEN_IV   cpu_to_le16(0x0000)

Definition at line 225 of file typhoon.h.

#define TYPHOON_IPSEC_USE_IV   cpu_to_le16(0x0001)

Definition at line 226 of file typhoon.h.

#define TYPHOON_LINK_100MBPS   cpu_to_le32(0x00000002)

Definition at line 423 of file typhoon.h.

#define TYPHOON_LINK_10MBPS   cpu_to_le32(0x00000000)

Definition at line 424 of file typhoon.h.

#define TYPHOON_LINK_BAD   cpu_to_le32(0x00000000)

Definition at line 421 of file typhoon.h.

#define TYPHOON_LINK_DUPLEX_MASK   cpu_to_le32(0x00000004)

Definition at line 425 of file typhoon.h.

#define TYPHOON_LINK_FULL_DUPLEX   cpu_to_le32(0x00000004)

Definition at line 426 of file typhoon.h.

#define TYPHOON_LINK_GOOD   cpu_to_le32(0x00000001)

Definition at line 420 of file typhoon.h.

#define TYPHOON_LINK_HALF_DUPLEX   cpu_to_le32(0x00000000)

Definition at line 427 of file typhoon.h.

#define TYPHOON_LINK_SPEED_MASK   cpu_to_le32(0x00000002)

Definition at line 422 of file typhoon.h.

#define TYPHOON_LINK_STAT_MASK   cpu_to_le32(0x00000001)

Definition at line 419 of file typhoon.h.

#define TYPHOON_MCAST_HASH_DISABLE   cpu_to_le16(0x0000)

Definition at line 450 of file typhoon.h.

#define TYPHOON_MCAST_HASH_ENABLE   cpu_to_le16(0x0001)

Definition at line 451 of file typhoon.h.

#define TYPHOON_MCAST_HASH_SET   cpu_to_le16(0x0002)

Definition at line 452 of file typhoon.h.

#define TYPHOON_MEDIA_STAT_CARRIER_SENSE   cpu_to_le16(0x0020)

Definition at line 444 of file typhoon.h.

#define TYPHOON_MEDIA_STAT_COLLISION_DETECT   cpu_to_le16(0x0010)

Definition at line 443 of file typhoon.h.

#define TYPHOON_MEDIA_STAT_CRC_STRIP_DISABLE   cpu_to_le16(0x0004)

Definition at line 442 of file typhoon.h.

#define TYPHOON_MEDIA_STAT_NO_LINK   cpu_to_le16(0x0800)

Definition at line 446 of file typhoon.h.

#define TYPHOON_MEDIA_STAT_POLARITY_REV   cpu_to_le16(0x0400)

Definition at line 445 of file typhoon.h.

#define TYPHOON_OFFLOAD_BCAST_THROTTLE   cpu_to_le32(0x00000020)

Definition at line 500 of file typhoon.h.

#define TYPHOON_OFFLOAD_DHCP_PREVENT   cpu_to_le32(0x00000040)

Definition at line 501 of file typhoon.h.

#define TYPHOON_OFFLOAD_FILTERING   cpu_to_le32(0x00000100)

Definition at line 503 of file typhoon.h.

#define TYPHOON_OFFLOAD_IP_CHKSUM   cpu_to_le32(0x00000008)

Definition at line 498 of file typhoon.h.

#define TYPHOON_OFFLOAD_IPSEC   cpu_to_le32(0x00000010)

Definition at line 499 of file typhoon.h.

#define TYPHOON_OFFLOAD_TCP_CHKSUM   cpu_to_le32(0x00000002)

Definition at line 496 of file typhoon.h.

#define TYPHOON_OFFLOAD_TCP_SEGMENT   cpu_to_le32(0x00000200)

Definition at line 504 of file typhoon.h.

#define TYPHOON_OFFLOAD_UDP_CHKSUM   cpu_to_le32(0x00000004)

Definition at line 497 of file typhoon.h.

#define TYPHOON_OFFLOAD_VLAN   cpu_to_le32(0x00000080)

Definition at line 502 of file typhoon.h.

#define TYPHOON_OPT_DESC   0x03

Definition at line 157 of file typhoon.h.

#define TYPHOON_OPT_IPSEC   0x00

Definition at line 161 of file typhoon.h.

#define TYPHOON_OPT_TCP_SEG   0x10

Definition at line 162 of file typhoon.h.

#define TYPHOON_OPT_TYPE_MASK   0xf0

Definition at line 160 of file typhoon.h.

#define TYPHOON_REG_ARM2HOST0   0x40

Definition at line 548 of file typhoon.h.

#define TYPHOON_REG_ARM2HOST1   0x3c

Definition at line 547 of file typhoon.h.

#define TYPHOON_REG_ARM2HOST2   0x38

Definition at line 546 of file typhoon.h.

#define TYPHOON_REG_ARM2HOST3   0x34

Definition at line 545 of file typhoon.h.

#define TYPHOON_REG_BOOT_CHECKSUM   TYPHOON_REG_HOST2ARM2

Definition at line 553 of file typhoon.h.

#define TYPHOON_REG_BOOT_DATA_HI   TYPHOON_REG_HOST2ARM4

Definition at line 551 of file typhoon.h.

#define TYPHOON_REG_BOOT_DATA_LO   TYPHOON_REG_HOST2ARM5

Definition at line 550 of file typhoon.h.

#define TYPHOON_REG_BOOT_DEST_ADDR   TYPHOON_REG_HOST2ARM3

Definition at line 552 of file typhoon.h.

#define TYPHOON_REG_BOOT_LENGTH   TYPHOON_REG_HOST2ARM1

Definition at line 554 of file typhoon.h.

#define TYPHOON_REG_BOOT_RECORD_ADDR_HI   TYPHOON_REG_HOST2ARM2

Definition at line 563 of file typhoon.h.

#define TYPHOON_REG_BOOT_RECORD_ADDR_LO   TYPHOON_REG_HOST2ARM1

Definition at line 564 of file typhoon.h.

#define TYPHOON_REG_CMD_READY   TYPHOON_REG_HOST2ARM2

Definition at line 567 of file typhoon.h.

#define TYPHOON_REG_COMMAND   TYPHOON_REG_HOST2ARM0

Definition at line 570 of file typhoon.h.

#define TYPHOON_REG_DOWNLOAD_BOOT_ADDR   TYPHOON_REG_HOST2ARM1

Definition at line 556 of file typhoon.h.

#define TYPHOON_REG_DOWNLOAD_HMAC_0   TYPHOON_REG_HOST2ARM2

Definition at line 557 of file typhoon.h.

#define TYPHOON_REG_DOWNLOAD_HMAC_1   TYPHOON_REG_HOST2ARM3

Definition at line 558 of file typhoon.h.

#define TYPHOON_REG_DOWNLOAD_HMAC_2   TYPHOON_REG_HOST2ARM4

Definition at line 559 of file typhoon.h.

#define TYPHOON_REG_DOWNLOAD_HMAC_3   TYPHOON_REG_HOST2ARM5

Definition at line 560 of file typhoon.h.

#define TYPHOON_REG_DOWNLOAD_HMAC_4   TYPHOON_REG_HOST2ARM6

Definition at line 561 of file typhoon.h.

#define TYPHOON_REG_HEARTBEAT   TYPHOON_REG_ARM2HOST3

Definition at line 571 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM0   0x30

Definition at line 544 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM1   0x2c

Definition at line 543 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM2   0x28

Definition at line 542 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM3   0x24

Definition at line 541 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM4   0x20

Definition at line 540 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM5   0x1c

Definition at line 539 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM6   0x18

Definition at line 538 of file typhoon.h.

#define TYPHOON_REG_HOST2ARM7   0x14

Definition at line 537 of file typhoon.h.

#define TYPHOON_REG_INTR_ENABLE   0x08

Definition at line 534 of file typhoon.h.

#define TYPHOON_REG_INTR_MASK   0x0c

Definition at line 535 of file typhoon.h.

#define TYPHOON_REG_INTR_STATUS   0x04

Definition at line 533 of file typhoon.h.

#define TYPHOON_REG_SELF_INTERRUPT   0x10

Definition at line 536 of file typhoon.h.

#define TYPHOON_REG_SOFT_RESET   0x00

Definition at line 532 of file typhoon.h.

#define TYPHOON_REG_STATUS   TYPHOON_REG_ARM2HOST0

Definition at line 572 of file typhoon.h.

#define TYPHOON_REG_TX_HI_READY   TYPHOON_REG_HOST2ARM1

Definition at line 568 of file typhoon.h.

#define TYPHOON_REG_TX_LO_READY   TYPHOON_REG_HOST2ARM3

Definition at line 566 of file typhoon.h.

#define TYPHOON_RESET_ALL   0x7f

Definition at line 576 of file typhoon.h.

#define TYPHOON_RESET_NONE   0x00

Definition at line 577 of file typhoon.h.

#define TYPHOON_RESP_DESC   0x05

Definition at line 159 of file typhoon.h.

#define TYPHOON_RESP_ERROR   0x40

Definition at line 164 of file typhoon.h.

#define TYPHOON_RX_DESC   0x04

Definition at line 158 of file typhoon.h.

#define TYPHOON_RX_ERR_ALIGN   cpu_to_le32(0x00000006)

Definition at line 257 of file typhoon.h.

#define TYPHOON_RX_ERR_BAD_SSD   cpu_to_le32(0x00000002)

Definition at line 253 of file typhoon.h.

#define TYPHOON_RX_ERR_CRC   cpu_to_le32(0x00000004)

Definition at line 255 of file typhoon.h.

#define TYPHOON_RX_ERR_DRIBBLE   cpu_to_le32(0x00000007)

Definition at line 258 of file typhoon.h.

#define TYPHOON_RX_ERR_FIFO_UNDERRUN   cpu_to_le32(0x00000001)

Definition at line 252 of file typhoon.h.

#define TYPHOON_RX_ERR_INTERNAL   cpu_to_le32(0x00000000)

Definition at line 251 of file typhoon.h.

#define TYPHOON_RX_ERR_OVERSIZE   cpu_to_le32(0x00000005)

Definition at line 256 of file typhoon.h.

#define TYPHOON_RX_ERR_RUNT   cpu_to_le32(0x00000003)

Definition at line 254 of file typhoon.h.

#define TYPHOON_RX_ERROR   0x40

Definition at line 165 of file typhoon.h.

#define TYPHOON_RX_ESP_FORMAT_ERR   cpu_to_le16(0x0200)

Definition at line 285 of file typhoon.h.

#define TYPHOON_RX_FILTER_ALL_MCAST   cpu_to_le16(0x0002)

Definition at line 384 of file typhoon.h.

#define TYPHOON_RX_FILTER_BROADCAST   cpu_to_le16(0x0004)

Definition at line 385 of file typhoon.h.

#define TYPHOON_RX_FILTER_DIRECTED   cpu_to_le16(0x0001)

Definition at line 383 of file typhoon.h.

#define TYPHOON_RX_FILTER_MASK   cpu_to_le16(0x7fff)

Definition at line 273 of file typhoon.h.

#define TYPHOON_RX_FILTER_MCAST_HASH   cpu_to_le16(0x0010)

Definition at line 387 of file typhoon.h.

#define TYPHOON_RX_FILTER_PROMISCOUS   cpu_to_le16(0x0008)

Definition at line 386 of file typhoon.h.

#define TYPHOON_RX_FILTERED   cpu_to_le16(0x8000)

Definition at line 274 of file typhoon.h.

#define TYPHOON_RX_INNER_AH_FAIL   cpu_to_le16(0x0040)

Definition at line 282 of file typhoon.h.

#define TYPHOON_RX_INNER_AH_GOOD   cpu_to_le16(0x0004)

Definition at line 278 of file typhoon.h.

#define TYPHOON_RX_INNER_ESP_FAIL   cpu_to_le16(0x0080)

Definition at line 283 of file typhoon.h.

#define TYPHOON_RX_INNER_ESP_GOOD   cpu_to_le16(0x0008)

Definition at line 279 of file typhoon.h.

#define TYPHOON_RX_IP_CHK_FAIL   cpu_to_le32(0x00000020)

Definition at line 266 of file typhoon.h.

#define TYPHOON_RX_IP_CHK_GOOD   cpu_to_le32(0x00000100)

Definition at line 269 of file typhoon.h.

#define TYPHOON_RX_IP_FRAG   cpu_to_le32(0x00000008)

Definition at line 264 of file typhoon.h.

#define TYPHOON_RX_IPSEC   cpu_to_le32(0x00000010)

Definition at line 265 of file typhoon.h.

#define TYPHOON_RX_OUTER_AH_FAIL   cpu_to_le16(0x0010)

Definition at line 280 of file typhoon.h.

#define TYPHOON_RX_OUTER_AH_GOOD   cpu_to_le16(0x0001)

Definition at line 276 of file typhoon.h.

#define TYPHOON_RX_OUTER_ESP_FAIL   cpu_to_le16(0x0020)

Definition at line 281 of file typhoon.h.

#define TYPHOON_RX_OUTER_ESP_GOOD   cpu_to_le16(0x0002)

Definition at line 277 of file typhoon.h.

#define TYPHOON_RX_PROTO_IP   cpu_to_le32(0x00000001)

Definition at line 261 of file typhoon.h.

#define TYPHOON_RX_PROTO_IPX   cpu_to_le32(0x00000002)

Definition at line 262 of file typhoon.h.

#define TYPHOON_RX_PROTO_MASK   cpu_to_le32(0x00000003)

Definition at line 259 of file typhoon.h.

#define TYPHOON_RX_PROTO_UNKNOWN   cpu_to_le32(0x00000000)

Definition at line 260 of file typhoon.h.

#define TYPHOON_RX_TCP_CHK_FAIL   cpu_to_le32(0x00000040)

Definition at line 267 of file typhoon.h.

#define TYPHOON_RX_TCP_CHK_GOOD   cpu_to_le32(0x00000200)

Definition at line 270 of file typhoon.h.

#define TYPHOON_RX_UDP_CHK_FAIL   cpu_to_le32(0x00000080)

Definition at line 268 of file typhoon.h.

#define TYPHOON_RX_UDP_CHK_GOOD   cpu_to_le32(0x00000400)

Definition at line 271 of file typhoon.h.

#define TYPHOON_RX_UNKNOWN_SA   cpu_to_le16(0x0100)

Definition at line 284 of file typhoon.h.

#define TYPHOON_RX_VLAN   cpu_to_le32(0x00000004)

Definition at line 263 of file typhoon.h.

#define TYPHOON_SA_DIR_RX   0x00

Definition at line 470 of file typhoon.h.

#define TYPHOON_SA_DIR_TX   0x01

Definition at line 471 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_3DES   0x00

Definition at line 475 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_3DES_2KEY   0x00

Definition at line 476 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_3DES_3KEY   0x04

Definition at line 477 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_CBC   0x08

Definition at line 478 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_DES   0x02

Definition at line 474 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_ECB   0x00

Definition at line 479 of file typhoon.h.

#define TYPHOON_SA_ENCRYPT_ENABLE   0x01

Definition at line 473 of file typhoon.h.

#define TYPHOON_SA_GENERATE_INDEX   0x00

Definition at line 482 of file typhoon.h.

#define TYPHOON_SA_HASH_ENABLE   0x01

Definition at line 466 of file typhoon.h.

#define TYPHOON_SA_HASH_MD5   0x04

Definition at line 468 of file typhoon.h.

#define TYPHOON_SA_HASH_SHA1   0x02

Definition at line 467 of file typhoon.h.

#define TYPHOON_SA_MODE_AH   cpu_to_le16(0x0001)

Definition at line 463 of file typhoon.h.

#define TYPHOON_SA_MODE_ESP   cpu_to_le16(0x0002)

Definition at line 464 of file typhoon.h.

#define TYPHOON_SA_MODE_NULL   cpu_to_le16(0x0000)

Definition at line 462 of file typhoon.h.

#define TYPHOON_SA_SPECIFY_INDEX   0x01

Definition at line 481 of file typhoon.h.

#define TYPHOON_STATUS_HALTED   0x14

Definition at line 624 of file typhoon.h.

#define TYPHOON_STATUS_RUNNING   0x09

Definition at line 620 of file typhoon.h.

#define TYPHOON_STATUS_SECOND_INIT   0x08

Definition at line 619 of file typhoon.h.

#define TYPHOON_STATUS_SLEEPING   0x11

Definition at line 623 of file typhoon.h.

#define TYPHOON_STATUS_WAITING_FOR_BOOT   0x07

Definition at line 618 of file typhoon.h.

#define TYPHOON_STATUS_WAITING_FOR_HOST   0x0d

Definition at line 621 of file typhoon.h.

#define TYPHOON_STATUS_WAITING_FOR_SEGMENT   0x10

Definition at line 622 of file typhoon.h.

#define TYPHOON_TSO_FIRST   cpu_to_le16(0x1000)

Definition at line 206 of file typhoon.h.

#define TYPHOON_TSO_LAST   cpu_to_le16(0x2000)

Definition at line 207 of file typhoon.h.

#define TYPHOON_TX_DESC   0x01

Definition at line 155 of file typhoon.h.

#define TYPHOON_TX_PF_INSERT_VLAN   cpu_to_le32(0x00000010)

Definition at line 181 of file typhoon.h.

#define TYPHOON_TX_PF_INTERNAL   cpu_to_le32(0xf0000000)

Definition at line 188 of file typhoon.h.

#define TYPHOON_TX_PF_IP_CHKSUM   cpu_to_le32(0x00000002)

Definition at line 178 of file typhoon.h.

#define TYPHOON_TX_PF_IPSEC   cpu_to_le32(0x00000020)

Definition at line 182 of file typhoon.h.

#define TYPHOON_TX_PF_NO_CRC   cpu_to_le32(0x00000001)

Definition at line 177 of file typhoon.h.

#define TYPHOON_TX_PF_PAD_FRAME   cpu_to_le32(0x00000100)

Definition at line 185 of file typhoon.h.

#define TYPHOON_TX_PF_RESERVED   cpu_to_le32(0x00000e00)

Definition at line 186 of file typhoon.h.

#define TYPHOON_TX_PF_TCP_CHKSUM   cpu_to_le32(0x00000004)

Definition at line 179 of file typhoon.h.

#define TYPHOON_TX_PF_TCP_SEGMENT   cpu_to_le32(0x00000008)

Definition at line 180 of file typhoon.h.

#define TYPHOON_TX_PF_UDP_CHKSUM   cpu_to_le32(0x00000080)

Definition at line 184 of file typhoon.h.

#define TYPHOON_TX_PF_VLAN_MASK   cpu_to_le32(0x0ffff000)

Definition at line 187 of file typhoon.h.

#define TYPHOON_TX_PF_VLAN_PRIORITY   cpu_to_le32(0x00000040)

Definition at line 183 of file typhoon.h.

#define TYPHOON_TX_PF_VLAN_TAG_SHIFT   12

Definition at line 189 of file typhoon.h.

#define TYPHOON_TYPE_MASK   0x07

Definition at line 153 of file typhoon.h.

#define TYPHOON_WAKE_ARP   cpu_to_le16(0x08)

Definition at line 511 of file typhoon.h.

#define TYPHOON_WAKE_ICMP_ECHO   cpu_to_le16(0x04)

Definition at line 510 of file typhoon.h.

#define TYPHOON_WAKE_LINK_EVENT   cpu_to_le16(0x02)

Definition at line 509 of file typhoon.h.

#define TYPHOON_WAKE_MAGIC_PKT   cpu_to_le16(0x01)

Definition at line 508 of file typhoon.h.

#define TYPHOON_XCVR_100FULL   cpu_to_le16(0x0003)

Definition at line 437 of file typhoon.h.

#define TYPHOON_XCVR_100HALF   cpu_to_le16(0x0002)

Definition at line 436 of file typhoon.h.

#define TYPHOON_XCVR_10FULL   cpu_to_le16(0x0001)

Definition at line 435 of file typhoon.h.

#define TYPHOON_XCVR_10HALF   cpu_to_le16(0x0000)

Definition at line 434 of file typhoon.h.

#define TYPHOON_XCVR_AUTONEG   cpu_to_le16(0x0004)

Definition at line 438 of file typhoon.h.

Variable Documentation