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

Go to the source code of this file.

Macros

#define SYNC_CMD_VAL   2 /* 10b */
 
#define SYNC_CMD_LEN   2
 
#define WR_CMD_VAL   2 /* 10b */
 
#define WR_CMD_LEN   2
 
#define RD_CMD_VAL   1 /* 10b */
 
#define RD_CMD_LEN   2
 
#define ADDR_CMD_LEN   4
 
#define WR_DATA_LEN   8
 
#define RD_DATA_LEN   8
 
#define PIC_SIGN_REG_ADDR   0x7
 
#define PIC_SIGN_VALUE   0xcd
 
#define STATUS_REG_ADDR   0
 
#define WDT_EN_MASK   0x01 /* BIT_0 */
 
#define CMND_EN_MASK   0x02 /* BIT_1 */
 
#define DIS_BYPASS_CAP_MASK   0x04 /* BIT_2 Bypass Cap is disable*/
 
#define DFLT_PWRON_MASK   0x08 /* BIT_3 */
 
#define BYPASS_OFF_MASK   0x10 /* BIT_4 */
 
#define BYPASS_FLAG_MASK   0x20 /* BIT_5 */
 
#define STD_NIC_MASK   (DIS_BYPASS_CAP_MASK | BYPASS_OFF_MASK | DFLT_PWRON_MASK)
 
#define WD_EXP_FLAG_MASK   0x40 /* BIT_6 */
 
#define DFLT_PWROFF_MASK   0x80 /* BIT_7 */
 
#define STD_NIC_PWOFF_MASK   (DIS_BYPASS_CAP_MASK | BYPASS_OFF_MASK | DFLT_PWRON_MASK | DFLT_PWROFF_MASK)
 
#define PRODUCT_CAP_REG_ADDR   0x5
 
#define BYPASS_SUPPORT_MASK   0x01 /* BIT_0 */
 
#define TAP_SUPPORT_MASK   0x02 /* BIT_1 */
 
#define NORMAL_UNSUPPORT_MASK   0x04 /* BIT_2 */
 
#define DISC_SUPPORT_MASK   0x08 /* BIT_3 */
 
#define TPL2_SUPPORT_MASK   0x10 /* BIT_4 */
 
#define DISC_PORT_SUPPORT_MASK   0x20 /* BIT_5 */
 
#define STATUS_TAP_REG_ADDR   0x6
 
#define WDTE_TAP_BPN_MASK   0x01 /* BIT_1 1 when wdt expired -> TAP, 0 - Bypass */
 
#define DIS_TAP_CAP_MASK   0x04 /* BIT_2 TAP Cap is disable*/
 
#define DFLT_PWRON_TAP_MASK   0x08 /* BIT_3 */
 
#define TAP_OFF_MASK   0x10 /* BIT_4 */
 
#define TAP_FLAG_MASK   0x20 /* BIT_5 */
 
#define TX_DISA_MASK   0x40
 
#define TX_DISB_MASK   0x80
 
#define STD_NIC_TAP_MASK   (DIS_TAP_CAP_MASK | TAP_OFF_MASK | DFLT_PWRON_TAP_MASK)
 
#define STATUS_DISC_REG_ADDR   13
 
#define WDTE_DISC_BPN_MASK   0x01 /* BIT_0 1 when wdt expired -> TAP, 0 - Bypass */
 
#define STD_NIC_ON_MASK   0x02 /* BIT_1 */
 
#define DIS_DISC_CAP_MASK   0x04 /* BIT_2 TAP Cap is disable*/
 
#define DFLT_PWRON_DISC_MASK   0x08 /* BIT_3 */
 
#define DISC_OFF_MASK   0x10 /* BIT_4 */
 
#define DISC_FLAG_MASK   0x20 /* BIT_5 */
 
#define TPL2_FLAG_MASK   0x40 /* BIT_6 */
 
#define STD_NIC_DISC_MASK   DIS_DISC_CAP_MASK
 
