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

Go to the source code of this file.

Data Structures

struct  i82593_conf_block
 

Macros

#define OP0_NOP   0 /* CHNL = 0 */
 
#define OP0_SWIT_TO_PORT_1   0 /* CHNL = 1 */
 
#define OP0_IA_SETUP   1
 
#define OP0_CONFIGURE   2
 
#define OP0_MC_SETUP   3
 
#define OP0_TRANSMIT   4
 
#define OP0_TDR   5
 
#define OP0_DUMP   6
 
#define OP0_DIAGNOSE   7
 
#define OP0_TRANSMIT_NO_CRC   9
 
#define OP0_RETRANSMIT   12
 
#define OP0_ABORT   13
 
#define OP0_RCV_ENABLE   8
 
#define OP0_RCV_DISABLE   10
 
#define OP0_STOP_RCV   11
 
#define OP0_FIX_PTR   15 /* CHNL = 1 */
 
#define OP0_RLS_PTR   15 /* CHNL = 0 */
 
#define OP0_RESET   14
 
#define CR0_CHNL   (1 << 4) /* 0=Channel 0, 1=Channel 1 */
 
#define CR0_STATUS_0   0x00
 
#define CR0_STATUS_1   0x20
 
#define CR0_STATUS_2   0x40
 
#define CR0_STATUS_3   0x60
 
#define CR0_INT_ACK   (1 << 7) /* 0=No ack, 1=acknowledge */
 
#define SR0_NO_RESULT   0 /* dummy */
 
#define SR0_EVENT_MASK   0x0f
 
#define SR0_IA_SETUP_DONE   1
 
#define SR0_CONFIGURE_DONE   2
 
#define SR0_MC_SETUP_DONE   3
 
#define SR0_TRANSMIT_DONE   4
 
#define SR0_TDR_DONE   5
 
#define SR0_DUMP_DONE   6
 
#define SR0_DIAGNOSE_PASSED   7
 
#define SR0_TRANSMIT_NO_CRC_DONE   9
 
#define SR0_RETRANSMIT_DONE   12
 
#define SR0_EXECUTION_ABORTED   13
 
#define SR0_END_OF_FRAME   8
 
#define SR0_RECEPTION_ABORTED   10
 
#define SR0_DIAGNOSE_FAILED   15
 
#define SR0_STOP_REG_HIT   11
 
#define SR0_CHNL   (1 << 4)
 
#define SR0_EXECUTION   (1 << 5)
 
#define SR0_RECEPTION   (1 << 6)
 
#define SR0_INTERRUPT   (1 << 7)
 
#define SR0_BOTH_RX_TX   (SR0_EXECUTION | SR0_RECEPTION)
 
#define SR3_EXEC_STATE_MASK   0x03
 
#define SR3_EXEC_IDLE   0
 
#define SR3_TX_ABORT_IN_PROGRESS   1
 
#define SR3_EXEC_ACTIVE   2
 
#define SR3_ABORT_IN_PROGRESS   3
 
#define SR3_EXEC_CHNL   (1 << 2)
 
#define SR3_STP_ON_NO_RSRC   (1 << 3)
 
#define SR3_RCVING_NO_RSRC   (1 << 4)
 
#define SR3_RCV_STATE_MASK   0x60
 
#define SR3_RCV_IDLE   0x00
 
#define SR3_RCV_READY   0x20
 
#define SR3_RCV_ACTIVE   0x40
 
#define SR3_RCV_STOP_IN_PROG   0x60
 
#define SR3_RCV_CHNL   (1 << 7)
 
#define OP1_NOP   0
 
#define OP1_SWIT_TO_PORT_0   1
 
#define OP1_INT_DISABLE   2
 
#define OP1_INT_ENABLE   3
 
#define OP1_SET_TS   5
 
#define OP1_RST_TS   7
 
#define OP1_POWER_DOWN   8
 
#define OP1_RESET_RING_MNGMT   11
 
#define OP1_RESET   14
 
#define OP1_SEL_RST   15
 
#define CR1_STATUS_4   0x00
 
#define CR1_STATUS_5   0x20
 
#define CR1_STATUS_6   0x40
 
#define CR1_STOP_REG_UPDATE   (1 << 7)
 
#define RX_RCLD   (1 << 0)
 
#define RX_IA_MATCH   (1 << 1)
 
#define RX_NO_AD_MATCH   (1 << 2)
 
#define RX_NO_SFD   (1 << 3)
 
#define RX_SRT_FRM   (1 << 7)
 
#define RX_OVRRUN   (1 << 8)
 
#define RX_ALG_ERR   (1 << 10)
 
#define RX_CRC_ERR   (1 << 11)
 
#define RX_LEN_ERR   (1 << 12)
 
#define RX_RCV_OK   (1 << 13)
 
#define RX_TYP_LEN   (1 << 15)
 
#define TX_NCOL_MASK   0x0f
 
