#ifndef _CASSINI_H
#define _CASSINI_H
#define CAS_ID_REV2 …
#define CAS_ID_REVPLUS …
#define CAS_ID_REVPLUS02u …
#define CAS_ID_REVSATURNB2 …
#define REG_CAWR …
#define CAWR_RX_DMA_WEIGHT_SHIFT …
#define CAWR_RX_DMA_WEIGHT_MASK …
#define CAWR_TX_DMA_WEIGHT_SHIFT …
#define CAWR_TX_DMA_WEIGHT_MASK …
#define CAWR_RR_DIS …
#define REG_INF_BURST …
#define INF_BURST_EN …
#define REG_INTR_STATUS …
#define INTR_TX_INTME …
#define INTR_TX_ALL …
#define INTR_TX_DONE …
#define INTR_TX_TAG_ERROR …
#define INTR_RX_DONE …
#define INTR_RX_BUF_UNAVAIL …
#define INTR_RX_TAG_ERROR …
#define INTR_RX_COMP_FULL …
#define INTR_RX_BUF_AE …
#define INTR_RX_COMP_AF …
#define INTR_RX_LEN_MISMATCH …
#define INTR_SUMMARY …
#define INTR_PCS_STATUS …
#define INTR_TX_MAC_STATUS …
#define INTR_RX_MAC_STATUS …
#define INTR_MAC_CTRL_STATUS …
#define INTR_MIF_STATUS …
#define INTR_PCI_ERROR_STATUS …
#define INTR_TX_COMP_3_MASK …
#define INTR_TX_COMP_3_SHIFT …
#define INTR_ERROR_MASK …
#define REG_INTR_MASK …
#define REG_ALIAS_CLEAR …
#define REG_INTR_STATUS_ALIAS …
#define REG_PCI_ERR_STATUS …
#define PCI_ERR_BADACK …
#define PCI_ERR_DTRTO …
#define PCI_ERR_OTHER …
#define PCI_ERR_BIM_DMA_WRITE …
#define PCI_ERR_BIM_DMA_READ …
#define PCI_ERR_BIM_DMA_TIMEOUT …
#define REG_PCI_ERR_STATUS_MASK …
#define REG_BIM_CFG …
#define BIM_CFG_RESERVED0 …
#define BIM_CFG_RESERVED1 …
#define BIM_CFG_64BIT_DISABLE …
#define BIM_CFG_66MHZ …
#define BIM_CFG_32BIT …
#define BIM_CFG_DPAR_INTR_ENABLE …
#define BIM_CFG_RMA_INTR_ENABLE …
#define BIM_CFG_RTA_INTR_ENABLE …
#define BIM_CFG_RESERVED2 …
#define BIM_CFG_BIM_DISABLE …
#define BIM_CFG_BIM_STATUS …
#define BIM_CFG_PERROR_BLOCK …
#define REG_BIM_DIAG …
#define BIM_DIAG_MSTR_SM_MASK …
#define BIM_DIAG_BRST_SM_MASK …
#define REG_SW_RESET …
#define SW_RESET_TX …
#define SW_RESET_RX …
#define SW_RESET_RSTOUT …
#define SW_RESET_BLOCK_PCS_SLINK …
#define SW_RESET_BREQ_SM_MASK …
#define SW_RESET_PCIARB_SM_MASK …
#define SW_RESET_RDPCI_SM_MASK …
#define SW_RESET_RDARB_SM_MASK …
#define SW_RESET_WRPCI_SM_MASK …
#define SW_RESET_WRARB_SM_MASK …
#define REG_MINUS_BIM_DATAPATH_TEST …
#define REG_BIM_LOCAL_DEV_EN …
#define BIM_LOCAL_DEV_PAD …
#define BIM_LOCAL_DEV_PROM …
#define BIM_LOCAL_DEV_EXT …
#define BIM_LOCAL_DEV_SOFT_0 …
#define BIM_LOCAL_DEV_SOFT_1 …
#define BIM_LOCAL_DEV_HW_RESET …
#define REG_BIM_BUFFER_ADDR …
#define BIM_BUFFER_ADDR_MASK …
#define BIM_BUFFER_WR_SELECT …
#define REG_BIM_BUFFER_DATA_LOW …
#define REG_BIM_BUFFER_DATA_HI …
#define REG_BIM_RAM_BIST …
#define BIM_RAM_BIST_RD_START …
#define BIM_RAM_BIST_WR_START …
#define BIM_RAM_BIST_RD_PASS …
#define BIM_RAM_BIST_WR_PASS …
#define BIM_RAM_BIST_RD_LOW_PASS …
#define BIM_RAM_BIST_RD_HI_PASS …
#define BIM_RAM_BIST_WR_LOW_PASS …
#define BIM_RAM_BIST_WR_HI_PASS …
#define REG_BIM_DIAG_MUX …
#define REG_PLUS_PROBE_MUX_SELECT …
#define PROBE_MUX_EN …
#define PROBE_MUX_SUB_MUX_MASK …
#define PROBE_MUX_SEL_HI_MASK …
#define PROBE_MUX_SEL_LOW_MASK …
#define REG_PLUS_INTR_MASK_1 …
#define REG_PLUS_INTRN_MASK(x) …
#define INTR_RX_DONE_ALT …
#define INTR_RX_COMP_FULL_ALT …
#define INTR_RX_COMP_AF_ALT …
#define INTR_RX_BUF_UNAVAIL_1 …
#define INTR_RX_BUF_AE_1 …
#define INTRN_MASK_RX_EN …
#define INTRN_MASK_CLEAR_ALL …
#define REG_PLUS_INTR_STATUS_1 …
#define REG_PLUS_INTRN_STATUS(x) …
#define INTR_STATUS_ALT_INTX_EN …
#define REG_PLUS_ALIAS_CLEAR_1 …
#define REG_PLUS_ALIASN_CLEAR(x) …
#define REG_PLUS_INTR_STATUS_ALIAS_1 …
#define REG_PLUS_INTRN_STATUS_ALIAS(x) …
#define REG_SATURN_PCFG …
#define SATURN_PCFG_TLA …
#define SATURN_PCFG_FLA …
#define SATURN_PCFG_CLA …
#define SATURN_PCFG_LLA …
#define SATURN_PCFG_RLA …
#define SATURN_PCFG_PDS …
#define SATURN_PCFG_MTP …
#define SATURN_PCFG_GMO …
#define SATURN_PCFG_FSI …
#define SATURN_PCFG_LAD …
#define MAX_TX_RINGS_SHIFT …
#define MAX_TX_RINGS …
#define MAX_TX_RINGS_MASK …
#define REG_TX_CFG …
#define TX_CFG_DMA_EN …
#define TX_CFG_FIFO_PIO_SEL …
#define TX_CFG_DESC_RING0_MASK …
#define TX_CFG_DESC_RING0_SHIFT …
#define TX_CFG_DESC_RINGN_MASK(a) …
#define TX_CFG_DESC_RINGN_SHIFT(a) …
#define TX_CFG_PACED_MODE …
#define TX_CFG_DMA_RDPIPE_DIS …
#define TX_CFG_COMPWB_Q1 …
#define TX_CFG_COMPWB_Q2 …
#define TX_CFG_COMPWB_Q3 …
#define TX_CFG_COMPWB_Q4 …
#define TX_CFG_INTR_COMPWB_DIS …
#define TX_CFG_CTX_SEL_MASK …
#define TX_CFG_CTX_SEL_SHIFT …
#define REG_TX_FIFO_WRITE_PTR …
#define REG_TX_FIFO_SHADOW_WRITE_PTR …
#define REG_TX_FIFO_READ_PTR …
#define REG_TX_FIFO_SHADOW_READ_PTR …
#define REG_TX_FIFO_PKT_CNT …
#define REG_TX_SM_1 …
#define TX_SM_1_CHAIN_MASK …
#define TX_SM_1_CSUM_MASK …
#define TX_SM_1_FIFO_LOAD_MASK …
#define TX_SM_1_FIFO_UNLOAD_MASK …
#define TX_SM_1_CACHE_MASK …
#define TX_SM_1_CBQ_ARB_MASK …
#define REG_TX_SM_2 …
#define TX_SM_2_COMP_WB_MASK …
#define TX_SM_2_SUB_LOAD_MASK …
#define TX_SM_2_KICK_MASK …
#define REG_TX_DATA_PTR_LOW …
#define REG_TX_DATA_PTR_HI …
#define REG_TX_KICK0 …
#define REG_TX_KICKN(x) …
#define REG_TX_COMP0 …
#define REG_TX_COMPN(x) …
#define TX_COMPWB_SIZE …
#define REG_TX_COMPWB_DB_LOW …
#define REG_TX_COMPWB_DB_HI …
#define TX_COMPWB_MSB_MASK …
#define TX_COMPWB_MSB_SHIFT …
#define TX_COMPWB_LSB_MASK …
#define TX_COMPWB_LSB_SHIFT …
#define TX_COMPWB_NEXT(x) …
#define REG_TX_DB0_LOW …
#define REG_TX_DB0_HI …
#define REG_TX_DBN_LOW(x) …
#define REG_TX_DBN_HI(x) …
#define REG_TX_MAXBURST_0 …
#define REG_TX_MAXBURST_1 …
#define REG_TX_MAXBURST_2 …
#define REG_TX_MAXBURST_3 …
#define REG_TX_FIFO_ADDR …
#define REG_TX_FIFO_TAG …
#define REG_TX_FIFO_DATA_LOW …
#define REG_TX_FIFO_DATA_HI_T1 …
#define REG_TX_FIFO_DATA_HI_T0 …
#define REG_TX_FIFO_SIZE …
#define REG_TX_RAMBIST …
#define TX_RAMBIST_STATE …
#define TX_RAMBIST_RAM33A_PASS …
#define TX_RAMBIST_RAM32A_PASS …
#define TX_RAMBIST_RAM33B_PASS …
#define TX_RAMBIST_RAM32B_PASS …
#define TX_RAMBIST_SUMMARY …
#define TX_RAMBIST_START …
#define MAX_RX_DESC_RINGS …
#define MAX_RX_COMP_RINGS …
#define REG_RX_CFG …
#define RX_CFG_DMA_EN …
#define RX_CFG_DESC_RING_MASK …
#define RX_CFG_DESC_RING_SHIFT …
#define RX_CFG_COMP_RING_MASK …
#define RX_CFG_COMP_RING_SHIFT …
#define RX_CFG_BATCH_DIS …
#define RX_CFG_SWIVEL_MASK …
#define RX_CFG_SWIVEL_SHIFT …
#define RX_CFG_DESC_RING1_MASK …
#define RX_CFG_DESC_RING1_SHIFT …
#define REG_RX_PAGE_SIZE …
#define RX_PAGE_SIZE_MASK …
#define RX_PAGE_SIZE_SHIFT …
#define RX_PAGE_SIZE_MTU_COUNT_MASK …
#define RX_PAGE_SIZE_MTU_COUNT_SHIFT …
#define RX_PAGE_SIZE_MTU_STRIDE_MASK …
#define RX_PAGE_SIZE_MTU_STRIDE_SHIFT …
#define RX_PAGE_SIZE_MTU_OFF_MASK …
#define RX_PAGE_SIZE_MTU_OFF_SHIFT …
#define REG_RX_FIFO_WRITE_PTR …
#define REG_RX_FIFO_READ_PTR …
#define REG_RX_IPP_FIFO_SHADOW_WRITE_PTR …
#define REG_RX_IPP_FIFO_SHADOW_READ_PTR …
#define REG_RX_IPP_FIFO_READ_PTR …
#define REG_RX_DEBUG …
#define RX_DEBUG_LOAD_STATE_MASK …
#define RX_DEBUG_LM_STATE_MASK …
#define RX_DEBUG_FC_STATE_MASK …
#define RX_DEBUG_DATA_STATE_MASK …
#define RX_DEBUG_DESC_STATE_MASK …
#define RX_DEBUG_INTR_READ_PTR_MASK …
#define RX_DEBUG_INTR_WRITE_PTR_MASK …
#define REG_RX_PAUSE_THRESH …
#define RX_PAUSE_THRESH_QUANTUM …
#define RX_PAUSE_THRESH_OFF_MASK …
#define RX_PAUSE_THRESH_OFF_SHIFT …
#define RX_PAUSE_THRESH_ON_MASK …
#define RX_PAUSE_THRESH_ON_SHIFT …
#define REG_RX_KICK …
#define REG_RX_DB_LOW …
#define REG_RX_DB_HI …
#define REG_RX_CB_LOW …
#define REG_RX_CB_HI …
#define REG_RX_COMP …
#define REG_RX_COMP_HEAD …
#define REG_RX_COMP_TAIL …
#define REG_RX_BLANK …
#define RX_BLANK_INTR_PKT_MASK …
#define RX_BLANK_INTR_PKT_SHIFT …
#define RX_BLANK_INTR_TIME_MASK …
#define RX_BLANK_INTR_TIME_SHIFT …
#define REG_RX_AE_THRESH …
#define RX_AE_THRESH_FREE_MASK …
#define RX_AE_THRESH_FREE_SHIFT …
#define RX_AE_THRESH_COMP_MASK …
#define RX_AE_THRESH_COMP_SHIFT …
#define REG_RX_RED …
#define RX_RED_4K_6K_FIFO_MASK …
#define RX_RED_6K_8K_FIFO_MASK …
#define RX_RED_8K_10K_FIFO_MASK …
#define RX_RED_10K_12K_FIFO_MASK …
#define REG_RX_FIFO_FULLNESS …
#define RX_FIFO_FULLNESS_RX_FIFO_MASK …
#define RX_FIFO_FULLNESS_IPP_FIFO_MASK …
#define RX_FIFO_FULLNESS_RX_PKT_MASK …
#define REG_RX_IPP_PACKET_COUNT …
#define REG_RX_WORK_DMA_PTR_LOW …
#define REG_RX_WORK_DMA_PTR_HI …
#define REG_RX_BIST …
#define RX_BIST_32A_PASS …
#define RX_BIST_33A_PASS …
#define RX_BIST_32B_PASS …
#define RX_BIST_33B_PASS …
#define RX_BIST_32C_PASS …
#define RX_BIST_33C_PASS …
#define RX_BIST_IPP_32A_PASS …
#define RX_BIST_IPP_33A_PASS …
#define RX_BIST_IPP_32B_PASS …
#define RX_BIST_IPP_33B_PASS …
#define RX_BIST_IPP_32C_PASS …
#define RX_BIST_IPP_33C_PASS …
#define RX_BIST_CTRL_32_PASS …
#define RX_BIST_CTRL_33_PASS …
#define RX_BIST_REAS_26A_PASS …
#define RX_BIST_REAS_26B_PASS …
#define RX_BIST_REAS_27_PASS …
#define RX_BIST_STATE_MASK …
#define RX_BIST_SUMMARY …
#define RX_BIST_START …
#define REG_RX_CTRL_FIFO_WRITE_PTR …
#define REG_RX_CTRL_FIFO_READ_PTR …
#define REG_RX_BLANK_ALIAS_READ …
#define RX_BAR_INTR_PACKET_MASK …
#define RX_BAR_INTR_TIME_MASK …
#define REG_RX_FIFO_ADDR …
#define REG_RX_FIFO_TAG …
#define REG_RX_FIFO_DATA_LOW …
#define REG_RX_FIFO_DATA_HI_T0 …
#define REG_RX_FIFO_DATA_HI_T1 …
#define REG_RX_CTRL_FIFO_ADDR …
#define REG_RX_CTRL_FIFO_DATA_LOW …
#define REG_RX_CTRL_FIFO_DATA_MID …
#define REG_RX_CTRL_FIFO_DATA_HI …
#define RX_CTRL_FIFO_DATA_HI_CTRL …
#define RX_CTRL_FIFO_DATA_HI_FLOW_MASK …
#define REG_RX_IPP_FIFO_ADDR …
#define REG_RX_IPP_FIFO_TAG …
#define REG_RX_IPP_FIFO_DATA_LOW …
#define REG_RX_IPP_FIFO_DATA_HI_T0 …
#define REG_RX_IPP_FIFO_DATA_HI_T1 …
#define REG_RX_HEADER_PAGE_PTR_LOW …
#define REG_RX_HEADER_PAGE_PTR_HI …
#define REG_RX_MTU_PAGE_PTR_LOW …
#define REG_RX_MTU_PAGE_PTR_HI …
#define REG_RX_TABLE_ADDR …
#define RX_TABLE_ADDR_MASK …
#define REG_RX_TABLE_DATA_LOW …
#define REG_RX_TABLE_DATA_MID …
#define REG_RX_TABLE_DATA_HI …
#define REG_PLUS_RX_DB1_LOW …
#define REG_PLUS_RX_DB1_HI …
#define REG_PLUS_RX_CB1_LOW …
#define REG_PLUS_RX_CB1_HI …
#define REG_PLUS_RX_CBN_LOW(x) …
#define REG_PLUS_RX_CBN_HI(x) …
#define REG_PLUS_RX_KICK1 …
#define REG_PLUS_RX_COMP1 …
#define REG_PLUS_RX_COMP1_HEAD …
#define REG_PLUS_RX_COMP1_TAIL …
#define REG_PLUS_RX_COMPN_HEAD(x) …
#define REG_PLUS_RX_COMPN_TAIL(x) …
#define REG_PLUS_RX_AE1_THRESH …
#define RX_AE1_THRESH_FREE_MASK …
#define RX_AE1_THRESH_FREE_SHIFT …
#define REG_HP_CFG …
#define HP_CFG_PARSE_EN …
#define HP_CFG_NUM_CPU_MASK …
#define HP_CFG_NUM_CPU_SHIFT …
#define HP_CFG_SYN_INC_MASK …
#define HP_CFG_TCP_THRESH_MASK …
#define HP_CFG_TCP_THRESH_SHIFT …
#define REG_HP_INSTR_RAM_ADDR …
#define HP_INSTR_RAM_ADDR_MASK …
#define REG_HP_INSTR_RAM_DATA_LOW …
#define HP_INSTR_RAM_LOW_OUTMASK_MASK …
#define HP_INSTR_RAM_LOW_OUTMASK_SHIFT …
#define HP_INSTR_RAM_LOW_OUTSHIFT_MASK …
#define HP_INSTR_RAM_LOW_OUTSHIFT_SHIFT …
#define HP_INSTR_RAM_LOW_OUTEN_MASK …
#define HP_INSTR_RAM_LOW_OUTEN_SHIFT …
#define HP_INSTR_RAM_LOW_OUTARG_MASK …
#define HP_INSTR_RAM_LOW_OUTARG_SHIFT …
#define REG_HP_INSTR_RAM_DATA_MID …
#define HP_INSTR_RAM_MID_OUTARG_MASK …
#define HP_INSTR_RAM_MID_OUTARG_SHIFT …
#define HP_INSTR_RAM_MID_OUTOP_MASK …
#define HP_INSTR_RAM_MID_OUTOP_SHIFT …
#define HP_INSTR_RAM_MID_FNEXT_MASK …
#define HP_INSTR_RAM_MID_FNEXT_SHIFT …
#define HP_INSTR_RAM_MID_FOFF_MASK …
#define HP_INSTR_RAM_MID_FOFF_SHIFT …
#define HP_INSTR_RAM_MID_SNEXT_MASK …
#define HP_INSTR_RAM_MID_SNEXT_SHIFT …
#define HP_INSTR_RAM_MID_SOFF_MASK …
#define HP_INSTR_RAM_MID_SOFF_SHIFT …
#define HP_INSTR_RAM_MID_OP_MASK …
#define HP_INSTR_RAM_MID_OP_SHIFT …
#define REG_HP_INSTR_RAM_DATA_HI …
#define HP_INSTR_RAM_HI_VAL_MASK …
#define HP_INSTR_RAM_HI_VAL_SHIFT …
#define HP_INSTR_RAM_HI_MASK_MASK …
#define HP_INSTR_RAM_HI_MASK_SHIFT …
#define REG_HP_DATA_RAM_FDB_ADDR …
#define HP_DATA_RAM_FDB_DATA_MASK …
#define HP_DATA_RAM_FDB_FDB_MASK …
#define REG_HP_DATA_RAM_DATA …
#define REG_HP_FLOW_DB0 …
#define REG_HP_FLOW_DBN(x) …
#define REG_HP_STATE_MACHINE …
#define REG_HP_STATUS0 …
#define HP_STATUS0_SAP_MASK …
#define HP_STATUS0_L3_OFF_MASK …
#define HP_STATUS0_LB_CPUNUM_MASK …
#define HP_STATUS0_HRP_OPCODE_MASK …
#define REG_HP_STATUS1 …
#define HP_STATUS1_ACCUR2_MASK …
#define HP_STATUS1_FLOWID_MASK …
#define HP_STATUS1_TCP_OFF_MASK …
#define HP_STATUS1_TCP_SIZE_MASK …
#define REG_HP_STATUS2 …
#define HP_STATUS2_ACCUR2_MASK …
#define HP_STATUS2_CSUM_OFF_MASK …
#define HP_STATUS2_ACCUR1_MASK …
#define HP_STATUS2_FORCE_DROP …
#define HP_STATUS2_BWO_REASSM …
#define HP_STATUS2_JH_SPLIT_EN …
#define HP_STATUS2_FORCE_TCP_NOCHECK …
#define HP_STATUS2_DATA_MASK_ZERO …
#define HP_STATUS2_FORCE_TCP_CHECK …
#define HP_STATUS2_MASK_TCP_THRESH …
#define HP_STATUS2_NO_ASSIST …
#define HP_STATUS2_CTRL_PACKET_FLAG …
#define HP_STATUS2_TCP_FLAG_CHECK …
#define HP_STATUS2_SYN_FLAG …
#define HP_STATUS2_TCP_CHECK …
#define HP_STATUS2_TCP_NOCHECK …
#define REG_HP_RAM_BIST …
#define HP_RAM_BIST_HP_DATA_PASS …
#define HP_RAM_BIST_HP_INSTR0_PASS …
#define HP_RAM_BIST_HP_INSTR1_PASS …
#define HP_RAM_BIST_HP_INSTR2_PASS …
#define HP_RAM_BIST_FDBM_AGE0_PASS …
#define HP_RAM_BIST_FDBM_AGE1_PASS …
#define HP_RAM_BIST_FDBM_FLOWID00_PASS …
#define HP_RAM_BIST_FDBM_FLOWID10_PASS …
#define HP_RAM_BIST_FDBM_FLOWID20_PASS …
#define HP_RAM_BIST_FDBM_FLOWID30_PASS …
#define HP_RAM_BIST_FDBM_FLOWID01_PASS …
#define HP_RAM_BIST_FDBM_FLOWID11_PASS …
#define HP_RAM_BIST_FDBM_FLOWID21_PASS …
#define HP_RAM_BIST_FDBM_FLOWID31_PASS …
#define HP_RAM_BIST_FDBM_TCPSEQ_PASS …
#define HP_RAM_BIST_SUMMARY …
#define HP_RAM_BIST_START …
#define REG_MAC_TX_RESET …
#define REG_MAC_RX_RESET …
#define REG_MAC_SEND_PAUSE …
#define MAC_SEND_PAUSE_TIME_MASK …
#define MAC_SEND_PAUSE_SEND …
#define REG_MAC_TX_STATUS …
#define MAC_TX_FRAME_XMIT …
#define MAC_TX_UNDERRUN …
#define MAC_TX_MAX_PACKET_ERR …
#define MAC_TX_COLL_NORMAL …
#define MAC_TX_COLL_EXCESS …
#define MAC_TX_COLL_LATE …
#define MAC_TX_COLL_FIRST …
#define MAC_TX_DEFER_TIMER …
#define MAC_TX_PEAK_ATTEMPTS …
#define REG_MAC_RX_STATUS …
#define MAC_RX_FRAME_RECV …
#define MAC_RX_OVERFLOW …
#define MAC_RX_FRAME_COUNT …
#define MAC_RX_ALIGN_ERR …
#define MAC_RX_CRC_ERR …
#define MAC_RX_LEN_ERR …
#define MAC_RX_VIOL_ERR …
#define REG_MAC_CTRL_STATUS …
#define MAC_CTRL_PAUSE_RECEIVED …
#define MAC_CTRL_PAUSE_STATE …
#define MAC_CTRL_NOPAUSE_STATE …
#define MAC_CTRL_PAUSE_TIME_MASK …
#define REG_MAC_TX_MASK …
#define REG_MAC_RX_MASK …
#define REG_MAC_CTRL_MASK …
#define REG_MAC_TX_CFG …
#define MAC_TX_CFG_EN …
#define MAC_TX_CFG_IGNORE_CARRIER …
#define MAC_TX_CFG_IGNORE_COLL …
#define MAC_TX_CFG_IPG_EN …
#define MAC_TX_CFG_NEVER_GIVE_UP_EN …
#define MAC_TX_CFG_NEVER_GIVE_UP_LIM …
#define MAC_TX_CFG_NO_BACKOFF …
#define MAC_TX_CFG_SLOW_DOWN …
#define MAC_TX_CFG_NO_FCS …
#define MAC_TX_CFG_CARRIER_EXTEND …
#define REG_MAC_RX_CFG …
#define MAC_RX_CFG_EN …
#define MAC_RX_CFG_STRIP_PAD …
#define MAC_RX_CFG_STRIP_FCS …
#define MAC_RX_CFG_PROMISC_EN …
#define MAC_RX_CFG_PROMISC_GROUP_EN …
#define MAC_RX_CFG_HASH_FILTER_EN …
#define MAC_RX_CFG_ADDR_FILTER_EN …
#define MAC_RX_CFG_DISABLE_DISCARD …
#define MAC_RX_CFG_CARRIER_EXTEND …
#define REG_MAC_CTRL_CFG …
#define MAC_CTRL_CFG_SEND_PAUSE_EN …
#define MAC_CTRL_CFG_RECV_PAUSE_EN …
#define MAC_CTRL_CFG_PASS_CTRL …
#define REG_MAC_XIF_CFG …
#define MAC_XIF_TX_MII_OUTPUT_EN …
#define MAC_XIF_MII_INT_LOOPBACK …
#define MAC_XIF_DISABLE_ECHO …
#define MAC_XIF_GMII_MODE …
#define MAC_XIF_MII_BUFFER_OUTPUT_EN …
#define MAC_XIF_LINK_LED …
#define MAC_XIF_FDPLX_LED …
#define REG_MAC_IPG0 …
#define REG_MAC_IPG1 …
#define REG_MAC_IPG2 …
#define REG_MAC_SLOT_TIME …
#define REG_MAC_FRAMESIZE_MIN …
#define REG_MAC_FRAMESIZE_MAX …
#define MAC_FRAMESIZE_MAX_BURST_MASK …
#define MAC_FRAMESIZE_MAX_BURST_SHIFT …
#define MAC_FRAMESIZE_MAX_FRAME_MASK …
#define MAC_FRAMESIZE_MAX_FRAME_SHIFT …
#define REG_MAC_PA_SIZE …
#define REG_MAC_JAM_SIZE …
#define REG_MAC_ATTEMPT_LIMIT …
#define REG_MAC_CTRL_TYPE …
#define REG_MAC_ADDR0 …
#define REG_MAC_ADDRN(x) …
#define REG_MAC_ADDR_FILTER0 …
#define REG_MAC_ADDR_FILTER1 …
#define REG_MAC_ADDR_FILTER2 …
#define REG_MAC_ADDR_FILTER2_1_MASK …
#define REG_MAC_ADDR_FILTER0_MASK …
#define REG_MAC_HASH_TABLE0 …
#define REG_MAC_HASH_TABLEN(x) …
#define REG_MAC_COLL_NORMAL …
#define REG_MAC_COLL_FIRST …
#define REG_MAC_COLL_EXCESS …
#define REG_MAC_COLL_LATE …
#define REG_MAC_TIMER_DEFER …
#define REG_MAC_ATTEMPTS_PEAK …
#define REG_MAC_RECV_FRAME …
#define REG_MAC_LEN_ERR …
#define REG_MAC_ALIGN_ERR …
#define REG_MAC_FCS_ERR …
#define REG_MAC_RX_CODE_ERR …
#define REG_MAC_RANDOM_SEED …
#define REG_MAC_STATE_MACHINE …
#define MAC_SM_RLM_MASK …
#define MAC_SM_RLM_SHIFT …
#define MAC_SM_RX_FC_MASK …
#define MAC_SM_RX_FC_SHIFT …
#define MAC_SM_TLM_MASK …
#define MAC_SM_TLM_SHIFT …
#define MAC_SM_ENCAP_SM_MASK …
#define MAC_SM_ENCAP_SM_SHIFT …
#define MAC_SM_TX_REQ_MASK …
#define MAC_SM_TX_REQ_SHIFT …
#define MAC_SM_TX_FC_MASK …
#define MAC_SM_TX_FC_SHIFT …
#define MAC_SM_FIFO_WRITE_SEL_MASK …
#define MAC_SM_FIFO_WRITE_SEL_SHIFT …
#define MAC_SM_TX_FIFO_EMPTY_MASK …
#define MAC_SM_TX_FIFO_EMPTY_SHIFT …
#define REG_MIF_BIT_BANG_CLOCK …
#define REG_MIF_BIT_BANG_DATA …
#define REG_MIF_BIT_BANG_OUTPUT_EN …
#define REG_MIF_FRAME …
#define MIF_FRAME_START_MASK …
#define MIF_FRAME_ST …
#define MIF_FRAME_OPCODE_MASK …
#define MIF_FRAME_OP_READ …
#define MIF_FRAME_OP_WRITE …
#define MIF_FRAME_PHY_ADDR_MASK …
#define MIF_FRAME_PHY_ADDR_SHIFT …
#define MIF_FRAME_REG_ADDR_MASK …
#define MIF_FRAME_REG_ADDR_SHIFT …
#define MIF_FRAME_TURN_AROUND_MSB …
#define MIF_FRAME_TURN_AROUND_LSB …
#define MIF_FRAME_DATA_MASK …
#define REG_MIF_CFG …
#define MIF_CFG_PHY_SELECT …
#define MIF_CFG_POLL_EN …
#define MIF_CFG_BB_MODE …
#define MIF_CFG_POLL_REG_MASK …
#define MIF_CFG_POLL_REG_SHIFT …
#define MIF_CFG_MDIO_0 …
#define MIF_CFG_MDIO_1 …
#define MIF_CFG_POLL_PHY_MASK …
#define MIF_CFG_POLL_PHY_SHIFT …
#define REG_MIF_MASK …
#define REG_MIF_STATUS …
#define MIF_STATUS_POLL_DATA_MASK …
#define MIF_STATUS_POLL_DATA_SHIFT …
#define MIF_STATUS_POLL_STATUS_MASK …
#define MIF_STATUS_POLL_STATUS_SHIFT …
#define REG_MIF_STATE_MACHINE …
#define MIF_SM_CONTROL_MASK …
#define MIF_SM_EXECUTION_MASK …
#define REG_PCS_MII_CTRL …
#define PCS_MII_CTRL_1000_SEL …
#define PCS_MII_CTRL_COLLISION_TEST …
#define PCS_MII_CTRL_DUPLEX …
#define PCS_MII_RESTART_AUTONEG …
#define PCS_MII_ISOLATE …
#define PCS_MII_POWER_DOWN …
#define PCS_MII_AUTONEG_EN …
#define PCS_MII_10_100_SEL …
#define PCS_MII_RESET …
#define REG_PCS_MII_STATUS …
#define PCS_MII_STATUS_EXTEND_CAP …
#define PCS_MII_STATUS_JABBER_DETECT …
#define PCS_MII_STATUS_LINK_STATUS …
#define PCS_MII_STATUS_AUTONEG_ABLE …
#define PCS_MII_STATUS_REMOTE_FAULT …
#define PCS_MII_STATUS_AUTONEG_COMP …
#define PCS_MII_STATUS_EXTEND_STATUS …
#define REG_PCS_MII_ADVERT …
#define PCS_MII_ADVERT_FD …
#define PCS_MII_ADVERT_HD …
#define PCS_MII_ADVERT_SYM_PAUSE …
#define PCS_MII_ADVERT_ASYM_PAUSE …
#define PCS_MII_ADVERT_RF_MASK …
#define PCS_MII_ADVERT_ACK …
#define PCS_MII_ADVERT_NEXT_PAGE …
#define REG_PCS_MII_LPA …
#define PCS_MII_LPA_FD …
#define PCS_MII_LPA_HD …
#define PCS_MII_LPA_SYM_PAUSE …
#define PCS_MII_LPA_ASYM_PAUSE …
#define PCS_MII_LPA_RF_MASK …
#define PCS_MII_LPA_ACK …
#define PCS_MII_LPA_NEXT_PAGE …
#define REG_PCS_CFG …
#define PCS_CFG_EN …
#define PCS_CFG_SD_OVERRIDE …
#define PCS_CFG_SD_ACTIVE_LOW …
#define PCS_CFG_JITTER_STUDY_MASK …
#define PCS_CFG_10MS_TIMER_OVERRIDE …
#define REG_PCS_STATE_MACHINE …
#define PCS_SM_TX_STATE_MASK …
#define PCS_SM_RX_STATE_MASK …
#define PCS_SM_WORD_SYNC_STATE_MASK …
#define PCS_SM_SEQ_DETECT_STATE_MASK …
#define PCS_SM_LINK_STATE_MASK …
#define SM_LINK_STATE_UP …
#define PCS_SM_LOSS_LINK_C …
#define PCS_SM_LOSS_LINK_SYNC …
#define PCS_SM_LOSS_SIGNAL_DETECT …
#define PCS_SM_NO_LINK_BREAKLINK …
#define PCS_SM_NO_LINK_SERDES …
#define PCS_SM_NO_LINK_C …
#define PCS_SM_NO_LINK_SYNC …
#define PCS_SM_NO_LINK_WAIT_C …
#define PCS_SM_NO_LINK_NO_IDLE …
#define REG_PCS_INTR_STATUS …
#define PCS_INTR_STATUS_LINK_CHANGE …
#define REG_PCS_DATAPATH_MODE …
#define PCS_DATAPATH_MODE_MII …
#define PCS_DATAPATH_MODE_SERDES …
#define REG_PCS_SERDES_CTRL …
#define PCS_SERDES_CTRL_LOOPBACK …
#define PCS_SERDES_CTRL_SYNCD_EN …
#define PCS_SERDES_CTRL_LOCKREF …
#define REG_PCS_SHARED_OUTPUT_SEL …
#define PCS_SOS_PROM_ADDR_MASK …
#define REG_PCS_SERDES_STATE …
#define PCS_SERDES_STATE_MASK …
#define REG_PCS_PACKET_COUNT …
#define PCS_PACKET_COUNT_TX …
#define PCS_PACKET_COUNT_RX …
#define REG_EXPANSION_ROM_RUN_START …
#define REG_EXPANSION_ROM_RUN_END …
#define REG_SECOND_LOCALBUS_START …
#define REG_SECOND_LOCALBUS_END …
#define REG_ENTROPY_START …
#define REG_ENTROPY_DATA …
#define REG_ENTROPY_STATUS …
#define ENTROPY_STATUS_DRDY …
#define ENTROPY_STATUS_BUSY …
#define ENTROPY_STATUS_CIPHER …
#define ENTROPY_STATUS_BYPASS_MASK …
#define REG_ENTROPY_MODE …
#define ENTROPY_MODE_KEY_MASK …
#define ENTROPY_MODE_ENCRYPT …
#define REG_ENTROPY_RAND_REG …
#define REG_ENTROPY_RESET …
#define ENTROPY_RESET_DES_IO …
#define ENTROPY_RESET_STC_MODE …
#define ENTROPY_RESET_KEY_CACHE …
#define ENTROPY_RESET_IV …
#define REG_ENTROPY_IV …
#define REG_ENTROPY_KEY0 …
#define REG_ENTROPY_KEYN(x) …
#define PHY_LUCENT_B0 …
#define LUCENT_MII_REG …
#define PHY_NS_DP83065 …
#define DP83065_MII_MEM …
#define DP83065_MII_REGD …
#define DP83065_MII_REGE …
#define PHY_BROADCOM_5411 …
#define PHY_BROADCOM_B0 …
#define BROADCOM_MII_REG4 …
#define BROADCOM_MII_REG5 …
#define BROADCOM_MII_REG7 …
#define BROADCOM_MII_REG8 …
#define CAS_MII_ANNPTR …
#define CAS_MII_ANNPRR …
#define CAS_MII_1000_CTRL …
#define CAS_MII_1000_STATUS …
#define CAS_MII_1000_EXTEND …
#define CAS_BMSR_1000_EXTEND …
#define CAS_BMCR_SPEED1000 …
#define CAS_ADVERTISE_1000HALF …
#define CAS_ADVERTISE_1000FULL …
#define CAS_ADVERTISE_PAUSE …
#define CAS_ADVERTISE_ASYM_PAUSE …
#define CAS_LPA_PAUSE …
#define CAS_LPA_ASYM_PAUSE …
#define CAS_LPA_1000HALF …
#define CAS_LPA_1000FULL …
#define CAS_EXTEND_1000XFULL …
#define CAS_EXTEND_1000XHALF …
#define CAS_EXTEND_1000TFULL …
#define CAS_EXTEND_1000THALF …
cas_hp_inst_t;
#define OP_EQ …
#define OP_LT …
#define OP_GT …
#define OP_NP …
#define CL_REG …
#define LD_FID …
#define LD_SEQ …
#define LD_CTL …
#define LD_SAP …
#define LD_R1 …
#define LD_L3 …
#define LD_SUM …
#define LD_HDR …
#define IM_FID …
#define IM_SEQ …
#define IM_SAP …
#define IM_R1 …
#define IM_CTL …
#define LD_LEN …
#define ST_FLG …
#define S1_PCKT …
#define S1_VLAN …
#define S1_CFI …
#define S1_8023 …
#define S1_LLC …
#define S1_LLCc …
#define S1_IPV4 …
#define S1_IPV4c …
#define S1_IPV4F …
#define S1_TCP44 …
#define S1_IPV6 …
#define S1_IPV6L …
#define S1_IPV6c …
#define S1_TCP64 …
#define S1_TCPSQ …
#define S1_TCPFG …
#define S1_TCPHL …
#define S1_TCPHc …
#define S1_CLNP …
#define S1_CLNP2 …
#define S1_DROP …
#define S2_HTTP …
#define S1_ESP4 …
#define S1_AH4 …
#define S1_ESP6 …
#define S1_AH6 …
#define CAS_PROG_IP46TCP4_PREAMBLE …
#ifdef USE_HP_IP46TCP4
static cas_hp_inst_t cas_prog_ip46tcp4tab[] = {
CAS_PROG_IP46TCP4_PREAMBLE,
{ "TCP seq",
0x0000, 0x0000, OP_EQ, 0, S1_TCPFG, 4, S1_TCPFG, LD_SEQ,
0x081, 3, 0x0, 0xffff},
{ "TCP control flags", 0x0000, 0x0000, OP_EQ, 0, S1_TCPHL, 0,
S1_TCPHL, ST_FLG, 0x045, 3, 0x0, 0x002f},
{ "TCP length", 0x0000, 0x0000, OP_EQ, 0, S1_TCPHc, 0,
S1_TCPHc, LD_R1, 0x205, 3, 0xB, 0xf000},
{ "TCP length cont", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0,
S1_PCKT, LD_HDR, 0x0ff, 3, 0x0, 0xffff},
{ "Cleanup", 0x0000, 0x0000, OP_EQ, 0, S1_CLNP2, 0, S1_CLNP2,
IM_CTL, 0x001, 3, 0x0, 0x0001},
{ "Cleanup 2", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x000, 0, 0x0, 0x0000},
{ "Drop packet", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x080, 3, 0x0, 0xffff},
{ NULL },
};
#ifdef HP_IP46TCP4_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#endif
#ifdef USE_HP_IP46TCP4NOHTTP
static cas_hp_inst_t cas_prog_ip46tcp4nohttptab[] = {
CAS_PROG_IP46TCP4_PREAMBLE,
{ "TCP seq",
0xFFFF, 0x0080, OP_EQ, 0, S2_HTTP, 0, S1_TCPFG, LD_SEQ,
0x081, 3, 0x0, 0xffff} ,
{ "TCP control flags", 0xFFFF, 0x8080, OP_EQ, 0, S2_HTTP, 0,
S1_TCPHL, ST_FLG, 0x145, 2, 0x0, 0x002f, },
{ "TCP length", 0x0000, 0x0000, OP_EQ, 0, S1_TCPHc, 0, S1_TCPHc,
LD_R1, 0x205, 3, 0xB, 0xf000},
{ "TCP length cont", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
LD_HDR, 0x0ff, 3, 0x0, 0xffff},
{ "Cleanup", 0x0000, 0x0000, OP_EQ, 0, S1_CLNP2, 0, S1_CLNP2,
IM_CTL, 0x001, 3, 0x0, 0x0001},
{ "Cleanup 2", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
CL_REG, 0x002, 3, 0x0, 0x0000},
{ "Drop packet", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x080, 3, 0x0, 0xffff},
{ "No HTTP", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x044, 3, 0x0, 0xffff},
{ NULL },
};
#ifdef HP_IP46TCP4NOHTTP_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#endif
#define S3_IPV6c …
#define S3_TCP64 …
#define S3_TCPSQ …
#define S3_TCPFG …
#define S3_TCPHL …
#define S3_TCPHc …
#define S3_FRAG …
#define S3_FOFF …
#define S3_CLNP …
#ifdef USE_HP_IP4FRAG
static cas_hp_inst_t cas_prog_ip4fragtab[] = {
{ "packet arrival?", 0xffff, 0x0000, OP_NP, 6, S1_VLAN, 0, S1_PCKT,
CL_REG, 0x3ff, 1, 0x0, 0x0000},
{ "VLAN?", 0xffff, 0x8100, OP_EQ, 1, S1_CFI, 0, S1_8023,
IM_CTL, 0x00a, 3, 0x0, 0xffff},
{ "CFI?", 0x1000, 0x1000, OP_EQ, 0, S3_CLNP, 1, S1_8023,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "8023?", 0xffff, 0x0600, OP_LT, 1, S1_LLC, 0, S1_IPV4,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "LLC?", 0xffff, 0xaaaa, OP_EQ, 1, S1_LLCc, 0, S3_CLNP,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "LLCc?",0xff00, 0x0300, OP_EQ, 2, S1_IPV4, 0, S3_CLNP,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "IPV4?", 0xffff, 0x0800, OP_EQ, 1, S1_IPV4c, 0, S1_IPV6,
LD_SAP, 0x100, 3, 0x0, 0xffff},
{ "IPV4 cont?", 0xff00, 0x4500, OP_EQ, 3, S1_IPV4F, 0, S3_CLNP,
LD_SUM, 0x00a, 1, 0x0, 0x0000},
{ "IPV4 frag?", 0x3fff, 0x0000, OP_EQ, 1, S1_TCP44, 0, S3_FRAG,
LD_LEN, 0x03e, 3, 0x0, 0xffff},
{ "TCP44?", 0x00ff, 0x0006, OP_EQ, 7, S3_TCPSQ, 0, S3_CLNP,
LD_FID, 0x182, 3, 0x0, 0xffff},
{ "IPV6?", 0xffff, 0x86dd, OP_EQ, 1, S3_IPV6c, 0, S3_CLNP,
LD_SUM, 0x015, 1, 0x0, 0x0000},
{ "IPV6 cont?", 0xf000, 0x6000, OP_EQ, 3, S3_TCP64, 0, S3_CLNP,
LD_FID, 0x484, 1, 0x0, 0xffff},
{ "TCP64?", 0xff00, 0x0600, OP_EQ, 18, S3_TCPSQ, 0, S3_CLNP,
LD_LEN, 0x03f, 1, 0x0, 0xffff},
{ "TCP seq",
0x0000, 0x0000, OP_EQ, 0, S3_TCPFG, 4, S3_TCPFG, LD_SEQ,
0x081, 3, 0x0, 0xffff},
{ "TCP control flags", 0x0000, 0x0000, OP_EQ, 0, S3_TCPHL, 0,
S3_TCPHL, ST_FLG, 0x045, 3, 0x0, 0x002f},
{ "TCP length", 0x0000, 0x0000, OP_EQ, 0, S3_TCPHc, 0, S3_TCPHc,
LD_R1, 0x205, 3, 0xB, 0xf000},
{ "TCP length cont", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
LD_HDR, 0x0ff, 3, 0x0, 0xffff},
{ "IP4 Fragment", 0x0000, 0x0000, OP_EQ, 0, S3_FOFF, 0, S3_FOFF,
LD_FID, 0x103, 3, 0x0, 0xffff},
{ "IP4 frag offset", 0x0000, 0x0000, OP_EQ, 0, S3_FOFF, 0, S3_FOFF,
LD_SEQ, 0x040, 1, 0xD, 0xfff8},
{ "Cleanup", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x001, 3, 0x0, 0x0001},
{ NULL },
};
#ifdef HP_IP4FRAG_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#endif
#ifdef USE_HP_IP46TCP4BATCH
static cas_hp_inst_t cas_prog_ip46tcp4batchtab[] = {
CAS_PROG_IP46TCP4_PREAMBLE,
{ "TCP seq",
0x0000, 0x0000, OP_EQ, 0, S1_TCPFG, 0, S1_TCPFG, LD_SEQ,
0x081, 3, 0x0, 0xffff},
{ "TCP control flags", 0x0000, 0x0000, OP_EQ, 0, S1_TCPHL, 0,
S1_TCPHL, ST_FLG, 0x000, 3, 0x0, 0x0000},
{ "TCP length", 0x0000, 0x0000, OP_EQ, 0, S1_TCPHc, 0,
S1_TCPHc, LD_R1, 0x205, 3, 0xB, 0xf000},
{ "TCP length cont", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0,
S1_PCKT, IM_CTL, 0x040, 3, 0x0, 0xffff},
{ "Cleanup", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x001, 3, 0x0, 0x0001},
{ "Drop packet", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0,
S1_PCKT, IM_CTL, 0x080, 3, 0x0, 0xffff},
{ NULL },
};
#ifdef HP_IP46TCP4BATCH_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#endif
#ifdef USE_HP_WORKAROUND
static cas_hp_inst_t cas_prog_workaroundtab[] = …;
#ifdef HP_WORKAROUND_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#endif
#ifdef USE_HP_ENCRYPT
static cas_hp_inst_t cas_prog_encryptiontab[] = {
{ "packet arrival?", 0xffff, 0x0000, OP_NP, 6, S1_VLAN, 0,
S1_PCKT, CL_REG, 0x3ff, 1, 0x0, 0x0000},
{ "VLAN?", 0xffff, 0x8100, OP_EQ, 1, S1_CFI, 0, S1_8023,
IM_CTL, 0x00a, 3, 0x0, 0xffff},
#if 0
00,
#endif
{ "CFI?",
0x1000, 0x1000, OP_EQ, 0, S1_CLNP, 1, S1_8023,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "8023?", 0xffff, 0x0600, OP_LT, 1, S1_LLC, 0, S1_IPV4,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "LLC?", 0xffff, 0xaaaa, OP_EQ, 1, S1_LLCc, 0, S1_CLNP,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "LLCc?", 0xff00, 0x0300, OP_EQ, 2, S1_IPV4, 0, S1_CLNP,
CL_REG, 0x000, 0, 0x0, 0x0000},
{ "IPV4?", 0xffff, 0x0800, OP_EQ, 1, S1_IPV4c, 0, S1_IPV6,
LD_SAP, 0x100, 3, 0x0, 0xffff},
{ "IPV4 cont?", 0xff00, 0x4500, OP_EQ, 3, S1_IPV4F, 0, S1_CLNP,
LD_SUM, 0x00a, 1, 0x0, 0x0000},
{ "IPV4 frag?", 0x3fff, 0x0000, OP_EQ, 1, S1_TCP44, 0, S1_CLNP,
LD_LEN, 0x03e, 1, 0x0, 0xffff},
{ "TCP44?", 0x00ff, 0x0006, OP_EQ, 7, S1_TCPSQ, 0, S1_ESP4,
LD_FID, 0x182, 1, 0x0, 0xffff},
{ "IPV6?", 0xffff, 0x86dd, OP_EQ, 1, S1_IPV6L, 0, S1_CLNP,
LD_SUM, 0x015, 1, 0x0, 0x0000},
{ "IPV6 len", 0xf000, 0x6000, OP_EQ, 0, S1_IPV6c, 0, S1_CLNP,
IM_R1, 0x128, 1, 0x0, 0xffff},
{ "IPV6 cont?", 0x0000, 0x0000, OP_EQ, 3, S1_TCP64, 0, S1_CLNP,
LD_FID, 0x484, 1, 0x0, 0xffff},
{ "TCP64?",
#if 0
#endif
0xff00, 0x0600, OP_EQ, 12, S1_TCPSQ, 0, S1_ESP6, LD_LEN,
0x03f, 1, 0x0, 0xffff},
{ "TCP seq",
0xFFFF, 0x0080, OP_EQ, 0, S2_HTTP, 0, S1_TCPFG, LD_SEQ,
0x081, 3, 0x0, 0xffff},
{ "TCP control flags", 0xFFFF, 0x8080, OP_EQ, 0, S2_HTTP, 0,
S1_TCPHL, ST_FLG, 0x145, 2, 0x0, 0x002f},
{ "TCP length", 0x0000, 0x0000, OP_EQ, 0, S1_TCPHc, 0, S1_TCPHc,
LD_R1, 0x205, 3, 0xB, 0xf000} ,
{ "TCP length cont", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0,
S1_PCKT, LD_HDR, 0x0ff, 3, 0x0, 0xffff},
{ "Cleanup", 0x0000, 0x0000, OP_EQ, 0, S1_CLNP2, 0, S1_CLNP2,
IM_CTL, 0x001, 3, 0x0, 0x0001},
{ "Cleanup 2", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
CL_REG, 0x002, 3, 0x0, 0x0000},
{ "Drop packet", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x080, 3, 0x0, 0xffff},
{ "No HTTP", 0x0000, 0x0000, OP_EQ, 0, S1_PCKT, 0, S1_PCKT,
IM_CTL, 0x044, 3, 0x0, 0xffff},
{ "IPV4 ESP encrypted?",
0x00ff, 0x0032, OP_EQ, 0, S1_CLNP2, 0, S1_AH4, IM_CTL,
0x021, 1, 0x0, 0xffff},
{ "IPV4 AH encrypted?",
0x00ff, 0x0033, OP_EQ, 0, S1_CLNP2, 0, S1_CLNP, IM_CTL,
0x021, 1, 0x0, 0xffff},
{ "IPV6 ESP encrypted?",
#if 0
#endif
0xff00, 0x3200, OP_EQ, 0, S1_CLNP2, 0, S1_AH6, IM_CTL,
0x021, 1, 0x0, 0xffff},
{ "IPV6 AH encrypted?",
#if 0
#endif
0xff00, 0x3300, OP_EQ, 0, S1_CLNP2, 0, S1_CLNP, IM_CTL,
0x021, 1, 0x0, 0xffff},
{ NULL },
};
#ifdef HP_ENCRYPT_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#endif
static cas_hp_inst_t cas_prog_null[] = …;
#ifdef HP_NULL_DEFAULT
#define CAS_HP_FIRMWARE …
#endif
#define CAS_PHY_UNKNOWN …
#define CAS_PHY_SERDES …
#define CAS_PHY_MII_MDIO0 …
#define CAS_PHY_MII_MDIO1 …
#define CAS_PHY_MII(x) …
#define DESC_RING_I_TO_S(x) …
#define COMP_RING_I_TO_S(x) …
#define TX_DESC_RING_INDEX …
#define RX_DESC_RING_INDEX …
#define RX_COMP_RING_INDEX …
#if (TX_DESC_RING_INDEX > 8) || (TX_DESC_RING_INDEX < 0)
#error TX_DESC_RING_INDEX must be between 0 and 8
#endif
#if (RX_DESC_RING_INDEX > 8) || (RX_DESC_RING_INDEX < 0)
#error RX_DESC_RING_INDEX must be between 0 and 8
#endif
#if (RX_COMP_RING_INDEX > 8) || (RX_COMP_RING_INDEX < 0)
#error RX_COMP_RING_INDEX must be between 0 and 8
#endif
#define N_TX_RINGS …
#define N_TX_RINGS_MASK …
#define N_RX_DESC_RINGS …
#define N_RX_COMP_RINGS …
#define N_RX_FLOWS …
#define TX_DESC_RING_SIZE …
#define RX_DESC_RING_SIZE …
#define RX_COMP_RING_SIZE …
#define TX_DESC_RINGN_INDEX(x) …
#define RX_DESC_RINGN_INDEX(x) …
#define RX_COMP_RINGN_INDEX(x) …
#define TX_DESC_RINGN_SIZE(x) …
#define RX_DESC_RINGN_SIZE(x) …
#define RX_COMP_RINGN_SIZE(x) …
#define CAS_BASE(x, y) …
#define CAS_VAL(x, y) …
#define CAS_TX_RINGN_BASE(y) …
#define CAS_MIN_PAGE_SHIFT …
#define CAS_JUMBO_PAGE_SHIFT …
#define CAS_MAX_PAGE_SHIFT …
#define TX_DESC_BUFLEN_MASK …
#define TX_DESC_BUFLEN_SHIFT …
#define TX_DESC_CSUM_START_MASK …
#define TX_DESC_CSUM_START_SHIFT …
#define TX_DESC_CSUM_STUFF_MASK …
#define TX_DESC_CSUM_STUFF_SHIFT …
#define TX_DESC_CSUM_EN …
#define TX_DESC_EOF …
#define TX_DESC_SOF …
#define TX_DESC_INTME …
#define TX_DESC_NO_CRC …
struct cas_tx_desc { … };
struct cas_rx_desc { … };
#define RX_COMP1_DATA_SIZE_MASK …
#define RX_COMP1_DATA_SIZE_SHIFT …
#define RX_COMP1_DATA_OFF_MASK …
#define RX_COMP1_DATA_OFF_SHIFT …
#define RX_COMP1_DATA_INDEX_MASK …
#define RX_COMP1_DATA_INDEX_SHIFT …
#define RX_COMP1_SKIP_MASK …
#define RX_COMP1_SKIP_SHIFT …
#define RX_COMP1_RELEASE_NEXT …
#define RX_COMP1_SPLIT_PKT …
#define RX_COMP1_RELEASE_FLOW …
#define RX_COMP1_RELEASE_DATA …
#define RX_COMP1_RELEASE_HDR …
#define RX_COMP1_TYPE_MASK …
#define RX_COMP1_TYPE_SHIFT …
#define RX_COMP2_NEXT_INDEX_MASK …
#define RX_COMP2_NEXT_INDEX_SHIFT …
#define RX_COMP2_HDR_SIZE_MASK …
#define RX_COMP2_HDR_SIZE_SHIFT …
#define RX_COMP2_HDR_OFF_MASK …
#define RX_COMP2_HDR_OFF_SHIFT …
#define RX_COMP2_HDR_INDEX_MASK …
#define RX_COMP2_HDR_INDEX_SHIFT …
#define RX_COMP3_SMALL_PKT …
#define RX_COMP3_JUMBO_PKT …
#define RX_COMP3_JUMBO_HDR_SPLIT_EN …
#define RX_COMP3_CSUM_START_MASK …
#define RX_COMP3_CSUM_START_SHIFT …
#define RX_COMP3_FLOWID_MASK …
#define RX_COMP3_FLOWID_SHIFT …
#define RX_COMP3_OPCODE_MASK …
#define RX_COMP3_OPCODE_SHIFT …
#define RX_COMP3_FORCE_FLAG …
#define RX_COMP3_NO_ASSIST …
#define RX_COMP3_LOAD_BAL_MASK …
#define RX_COMP3_LOAD_BAL_SHIFT …
#define RX_PLUS_COMP3_ENC_PKT …
#define RX_COMP3_L3_HEAD_OFF_MASK …
#define RX_COMP3_L3_HEAD_OFF_SHIFT …
#define RX_PLUS_COMP_L3_HEAD_OFF_MASK …
#define RX_PLUS_COMP_L3_HEAD_OFF_SHIFT …
#define RX_COMP3_SAP_MASK …
#define RX_COMP3_SAP_SHIFT …
#define RX_COMP4_TCP_CSUM_MASK …
#define RX_COMP4_TCP_CSUM_SHIFT …
#define RX_COMP4_PKT_LEN_MASK …
#define RX_COMP4_PKT_LEN_SHIFT …
#define RX_COMP4_PERFECT_MATCH_MASK …
#define RX_COMP4_PERFECT_MATCH_SHIFT …
#define RX_COMP4_ZERO …
#define RX_COMP4_HASH_VAL_MASK …
#define RX_COMP4_HASH_VAL_SHIFT …
#define RX_COMP4_HASH_PASS …
#define RX_COMP4_BAD …
#define RX_COMP4_LEN_MISMATCH …
#define RX_INDEX_NUM_MASK …
#define RX_INDEX_NUM_SHIFT …
#define RX_INDEX_RING_MASK …
#define RX_INDEX_RING_SHIFT …
#define RX_INDEX_RELEASE …
struct cas_rx_comp { … };
enum link_state { … };
cas_page_t;
#define INIT_BLOCK_TX …
#define INIT_BLOCK_RX_DESC …
#define INIT_BLOCK_RX_COMP …
struct cas_init_block { … };
#define TX_TINY_BUF_LEN …
#define TX_TINY_BUF_BLOCK …
struct cas_tiny_count { … };
struct cas { … };
#define TX_DESC_NEXT(r, x) …
#define RX_DESC_ENTRY(r, x) …
#define RX_COMP_ENTRY(r, x) …
#define TX_BUFF_COUNT(r, x, y) …
#define TX_BUFFS_AVAIL(cp, i) …
#define CAS_ALIGN(addr, align) …
#define RX_FIFO_SIZE …
#define EXPANSION_ROM_SIZE …
#define CAS_MC_EXACT_MATCH_SIZE …
#define CAS_MC_HASH_SIZE …
#define CAS_MC_HASH_MAX …
#define TX_TARGET_ABORT_LEN …
#define RX_SWIVEL_OFF_VAL …
#define RX_AE_FREEN_VAL(x) …
#define RX_AE_COMP_VAL …
#define RX_BLANK_INTR_PKT_VAL …
#define RX_BLANK_INTR_TIME_VAL …
#define HP_TCP_THRESH_VAL …
#define RX_SPARE_COUNT …
#define RX_SPARE_RECOVER_VAL …
#endif