#define CONT_CONFIG_REG_ADDR   12
 
#define EN_HW_RESET_MASK   0x2 /* BIT_1 */
 
#define WAIT_AT_PWUP_MASK   0x1 /* BIT_0 */
 
#define VER_REG_ADDR   0x1
 
#define BP_FW_VER_A0   0xa0
 
#define BP_FW_VER_A1   0xa1
 
#define INT_VER_MASK   0xf0
 
#define EXT_VER_MASK   0xf
 
#define PXG2BPI_VER   0x0
 
#define PXG2TBPI_VER   0x1
 
#define PXE2TBPI_VER   0x2
 
#define PXG4BPFI_VER   0x4
 
#define BP_FW_EXT_VER7   0x6
 
#define BP_FW_EXT_VER8   0x8
 
#define BP_FW_EXT_VER9   0x9
 
#define OLD_IF_VER   -1
 
#define CMND_REG_ADDR   10 /* 1010b */
 
#define WDT_REG_ADDR   4
 
#define TMRL_REG_ADDR   2
 
#define TMRH_REG_ADDR   3
 
#define WDT_INTERVAL   1 /* 5 //8 */
 
#define WDT_CMND_INTERVAL   200 /* 50 */
 
#define CMND_INTERVAL   200 /* 100 usec */
 
#define PULSE_TIME   100
 
#define INIT_CMND_INTERVAL   40
 
#define PULSE_INTERVAL   5
 
#define WDT_TIME_CNT   3
 
#define CMND_OFF_INT   0xf
 
#define PWROFF_BYPASS_ON_INT   0x5
 
#define BYPASS_ON_INT   0x6
 
#define DIS_BYPASS_CAP_INT   0x4
 
#define RESET_WDT_INT   0x1
 
#define BYPASS_DELAY_INT   4 /* msec */
 
#define CMND_INTERVAL_INT   2 /* msec */
 
#define CMND_ON   0x4
 
#define CMND_OFF   0x2
 
#define BYPASS_ON   0xa
 
#define BYPASS_OFF   0x8
 
#define PORT_LINK_EN   0xe
 
#define PORT_LINK_DIS   0xc
 
#define WDT_ON   0x10 /* 0x1f (11111) - max */
 
#define TIMEOUT_UNIT   100
 
#define TIMEOUT_MAX_STEP   15
 
#define WDT_TIMEOUT_MIN   100 /* msec */
 
#define WDT_TIMEOUT_MAX   3276800 /* msec */
 
#define WDT_AUTO_MIN_INT   500
 
#define WDT_TIMEOUT_DEF   WDT_TIMEOUT_MIN
 
#define WDT_OFF   0x6
 
#define WDT_RELOAD   0x9
 
#define RESET_CONT   0x20
 
#define DIS_BYPASS_CAP   0x22
 
#define EN_BYPASS_CAP   0x24
 
#define BYPASS_STATE_PWRON   0x26
 
#define NORMAL_STATE_PWRON   0x28
 
#define BYPASS_STATE_PWROFF   0x27
 
#define NORMAL_STATE_PWROFF   0x29
 
#define TAP_ON   0xb
 
#define TAP_OFF   0x9
 
#define TAP_STATE_PWRON   0x2a
 
#define DIS_TAP_CAP   0x2c
 
#define EN_TAP_CAP   0x2e
 
#define STD_NIC_OFF   0x86
 
#define STD_NIC_ON   0x84
 
#define DISC_ON   0x85
 
#define DISC_OFF   0x8a
 
#define DISC_STATE_PWRON   0x87
 
#define DIS_DISC_CAP   0x88
 
#define EN_DISC_CAP   0x89
 
#define TPL2_ON   0x8c
 
#define TPL2_OFF   0x8b
 
#define BP_WAIT_AT_PWUP_EN   0x80
 
#define BP_WAIT_AT_PWUP_DIS   0x81
 
#define BP_HW_RESET_EN   0x82
 