#define TX_FRTL   (1 << 4)
 
#define TX_MAX_COL   (1 << 5)
 
#define TX_HRT_BEAT   (1 << 6)
 
#define TX_DEFER   (1 << 7)
 
#define TX_UND_RUN   (1 << 8)
 
#define TX_LOST_CTS   (1 << 9)
 
#define TX_LOST_CRS   (1 << 10)
 
#define TX_LTCOL   (1 << 11)
 
#define TX_OK   (1 << 13)
 
#define TX_COLL   (1 << 15)
 
#define I82593_MAX_MULTICAST_ADDRESSES   128 /* Hardware hashed filter */
 

Macro Definition Documentation

#define CR0_CHNL   (1 << 4) /* 0=Channel 0, 1=Channel 1 */

Definition at line 63 of file i82593.h.

#define CR0_INT_ACK   (1 << 7) /* 0=No ack, 1=acknowledge */

Definition at line 68 of file i82593.h.

#define CR0_STATUS_0   0x00

Definition at line 64 of file i82593.h.

#define CR0_STATUS_1   0x20

Definition at line 65 of file i82593.h.

#define CR0_STATUS_2   0x40

Definition at line 66 of file i82593.h.

#define CR0_STATUS_3   0x60

Definition at line 67 of file i82593.h.

#define CR1_STATUS_4   0x00

Definition at line 123 of file i82593.h.

#define CR1_STATUS_5   0x20

Definition at line 124 of file i82593.h.

#define CR1_STATUS_6   0x40

Definition at line 125 of file i82593.h.

#define CR1_STOP_REG_UPDATE   (1 << 7)

Definition at line 126 of file i82593.h.

#define I82593_MAX_MULTICAST_ADDRESSES   128 /* Hardware hashed filter */

Definition at line 227 of file i82593.h.

#define OP0_ABORT   13

Definition at line 53 of file i82593.h.

#define OP0_CONFIGURE   2

Definition at line 45 of file i82593.h.

#define OP0_DIAGNOSE   7

Definition at line 50 of file i82593.h.

#define OP0_DUMP   6

Definition at line 49 of file i82593.h.

#define OP0_FIX_PTR   15 /* CHNL = 1 */

Definition at line 59 of file i82593.h.

#define OP0_IA_SETUP   1

Definition at line 44 of file i82593.h.

#define OP0_MC_SETUP   3

Definition at line 46 of file i82593.h.

#define OP0_NOP   0 /* CHNL = 0 */

Definition at line 42 of file i82593.h.

#define OP0_RCV_DISABLE   10

Definition at line 56 of file i82593.h.

#define OP0_RCV_ENABLE   8

Definition at line 55 of file i82593.h.

#define OP0_RESET   14

Definition at line 61 of file i82593.h.

#define OP0_RETRANSMIT   12

Definition at line 52 of file i82593.h.

#define OP0_RLS_PTR   15 /* CHNL = 0 */

Definition at line 60 of file i82593.h.

#define OP0_STOP_RCV   11

Definition at line 57 of file i82593.h.

#define OP0_SWIT_TO_PORT_1   0 /* CHNL = 1 */

Definition at line 43 of file i82593.h.

#define OP0_TDR   5

Definition at line 48 of file i82593.h.

#define OP0_TRANSMIT   4

Definition at line 47 of file i82593.h.

#define OP0_TRANSMIT_NO_CRC   9

Definition at line 51 of file i82593.h.

#define OP1_INT_DISABLE   2

Definition at line 114 of file i82593.h.

#define OP1_INT_ENABLE   3

Definition at line 115 of file i82593.h.

#define OP1_NOP   0

Definition at line 112 of file i82593.h.

#define OP1_POWER_DOWN   8

Definition at line 118 of file i82593.h.

#define OP1_RESET   14

Definition at line 120 of file i82593.h.

#define OP1_RESET_RING_MNGMT   11

Definition at line 119 of file i82593.h.

#define OP1_RST_TS   7

Definition at line 117 of file i82593.h.

#define OP1_SEL_RST   15

Definition at line 121 of file i82593.h.

#define OP1_SET_TS   5

Definition at line 116 of file i82593.h.

#define OP1_SWIT_TO_PORT_0   1

Definition at line 113 of file i82593.h.

#define RX_ALG_ERR   (1 << 10)

Definition at line 136 of file i82593.h.

#define RX_CRC_ERR   (1 << 11)

Definition at line 137 of file i82593.h.

#define RX_IA_MATCH   (1 << 1)

Definition at line 131 of file i82593.h.

#define RX_LEN_ERR   (1 << 12)

Definition at line 138 of file i82593.h.

#define RX_NO_AD_MATCH   (1 << 2)

Definition at line 132 of file i82593.h.

#define RX_NO_SFD   (1 << 3)

Definition at line 133 of file i82593.h.