#define BP_HW_RESET_DIS   0x83
 
#define TX_DISA   0x8d
 
#define TX_DISB   0x8e
 
#define TX_ENA   0xA0
 
#define TX_ENB   0xA1
 
#define TX_DISA_PWRUP   0xA2
 
#define TX_DISB_PWRUP   0xA3
 
#define TX_ENA_PWRUP   0xA4
 
#define TX_ENB_PWRUP   0xA5
 
#define BYPASS_CAP_DELAY   21 /* msec */
 
#define DFLT_PWRON_DELAY   10 /* msec */
 
#define LATCH_DELAY   13 /* msec */
 
#define EEPROM_WR_DELAY   8 /* msec */
 
#define BP_LINK_MON_DELAY   4 /* sec */
 
#define BP_FW_EXT_VER0   0xa0
 
#define BP_FW_EXT_VER1   0xa1
 
#define BP_FW_EXT_VER2   0xb1
 
#define BP_OK   0
 
#define BP_NOT_CAP   -1
 
#define WDT_STATUS_EXP   -2
 
#define WDT_STATUS_UNKNOWN   -1
 
#define WDT_STATUS_EN   1
 
#define WDT_STATUS_DIS   0
 

Macro Definition Documentation

#define ADDR_CMD_LEN   4

Definition at line 27 of file bypass.h.

#define BP_FW_EXT_VER0   0xa0

Definition at line 185 of file bypass.h.

#define BP_FW_EXT_VER1   0xa1

Definition at line 186 of file bypass.h.

#define BP_FW_EXT_VER2   0xb1

Definition at line 187 of file bypass.h.

#define BP_FW_EXT_VER7   0x6

Definition at line 91 of file bypass.h.

#define BP_FW_EXT_VER8   0x8

Definition at line 92 of file bypass.h.

#define BP_FW_EXT_VER9   0x9

Definition at line 93 of file bypass.h.

#define BP_FW_VER_A0   0xa0

Definition at line 81 of file bypass.h.

#define BP_FW_VER_A1   0xa1

Definition at line 82 of file bypass.h.

#define BP_HW_RESET_DIS   0x83

Definition at line 166 of file bypass.h.

#define BP_HW_RESET_EN   0x82

Definition at line 165 of file bypass.h.

#define BP_LINK_MON_DELAY   4 /* sec */

Definition at line 183 of file bypass.h.

#define BP_NOT_CAP   -1

Definition at line 190 of file bypass.h.

#define BP_OK   0

Definition at line 189 of file bypass.h.

#define BP_WAIT_AT_PWUP_DIS   0x81

Definition at line 164 of file bypass.h.

#define BP_WAIT_AT_PWUP_EN   0x80

Definition at line 163 of file bypass.h.

#define BYPASS_CAP_DELAY   21 /* msec */

Definition at line 178 of file bypass.h.

#define BYPASS_DELAY_INT   4 /* msec */

Definition at line 123 of file bypass.h.

#define BYPASS_FLAG_MASK   0x20 /* BIT_5 */

Definition at line 41 of file bypass.h.

#define BYPASS_OFF   0x8

Definition at line 130 of file bypass.h.

#define BYPASS_OFF_MASK   0x10 /* BIT_4 */

Definition at line 40 of file bypass.h.

#define BYPASS_ON   0xa

Definition at line 129 of file bypass.h.

#define BYPASS_ON_INT   0x6

Definition at line 117 of file bypass.h.

#define BYPASS_STATE_PWROFF   0x27

Definition at line 147 of file bypass.h.

#define BYPASS_STATE_PWRON   0x26

Definition at line 145 of file bypass.h.

#define BYPASS_SUPPORT_MASK   0x01 /* BIT_0 */

Definition at line 48 of file bypass.h.

#define CMND_EN_MASK   0x02 /* BIT_1 */

Definition at line 37 of file bypass.h.

#define CMND_INTERVAL   200 /* 100 usec */