#define RX_OVRRUN   (1 << 8)

Definition at line 135 of file i82593.h.

#define RX_RCLD   (1 << 0)

Definition at line 130 of file i82593.h.

#define RX_RCV_OK   (1 << 13)

Definition at line 139 of file i82593.h.

#define RX_SRT_FRM   (1 << 7)

Definition at line 134 of file i82593.h.

#define RX_TYP_LEN   (1 << 15)

Definition at line 140 of file i82593.h.

#define SR0_BOTH_RX_TX   (SR0_EXECUTION | SR0_RECEPTION)

Definition at line 93 of file i82593.h.

#define SR0_CHNL   (1 << 4)

Definition at line 89 of file i82593.h.

#define SR0_CONFIGURE_DONE   2

Definition at line 75 of file i82593.h.

#define SR0_DIAGNOSE_FAILED   15

Definition at line 86 of file i82593.h.

#define SR0_DIAGNOSE_PASSED   7

Definition at line 80 of file i82593.h.

#define SR0_DUMP_DONE   6

Definition at line 79 of file i82593.h.

#define SR0_END_OF_FRAME   8

Definition at line 84 of file i82593.h.

#define SR0_EVENT_MASK   0x0f

Definition at line 73 of file i82593.h.

#define SR0_EXECUTION   (1 << 5)

Definition at line 90 of file i82593.h.

#define SR0_EXECUTION_ABORTED   13

Definition at line 83 of file i82593.h.

#define SR0_IA_SETUP_DONE   1

Definition at line 74 of file i82593.h.

#define SR0_INTERRUPT   (1 << 7)

Definition at line 92 of file i82593.h.

#define SR0_MC_SETUP_DONE   3

Definition at line 76 of file i82593.h.

#define SR0_NO_RESULT   0 /* dummy */

Definition at line 72 of file i82593.h.

#define SR0_RECEPTION   (1 << 6)

Definition at line 91 of file i82593.h.

#define SR0_RECEPTION_ABORTED   10

Definition at line 85 of file i82593.h.

#define SR0_RETRANSMIT_DONE   12

Definition at line 82 of file i82593.h.

#define SR0_STOP_REG_HIT   11

Definition at line 87 of file i82593.h.

#define SR0_TDR_DONE   5

Definition at line 78 of file i82593.h.

#define SR0_TRANSMIT_DONE   4

Definition at line 77 of file i82593.h.

#define SR0_TRANSMIT_NO_CRC_DONE   9

Definition at line 81 of file i82593.h.

#define SR3_ABORT_IN_PROGRESS   3

Definition at line 99 of file i82593.h.

#define SR3_EXEC_ACTIVE   2

Definition at line 98 of file i82593.h.

#define SR3_EXEC_CHNL   (1 << 2)

Definition at line 100 of file i82593.h.

#define SR3_EXEC_IDLE   0

Definition at line 96 of file i82593.h.

#define SR3_EXEC_STATE_MASK   0x03

Definition at line 95 of file i82593.h.

#define SR3_RCV_ACTIVE   0x40

Definition at line 106 of file i82593.h.

#define SR3_RCV_CHNL   (1 << 7)

Definition at line 108 of file i82593.h.

#define SR3_RCV_IDLE   0x00

Definition at line 104 of file i82593.h.

#define SR3_RCV_READY   0x20

Definition at line 105 of file i82593.h.

#define SR3_RCV_STATE_MASK   0x60

Definition at line 103 of file i82593.h.

#define SR3_RCV_STOP_IN_PROG   0x60

Definition at line 107 of file i82593.h.

#define SR3_RCVING_NO_RSRC   (1 << 4)

Definition at line 102 of file i82593.h.

#define SR3_STP_ON_NO_RSRC   (1 << 3)

Definition at line 101 of file i82593.h.

#define SR3_TX_ABORT_IN_PROGRESS   1

Definition at line 97 of file i82593.h.

#define TX_COLL   (1 << 15)

Definition at line 154 of file i82593.h.

#define TX_DEFER   (1 << 7)

Definition at line 148 of file i82593.h.

#define TX_FRTL   (1 << 4)

Definition at line 145 of file i82593.h.

#define TX_HRT_BEAT   (1 << 6)

Definition at line 147 of file i82593.h.

#define TX_LOST_CRS   (1 << 10)

Definition at line 151 of file i82593.h.

#define TX_LOST_CTS   (1 << 9)

Definition at line 150 of file i82593.h.

#define TX_LTCOL   (1 << 11)

Definition at line 152 of file i82593.h.

#define TX_MAX_COL   (1 << 5)

Definition at line 146 of file i82593.h.

#define TX_NCOL_MASK   0x0f

Definition at line 144 of file i82593.h.

#define TX_OK   (1 << 13)

Definition at line 153 of file i82593.h.

#define TX_UND_RUN   (1 << 8)

Definition at line 149 of file i82593.h.