Definition at line 105 of file bypass.h.

#define CMND_INTERVAL_INT   2 /* msec */

Definition at line 124 of file bypass.h.

#define CMND_OFF   0x2

Definition at line 128 of file bypass.h.

#define CMND_OFF_INT   0xf

Definition at line 115 of file bypass.h.

#define CMND_ON   0x4

Definition at line 127 of file bypass.h.

#define CMND_REG_ADDR   10 /* 1010b */

Definition at line 97 of file bypass.h.

#define CONT_CONFIG_REG_ADDR   12

Definition at line 76 of file bypass.h.

#define DFLT_PWROFF_MASK   0x80 /* BIT_7 */

Definition at line 44 of file bypass.h.

#define DFLT_PWRON_DELAY   10 /* msec */

Definition at line 179 of file bypass.h.

#define DFLT_PWRON_DISC_MASK   0x08 /* BIT_3 */

Definition at line 70 of file bypass.h.

#define DFLT_PWRON_MASK   0x08 /* BIT_3 */

Definition at line 39 of file bypass.h.

#define DFLT_PWRON_TAP_MASK   0x08 /* BIT_3 */

Definition at line 58 of file bypass.h.

#define DIS_BYPASS_CAP   0x22

Definition at line 143 of file bypass.h.

#define DIS_BYPASS_CAP_INT   0x4

Definition at line 118 of file bypass.h.

#define DIS_BYPASS_CAP_MASK   0x04 /* BIT_2 Bypass Cap is disable*/

Definition at line 38 of file bypass.h.

#define DIS_DISC_CAP   0x88

Definition at line 159 of file bypass.h.

#define DIS_DISC_CAP_MASK   0x04 /* BIT_2 TAP Cap is disable*/

Definition at line 69 of file bypass.h.

#define DIS_TAP_CAP   0x2c

Definition at line 152 of file bypass.h.

#define DIS_TAP_CAP_MASK   0x04 /* BIT_2 TAP Cap is disable*/

Definition at line 57 of file bypass.h.

#define DISC_FLAG_MASK   0x20 /* BIT_5 */

Definition at line 72 of file bypass.h.

#define DISC_OFF   0x8a

Definition at line 157 of file bypass.h.

#define DISC_OFF_MASK   0x10 /* BIT_4 */

Definition at line 71 of file bypass.h.

#define DISC_ON   0x85

Definition at line 156 of file bypass.h.

#define DISC_PORT_SUPPORT_MASK   0x20 /* BIT_5 */

Definition at line 53 of file bypass.h.

#define DISC_STATE_PWRON   0x87

Definition at line 158 of file bypass.h.

#define DISC_SUPPORT_MASK   0x08 /* BIT_3 */

Definition at line 51 of file bypass.h.

#define EEPROM_WR_DELAY   8 /* msec */

Definition at line 181 of file bypass.h.

#define EN_BYPASS_CAP   0x24

Definition at line 144 of file bypass.h.

#define EN_DISC_CAP   0x89

Definition at line 160 of file bypass.h.

#define EN_HW_RESET_MASK   0x2 /* BIT_1 */

Definition at line 77 of file bypass.h.

#define EN_TAP_CAP   0x2e

Definition at line 153 of file bypass.h.

#define EXT_VER_MASK   0xf

Definition at line 85 of file bypass.h.

#define INIT_CMND_INTERVAL   40

Definition at line 109 of file bypass.h.

#define INT_VER_MASK   0xf0

Definition at line 84 of file bypass.h.

#define LATCH_DELAY   13 /* msec */

Definition at line 180 of file bypass.h.

#define NORMAL_STATE_PWROFF   0x29

Definition at line 148 of file bypass.h.

#define NORMAL_STATE_PWRON   0x28

Definition at line 146 of file bypass.h.

#define NORMAL_UNSUPPORT_MASK   0x04 /* BIT_2 */

Definition at line 50 of file bypass.h.

#define OLD_IF_VER   -1

Definition at line 95 of file bypass.h.

#define PIC_SIGN_REG_ADDR   0x7

Definition at line 32 of file bypass.h.

#define PIC_SIGN_VALUE   0xcd

Definition at line 33 of file bypass.h.

#define PORT_LINK_DIS   0xc

Definition at line 132 of file bypass.h.

#define PORT_LINK_EN   0xe

Definition at line 131 of file bypass.h.

#define PRODUCT_CAP_REG_ADDR   0x5

Definition at line 47 of file bypass.h.

#define PULSE_INTERVAL   5

Definition at line 110 of file bypass.h.

#define PULSE_TIME   100

Definition at line 106 of file bypass.h.

#define PWROFF_BYPASS_ON_INT   0x5

Definition at line 116 of file bypass.h.

#define PXE2TBPI_VER   0x2

Definition at line 89 of file bypass.h.

#define PXG2BPI_VER   0x0

Definition at line 87 of file bypass.h.

#define PXG2TBPI_VER   0x1

Definition at line 88 of file bypass.h.

#define PXG4BPFI_VER   0x4

Definition at line 90 of file bypass.h.

#define RD_CMD_LEN   2

Definition at line 25 of file bypass.h.

#define RD_CMD_VAL   1 /* 10b */

Definition at line 24 of file bypass.h.

#define RD_DATA_LEN   8

Definition at line 30 of file bypass.h.

#define RESET_CONT   0x20

Definition at line 142 of file bypass.h.

#define RESET_WDT_INT   0x1

Definition at line 119 of file bypass.h.

#define STATUS_DISC_REG_ADDR   13

Definition at line 66 of file bypass.h.

#define STATUS_REG_ADDR   0

Definition at line 35 of file bypass.h.

#define STATUS_TAP_REG_ADDR   0x6

Definition at line 55 of file bypass.h.

#define STD_NIC_DISC_MASK   DIS_DISC_CAP_MASK

Definition at line 74 of file bypass.h.

#define STD_NIC_MASK   (DIS_BYPASS_CAP_MASK | BYPASS_OFF_MASK | DFLT_PWRON_MASK)

Definition at line 42 of file bypass.h.

#define STD_NIC_OFF   0x86

Definition at line 154 of file bypass.h.

#define STD_NIC_ON   0x84

Definition at line 155 of file bypass.h.

#define STD_NIC_ON_MASK   0x02 /* BIT_1 */

Definition at line 68 of file bypass.h.

#define STD_NIC_PWOFF_MASK   (DIS_BYPASS_CAP_MASK | BYPASS_OFF_MASK | DFLT_PWRON_MASK | DFLT_PWROFF_MASK)

Definition at line 45 of file bypass.h.

#define STD_NIC_TAP_MASK   (DIS_TAP_CAP_MASK | TAP_OFF_MASK | DFLT_PWRON_TAP_MASK)

Definition at line 64 of file bypass.h.

#define SYNC_CMD_LEN   2

Definition at line 19 of file bypass.h.

#define SYNC_CMD_VAL   2 /* 10b */

Definition at line 18 of file bypass.h.

#define TAP_FLAG_MASK   0x20 /* BIT_5 */

Definition at line 60 of file bypass.h.

#define TAP_OFF   0x9

Definition at line 150 of file bypass.h.

#define TAP_OFF_MASK   0x10 /* BIT_4 */

Definition at line 59 of file bypass.h.

#define TAP_ON   0xb

Definition at line 149 of file bypass.h.

#define TAP_STATE_PWRON   0x2a

Definition at line 151 of file bypass.h.

#define TAP_SUPPORT_MASK   0x02 /* BIT_1 */

Definition at line 49 of file bypass.h.

#define TIMEOUT_MAX_STEP   15

Definition at line 135 of file bypass.h.

#define TIMEOUT_UNIT   100

Definition at line 134 of file bypass.h.

#define TMRH_REG_ADDR   3

Definition at line 100 of file bypass.h.

#define TMRL_REG_ADDR   2

Definition at line 99 of file bypass.h.

#define TPL2_FLAG_MASK   0x40 /* BIT_6 */

Definition at line 73 of file bypass.h.

#define TPL2_OFF   0x8b

Definition at line 162 of file bypass.h.

#define TPL2_ON   0x8c

Definition at line 161 of file bypass.h.

#define TPL2_SUPPORT_MASK   0x10 /* BIT_4 */

Definition at line 52 of file bypass.h.

#define TX_DISA   0x8d

Definition at line 168 of file bypass.h.

#define TX_DISA_MASK   0x40

Definition at line 61 of file bypass.h.

#define TX_DISA_PWRUP   0xA2

Definition at line 173 of file bypass.h.

#define TX_DISB   0x8e

Definition at line 169 of file bypass.h.

#define TX_DISB_MASK   0x80

Definition at line 62 of file bypass.h.

#define TX_DISB_PWRUP   0xA3

Definition at line 174 of file bypass.h.

#define TX_ENA   0xA0

Definition at line 170 of file bypass.h.

#define TX_ENA_PWRUP   0xA4

Definition at line 175 of file bypass.h.

#define TX_ENB   0xA1

Definition at line 171 of file bypass.h.

#define TX_ENB_PWRUP   0xA5

Definition at line 176 of file bypass.h.

#define VER_REG_ADDR   0x1

Definition at line 80 of file bypass.h.

#define WAIT_AT_PWUP_MASK   0x1 /* BIT_0 */

Definition at line 78 of file bypass.h.

#define WD_EXP_FLAG_MASK   0x40 /* BIT_6 */

Definition at line 43 of file bypass.h.

#define WDT_AUTO_MIN_INT   500

Definition at line 138 of file bypass.h.

#define WDT_CMND_INTERVAL   200 /* 50 */

Definition at line 104 of file bypass.h.

#define WDT_EN_MASK   0x01 /* BIT_0 */

Definition at line 36 of file bypass.h.

#define WDT_INTERVAL   1 /* 5 //8 */

Definition at line 103 of file bypass.h.

#define WDT_OFF   0x6

Definition at line 140 of file bypass.h.

#define WDT_ON   0x10 /* 0x1f (11111) - max */

Definition at line 133 of file bypass.h.

#define WDT_REG_ADDR   4

Definition at line 98 of file bypass.h.

#define WDT_RELOAD   0x9

Definition at line 141 of file bypass.h.

#define WDT_STATUS_DIS   0

Definition at line 194 of file bypass.h.

#define WDT_STATUS_EN   1

Definition at line 193 of file bypass.h.

#define WDT_STATUS_EXP   -2

Definition at line 191 of file bypass.h.

#define WDT_STATUS_UNKNOWN   -1

Definition at line 192 of file bypass.h.

#define WDT_TIME_CNT   3

Definition at line 111 of file bypass.h.

#define WDT_TIMEOUT_DEF   WDT_TIMEOUT_MIN

Definition at line 139 of file bypass.h.

#define WDT_TIMEOUT_MAX   3276800 /* msec */

Definition at line 137 of file bypass.h.

#define WDT_TIMEOUT_MIN   100 /* msec */

Definition at line 136 of file bypass.h.

#define WDTE_DISC_BPN_MASK   0x01 /* BIT_0 1 when wdt expired -> TAP, 0 - Bypass */

Definition at line 67 of file bypass.h.

#define WDTE_TAP_BPN_MASK   0x01 /* BIT_1 1 when wdt expired -> TAP, 0 - Bypass */

Definition at line 56 of file bypass.h.

#define WR_CMD_LEN   2

Definition at line 22 of file bypass.h.

#define WR_CMD_VAL   2 /* 10b */

Definition at line 21 of file bypass.h.

#define WR_DATA_LEN   8

Definition at line 29 of file bypass.h.