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

Go to the source code of this file.

Data Structures

struct  he_irq
 
struct  he_tpd
 
struct  he_tbrq
 
struct  he_rbrq
 
struct  he_tpdrq
 
struct  he_hsp
 
struct  he_hsp::he_hsp_entry
 
struct  he_rbp
 
struct  he_buff
 
struct  he_vcc_table
 
struct  he_cs_stper
 
struct  he_dev
 
struct  he_vcc
 

Macros

#define DEV_LABEL   "he"
 
#define CONFIG_DEFAULT_VCIBITS   12
 
#define CONFIG_DEFAULT_VPIBITS   0
 
#define CONFIG_IRQ_SIZE   128
 
#define CONFIG_IRQ_THRESH   (CONFIG_IRQ_SIZE/2)
 
#define CONFIG_TPDRQ_SIZE   512
 
#define TPDRQ_MASK(x)   (((unsigned long)(x))&((CONFIG_TPDRQ_SIZE<<3)-1))
 
#define CONFIG_RBRQ_SIZE   512
 
#define CONFIG_RBRQ_THRESH   400
 
#define RBRQ_MASK(x)   (((unsigned long)(x))&((CONFIG_RBRQ_SIZE<<3)-1))
 
#define CONFIG_TBRQ_SIZE   512
 
#define CONFIG_TBRQ_THRESH   400
 
#define TBRQ_MASK(x)   (((unsigned long)(x))&((CONFIG_TBRQ_SIZE<<2)-1))
 
#define CONFIG_RBPL_SIZE   512
 
#define CONFIG_RBPL_THRESH   64
 
#define CONFIG_RBPL_BUFSIZE   4096
 
#define RBPL_MASK(x)   (((unsigned long)(x))&((CONFIG_RBPL_SIZE<<3)-1))
 
#define CONFIG_RSRA   0x00000
 
#define CONFIG_RCMLBM   0x08000
 
#define CONFIG_RCMABR   0x0d800
 
#define CONFIG_RSRB   0x0e000
 
#define CONFIG_TSRA   0x00000
 
#define CONFIG_TSRB   0x08000
 
#define CONFIG_TSRC   0x0c000
 
#define CONFIG_TSRD   0x0e000
 
#define CONFIG_TMABR   0x0f000
 
#define CONFIG_TPDBA   0x10000
 
#define HE_MAXCIDBITS   12
 
#define IRQ_ALIGNMENT   0x1000
 
#define NEXT_ENTRY(base, tail, mask)   (((unsigned long)base)|(((unsigned long)(tail+1))&mask))
 
#define ITYPE_INVALID   0xffffffff
 
#define ITYPE_TBRQ_THRESH   (0<<3)
 
#define ITYPE_TPD_COMPLETE   (1<<3)
 
#define ITYPE_RBPS_THRESH   (2<<3)
 
#define ITYPE_RBPL_THRESH   (3<<3)
 
#define ITYPE_RBRQ_THRESH   (4<<3)
 
#define ITYPE_RBRQ_TIMER   (5<<3)
 
#define ITYPE_PHY   (6<<3)
 
#define ITYPE_OTHER   0x80
 
#define ITYPE_PARITY   0x81
 
#define ITYPE_ABORT   0x82
 
#define ITYPE_GROUP(x)   (x & 0x7)
 
#define ITYPE_TYPE(x)   (x & 0xf8)
 
#define HE_NUM_GROUPS   8
 
#define TPD_MAXIOV   3
 
#define address0   iovec[0].addr
 
#define length0   iovec[0].len
 
#define TPD_ALIGNMENT   64
 
#define TPD_LEN_MASK   0xffff
 
#define TPD_ADDR_SHIFT   6
 
#define TPD_MASK   0xffffffc0
 
#define TPD_ADDR(x)   ((x) & TPD_MASK)
 
#define TPD_INDEX(x)   (TPD_ADDR(x) >> TPD_ADDR_SHIFT)
 
#define TBRQ_ALIGNMENT   CONFIG_TBRQ_SIZE
 
#define TBRQ_TPD(tbrq)   ((tbrq)->tbre & 0xffffffc0)
 
#define TBRQ_EOS(tbrq)   ((tbrq)->tbre & (1<<3))
 
#define TBRQ_MULTIPLE(tbrq)   ((tbrq)->tbre & (1))
 
#define RBRQ_ALIGNMENT   CONFIG_RBRQ_SIZE
 
#define RBRQ_ADDR(rbrq)   ((rbrq)->addr & 0xffffffc0)
 
#define RBRQ_CRC_ERR(rbrq)   ((rbrq)->addr & (1<<5))
 
#define RBRQ_LEN_ERR(rbrq)   ((rbrq)->addr & (1<<4))
 
#define RBRQ_END_PDU(rbrq)   ((rbrq)->addr & (1<<3))
 
#define RBRQ_AAL5_PROT(rbrq)   ((rbrq)->addr & (1<<2))
 
#define RBRQ_CON_CLOSED(rbrq)   ((rbrq)->addr & (1<<1))
 
#define RBRQ_HBUF_ERR(rbrq)   ((rbrq)->addr & 1)
 
#define RBRQ_CID(rbrq)   (((rbrq)->cidlen >> 16) & 0x1fff)
 
#define RBRQ_BUFLEN(rbrq)   ((rbrq)->cidlen & 0xffff)
 
#define TPDRQ_ALIGNMENT   CONFIG_TPDRQ_SIZE
 
#define HSP_ALIGNMENT   0x400 /* must align on 1k boundary */
 
#define RBP_IDX_OFFSET   6
 
#define RBPL_TABLE_SIZE   (CONFIG_RBPL_SIZE + 16 + 2)
 
#define HE_LOOKUP_VCC(dev, cid)   ((dev)->he_vcc_table[(cid)].vcc)
 
#define HE_NUM_CS_STPER   16
 
#define HE_MAXIOV   20
 
#define HE_VCC(vcc)   ((struct he_vcc *)(vcc->dev_data))
 
#define PCI_VENDOR_ID_FORE   0x1127
 
#define PCI_DEVICE_ID_FORE_HE   0x400
 
#define GEN_CNTL_0   0x40
 
#define INT_PROC_ENBL   (1<<25)
 
#define SLAVE_ENDIAN_MODE   (1<<16)
 
#define MRL_ENB   (1<<5)
 
#define MRM_ENB   (1<<4)
 
#define INIT_ENB   (1<<2)
 
#define IGNORE_TIMEOUT   (1<<1)
 
#define ENBL_64   (1<<0)
 
#define MIN_PCI_LATENCY   32 /* errata 8.1.3 */
 
#define HE_DEV(dev)   ((struct he_dev *) (dev)->dev_data)
 
#define he_is622(dev)   ((dev)->media & 0x1)
 
#define he_isMM(dev)   ((dev)->media & 0x20)
 
#define HE_REGMAP_SIZE   0x100000
 
#define RESET_CNTL   0x80000
 
#define BOARD_RST_STATUS   (1<<6)
 
#define HOST_CNTL   0x80004
 
#define PCI_BUS_SIZE64   (1<<27)
 
#define DESC_RD_STATIC_64   (1<<26)
 
#define DATA_RD_STATIC_64   (1<<25)
 
#define DATA_WR_STATIC_64   (1<<24)
 
#define ID_CS   (1<<12)
 
#define ID_WREN   (1<<11)
 
#define ID_DOUT   (1<<10)
 
#define ID_DOFFSET   10
 
#define ID_DIN   (1<<9)
 
#define ID_CLOCK   (1<<8)
 
#define QUICK_RD_RETRY   (1<<7)
 
#define QUICK_WR_RETRY   (1<<6)
 
#define OUTFF_ENB   (1<<5)
 
#define CMDFF_ENB   (1<<4)
 
#define PERR_INT_ENB   (1<<2)
 
#define IGNORE_INTR   (1<<0)
 
#define LB_SWAP   0x80008
 
#define SWAP_RNUM_MAX(x)   (x<<27)
 
#define DATA_WR_SWAP   (1<<20)
 
#define DESC_RD_SWAP   (1<<19)
 
#define DATA_RD_SWAP   (1<<18)
 
#define INTR_SWAP   (1<<17)
 
#define DESC_WR_SWAP   (1<<16)
 
#define SDRAM_INIT   (1<<15)
 
#define BIG_ENDIAN_HOST   (1<<14)
 
#define XFER_SIZE   (1<<7)
 
#define LB_MEM_ADDR   0x8000c
 
#define LB_MEM_DATA   0x80010
 
#define LB_MEM_ACCESS   0x80014
 
#define LB_MEM_HNDSHK   (1<<30)
 
#define LM_MEM_WRITE   (0x7)
 
#define LM_MEM_READ   (0x3)
 
#define SDRAM_CTL   0x80018
 
#define LB_64_ENB   (1<<3)
 
#define LB_TWR   (1<<2)
 
#define LB_TRP   (1<<1)
 
#define LB_TRAS   (1<<0)
 
#define INT_FIFO   0x8001c
 
#define INT_MASK_D   (1<<15)
 
#define INT_MASK_C   (1<<14)
 
#define INT_MASK_B   (1<<13)
 
#define INT_MASK_A   (1<<12)
 
#define INT_CLEAR_D   (1<<11)
 
#define INT_CLEAR_C   (1<<10)
 
#define INT_CLEAR_B   (1<<9)
 
#define INT_CLEAR_A   (1<<8)
 
#define ABORT_ADDR   0x80020
 
#define IRQ0_BASE   0x80080
 
#define IRQ_BASE(x)   (x<<12)
 
#define IRQ_MASK   ((CONFIG_IRQ_SIZE<<2)-1) /* was 0x3ff */
 
#define IRQ_TAIL(x)   (((unsigned long)(x)) & IRQ_MASK)
 
#define IRQ0_HEAD   0x80084
 
#define IRQ_SIZE(x)   (x<<22)
 
#define IRQ_THRESH(x)   (x<<12)
 
#define IRQ_HEAD(x)   (x<<2)
 
#define IRQ0_CNTL   0x80088
 
#define IRQ_ADDRSEL(x)   (x<<2)
 
#define IRQ_INT_A   (0<<2)
 
#define IRQ_INT_B   (1<<2)
 
#define IRQ_INT_C   (2<<2)
 
#define IRQ_INT_D   (3<<2)
 
#define IRQ_TYPE_ADDR   0x1
 
#define IRQ_TYPE_LINE   0x0
 
#define IRQ0_DATA   0x8008c
 
#define IRQ1_BASE   0x80090
 
#define IRQ1_HEAD   0x80094
 
#define IRQ1_CNTL   0x80098
 
#define IRQ1_DATA   0x8009c
 
#define IRQ2_BASE   0x800a0
 
#define IRQ2_HEAD   0x800a4
 
#define IRQ2_CNTL   0x800a8
 
#define IRQ2_DATA   0x800ac
 
#define IRQ3_BASE   0x800b0
 
#define IRQ3_HEAD   0x800b4
 
#define IRQ3_CNTL   0x800b8
 
#define IRQ3_DATA   0x800bc
 
#define GRP_10_MAP   0x800c0
 
#define GRP_32_MAP   0x800c4
 
#define GRP_54_MAP   0x800c8
 
#define GRP_76_MAP   0x800cc
 
#define G0_RBPS_S   0x80400
 
#define G0_RBPS_T   0x80404
 
#define RBP_TAIL(x)   ((x)<<3)
 
#define RBP_MASK(x)   ((x)|0x1fff)
 
#define G0_RBPS_QI   0x80408
 
#define RBP_QSIZE(x)   ((x)<<14)
 
#define RBP_INT_ENB   (1<<13)
 
#define RBP_THRESH(x)   (x)
 
#define G0_RBPS_BS   0x8040c
 
#define G0_RBPL_S   0x80410
 
#define G0_RBPL_T   0x80414
 
#define G0_RBPL_QI   0x80418
 
#define G0_RBPL_BS   0x8041c
 
#define G1_RBPS_S   0x80420
 
#define G1_RBPS_T   0x80424
 
#define G1_RBPS_QI   0x80428
 
#define G1_RBPS_BS   0x8042c
 
#define G1_RBPL_S   0x80430
 
#define G1_RBPL_T   0x80434
 
#define G1_RBPL_QI   0x80438
 
#define G1_RBPL_BS   0x8043c
 
#define G2_RBPS_S   0x80440
 
#define G2_RBPS_T   0x80444
 
#define G2_RBPS_QI   0x80448
 
#define G2_RBPS_BS   0x8044c
 
#define G2_RBPL_S   0x80450
 
#define G2_RBPL_T   0x80454
 
#define G2_RBPL_QI   0x80458
 
#define G2_RBPL_BS   0x8045c
 
#define G3_RBPS_S   0x80460
 
#define G3_RBPS_T   0x80464
 
#define G3_RBPS_QI   0x80468
 
#define G3_RBPS_BS   0x8046c
 
#define G3_RBPL_S   0x80470
 
#define G3_RBPL_T   0x80474
 
#define G3_RBPL_QI   0x80478
 
#define G3_RBPL_BS   0x8047c
 
#define G4_RBPS_S   0x80480
 
#define G4_RBPS_T   0x80484
 
#define G4_RBPS_QI   0x80488
 
#define G4_RBPS_BS   0x8048c
 
#define G4_RBPL_S   0x80490
 
#define G4_RBPL_T   0x80494
 
#define G4_RBPL_QI   0x80498
 
#define G4_RBPL_BS   0x8049c
 
#define G5_RBPS_S   0x804a0
 
#define G5_RBPS_T   0x804a4
 
#define G5_RBPS_QI   0x804a8
 
#define G5_RBPS_BS   0x804ac
 
#define G5_RBPL_S   0x804b0
 
#define G5_RBPL_T   0x804b4
 
#define G5_RBPL_QI   0x804b8
 
#define G5_RBPL_BS   0x804bc
 
#define G6_RBPS_S   0x804c0
 
#define G6_RBPS_T   0x804c4
 
#define G6_RBPS_QI   0x804c8
 
#define G6_RBPS_BS   0x804cc
 
#define G6_RBPL_S   0x804d0
 
#define G6_RBPL_T   0x804d4
 
#define G6_RBPL_QI   0x804d8
 
#define G6_RBPL_BS   0x804dc
 
#define G7_RBPS_S   0x804e0
 
#define G7_RBPS_T   0x804e4
 
#define G7_RBPS_QI   0x804e8
 
#define G7_RBPS_BS   0x804ec
 
#define G7_RBPL_S   0x804f0
 
#define G7_RBPL_T   0x804f4
 
#define G7_RBPL_QI   0x804f8
 
#define G7_RBPL_BS   0x804fc
 
#define G0_RBRQ_ST   0x80500
 
#define G0_RBRQ_H   0x80504
 
#define G0_RBRQ_Q   0x80508
 
#define RBRQ_THRESH(x)   ((x)<<13)
 
#define RBRQ_SIZE(x)   (x)
 
#define G0_RBRQ_I   0x8050c
 
#define RBRQ_TIME(x)   ((x)<<8)
 
#define RBRQ_COUNT(x)   (x)
 
#define G0_TBRQ_B_T   0x80600
 
#define G0_TBRQ_H   0x80604
 
#define G0_TBRQ_S   0x80608
 
#define G0_TBRQ_THRESH   0x8060c
 
#define TBRQ_THRESH(x)   (x)
 
#define RH_CONFIG   0x805c0
 
#define PHY_INT_ENB   (1<<10)
 
#define OAM_GID(x)   (x<<7)
 
#define PTMR_PRE(x)   (x)
 
#define G0_INMQ_S   0x80580
 
#define G0_INMQ_L   0x80584
 
#define G1_INMQ_S   0x80588
 
#define G1_INMQ_L   0x8058c
 
#define G2_INMQ_S   0x80590
 
#define G2_INMQ_L   0x80594
 
#define G3_INMQ_S   0x80598
 
#define G3_INMQ_L   0x8059c
 
#define G4_INMQ_S   0x805a0
 
#define G4_INMQ_L   0x805a4
 
#define G5_INMQ_S   0x805a8
 
#define G5_INMQ_L   0x805ac
 
#define G6_INMQ_S   0x805b0
 
#define G6_INMQ_L   0x805b4
 
#define G7_INMQ_S   0x805b8
 
#define G7_INMQ_L   0x805bc
 
#define TPDRQ_B_H   0x80680
 
#define TPDRQ_T   0x80684
 
#define TPDRQ_S   0x80688
 
#define UBUFF_BA   0x8068c
 
#define RLBF0_H   0x806c0
 
#define RLBF0_T   0x806c4
 
#define RLBF1_H   0x806c8
 
#define RLBF1_T   0x806cc
 
#define RLBC_H   0x806d0
 
#define RLBC_T   0x806d4
 
#define RLBC_H2   0x806d8
 
#define TLBF_H   0x806e0
 
#define TLBF_T   0x806e4
 
#define RLBF0_C   0x806e8
 
#define RLBF1_C   0x806ec
 
#define RXTHRSH   0x806f0
 
#define LITHRSH   0x806f4
 
#define LBARB   0x80700
 
#define SLICE_X(x)   (x<<28)
 
#define ARB_RNUM_MAX(x)   (x<<23)
 
#define TH_PRTY(x)   (x<<21)
 
#define RH_PRTY(x)   (x<<19)
 
#define TL_PRTY(x)   (x<<17)
 
#define RL_PRTY(x)   (x<<15)
 
#define BUS_MULTI(x)   (x<<8)
 
#define NET_PREF(x)   (x)
 
#define SDRAMCON   0x80704
 
#define BANK_ON   (1<<14)
 
#define WIDE_DATA   (1<<13)
 
#define TWR_WAIT   (1<<12)
 
#define TRP_WAIT   (1<<11)
 
#define TRAS_WAIT   (1<<10)
 
#define REF_RATE(x)   (x)
 
#define LBSTAT   0x80708
 
#define RCC_STAT   0x8070c
 
#define RCC_BUSY   (1)
 
#define TCMCONFIG   0x80740
 
#define TM_DESL2   (1<<10)
 
#define TM_BANK_WAIT(x)   (x<<6)
 
#define TM_ADD_BANK4(x)   (x<<4)
 
#define TM_PAR_CHECK(x)   (x<<3)
 
#define TM_RW_WAIT(x)   (x<<2)
 
#define TM_SRAM_TYPE(x)   (x)
 
#define TSRB_BA   0x80744
 
#define TSRC_BA   0x80748
 
#define TMABR_BA   0x8074c
 
#define TPD_BA   0x80750
 
#define TSRD_BA   0x80758
 
#define TX_CONFIG   0x80760
 
#define DRF_THRESH(x)   (x<<22)
 
#define TX_UT_MODE(x)   (x<<21)
 
#define TX_VCI_MASK(x)   (x<<17)
 
#define LBFREE_CNT(x)   (x)
 
#define TXAAL5_PROTO   0x80764
 
#define CPCS_UU(x)   (x<<8)
 
#define CPI(x)   (x)
 
#define RCMCONFIG   0x80780
 
#define RM_DESL2(x)   (x<<10)
 
#define RM_BANK_WAIT(x)   (x<<6)
 
#define RM_ADD_BANK(x)   (x<<4)
 
#define RM_PAR_CHECK(x)   (x<<3)
 
#define RM_RW_WAIT(x)   (x<<2)
 
#define RM_SRAM_TYPE(x)   (x)
 
#define RCMRSRB_BA   0x80784
 
#define RCMLBM_BA   0x80788
 
#define RCMABR_BA   0x8078c
 
#define RC_CONFIG   0x807c0
 
#define UT_RD_DELAY(x)   (x<<11)
 
#define WRAP_MODE(x)   (x<<10)
 
#define RC_UT_MODE(x)   (x<<9)
 
#define RX_ENABLE   (1<<8)
 
#define RX_VALVP(x)   (x<<4)
 
#define RX_VALVC(x)   (x)
 
#define MCC   0x807c4
 
#define OEC   0x807c8
 
#define DCC   0x807cc
 
#define CEC   0x807d0
 
#define HSP_BA   0x807f0
 
#define LB_CONFIG   0x807f4
 
#define LB_SIZE(x)   (x)
 
#define CON_DAT   0x807f8
 
#define CON_CTL   0x807fc
 
#define CON_CTL_MBOX   (2<<30)
 
#define CON_CTL_TCM   (1<<30)
 
#define CON_CTL_RCM   (0<<30)
 
#define CON_CTL_WRITE   (1<<29)
 
#define CON_CTL_READ   (0<<29)
 
#define CON_CTL_BUSY   (1<<28)
 
#define CON_BYTE_DISABLE_3   (1<<22) /* 24..31 */
 
#define CON_BYTE_DISABLE_2   (1<<21) /* 16..23 */
 
#define CON_BYTE_DISABLE_1   (1<<20) /* 8..15 */
 
#define CON_BYTE_DISABLE_0   (1<<19) /* 0..7 */
 
#define CON_CTL_ADDR(x)   (x)
 
#define FRAMER   0x80800 /* to 0x80bfc */
 
#define CS_STPER0   0x0
 
#define CS_STPER31   0x01f
 
#define CS_STTIM0   0x020
 
#define CS_STTIM31   0x03f
 
#define CS_TGRLD0   0x040
 
#define CS_TGRLD15   0x04f
 
#define CS_ERTHR0   0x050
 
#define CS_ERTHR1   0x051
 
#define CS_ERTHR2   0x052
 
#define CS_ERTHR3   0x053
 
#define CS_ERTHR4   0x054
 
#define CS_ERCTL0   0x055
 
#define TX_ENABLE   (1<<28)
 
#define ER_ENABLE   (1<<27)
 
#define CS_ERCTL1   0x056
 
#define CS_ERCTL2   0x057
 
#define CS_ERSTAT0   0x058
 
#define CS_ERSTAT1   0x059
 
#define CS_RTCCT   0x060
 
#define CS_RTFWC   0x061
 
#define CS_RTFWR   0x062
 
#define CS_RTFTC   0x063
 
#define CS_RTATR   0x064
 
#define CS_TFBSET   0x070
 
#define CS_TFBADD   0x071
 
#define CS_TFBSUB   0x072
 
#define CS_WCRMAX   0x073
 
#define CS_WCRMIN   0x074
 
#define CS_WCRINC   0x075
 
#define CS_WCRDEC   0x076
 
#define CS_WCRCEIL   0x077
 
#define CS_BWDCNT   0x078
 
#define CS_OTPPER   0x080
 
#define CS_OTWPER   0x081
 
#define CS_OTTLIM   0x082
 
#define CS_OTTCNT   0x083
 
#define CS_HGRRT0   0x090
 
#define CS_HGRRT7   0x097
 
#define CS_ORPTRS   0x0a0
 
#define RXCON_CLOSE   0x100
 
#define RCM_MEM_SIZE   0x10000 /* 1M of 32-bit registers */
 
#define TCM_MEM_SIZE   0x20000 /* 2M of 32-bit registers */
 
#define TSR0_CONN_STATE(x)   ((x>>28) & 0x7)
 
#define TSR0_USE_WMIN   (1<<23)
 
#define TSR0_GROUP(x)   ((x & 0x7)<<18)
 
#define TSR0_ABR   (2<<16)
 
#define TSR0_UBR   (1<<16)
 
#define TSR0_CBR   (0<<16)
 
#define TSR0_PROT   (1<<15)
 
#define TSR0_AAL0_SDU   (2<<12)
 
#define TSR0_AAL0   (1<<12)
 
#define TSR0_AAL5   (0<<12)
 
#define TSR0_HALT_ER   (1<<11)
 
#define TSR0_MARK_CI   (1<<10)
 
#define TSR0_MARK_ER   (1<<9)
 
#define TSR0_UPDATE_GER   (1<<8)
 
#define TSR0_RC_INDEX(x)   (x & 0x1F)
 
#define TSR1_PCR(x)   ((x & 0x7FFF)<<16)
 
#define TSR1_MCR(x)   (x & 0x7FFF)
 
#define TSR2_ACR(x)   ((x & 0x7FFF)<<16)
 
#define TSR3_NRM_CNT(x)   ((x & 0xFF)<<24)
 
#define TSR3_CRM_CNT(x)   (x & 0xFFFF)
 
#define TSR4_FLUSH_CONN   (1<<31)
 
#define TSR4_SESSION_ENDED   (1<<30)
 
#define TSR4_CRC10   (1<<28)
 
#define TSR4_NULL_CRC10   (1<<27)
 
#define TSR4_PROT   (1<<26)
 
#define TSR4_AAL0_SDU   (2<<23)
 
#define TSR4_AAL0   (1<<23)
 
#define TSR4_AAL5   (0<<23)
 
#define TSR9_OPEN_CONN   (1<<20)
 
#define TSR11_ICR(x)   ((x & 0x7FFF)<<16)
 
#define TSR11_TRM(x)   ((x & 0x7)<<13)
 
#define TSR11_NRM(x)   ((x & 0x7)<<10)
 
#define TSR11_ADTF(x)   (x & 0x3FF)
 
#define TSR13_RDF(x)   ((x & 0xF)<<23)
 
#define TSR13_RIF(x)   ((x & 0xF)<<19)
 
#define TSR13_CDF(x)   ((x & 0x7)<<16)
 
#define TSR13_CRM(x)   (x & 0xFFFF)
 
#define TSR14_DELETE   (1<<31)
 
#define TSR14_ABR_CLOSE   (1<<16)
 
#define RSR0_START_PDU   (1<<10)
 
#define RSR0_OPEN_CONN   (1<<6)
 
#define RSR0_CLOSE_CONN   (0<<6)
 
#define RSR0_PPD_ENABLE   (1<<5)
 
#define RSR0_EPD_ENABLE   (1<<4)
 
#define RSR0_TCP_CKSUM   (1<<3)
 
#define RSR0_AAL5   (0)
 
#define RSR0_AAL0   (1)
 
#define RSR0_AAL0_SDU   (2)
 
#define RSR0_RAWCELL   (3)
 
#define RSR0_RAWCELL_CRC10   (4)
 
#define RSR1_AQI_ENABLE   (1<<20)
 
#define RSR1_RBPL_ONLY   (1<<19)
 
#define RSR1_GROUP(x)   ((x)<<16)
 
#define RSR4_AQI_ENABLE   (1<<30)
 
#define RSR4_GROUP(x)   ((x)<<27)
 
#define RSR4_RBPL_ONLY   (1<<26)
 
#define TPD_USERCELL   0x0
 
#define TPD_SEGMENT_OAMF5   0x4
 
#define TPD_END2END_OAMF5   0x5
 
#define TPD_RMCELL   0x6
 
#define TPD_CELLTYPE(x)   (x<<3)
 
#define TPD_EOS   (1<<2)
 
#define TPD_CLP   (1<<1)
 
#define TPD_INT   (1<<0)
 
#define TPD_LST   (1<<31)
 
#define PROD_ID   0x08 /* char[] */
 
#define PROD_ID_LEN   30
 
#define HW_REV   0x26 /* char[] */
 
#define M_SN   0x3a /* integer */
 
#define MEDIA   0x3e /* integer */
 
#define HE155MM   0x26
 
#define HE622MM   0x27
 
#define HE155SM   0x46
 
#define HE622SM   0x47
 
#define MAC_ADDR   0x42 /* char[] */
 
#define CS_LOW   0x0
 
#define CS_HIGH   ID_CS /* HOST_CNTL_ID_PROM_SEL */
 
#define CLK_LOW   0x0
 
#define CLK_HIGH   ID_CLOCK /* HOST_CNTL_ID_PROM_CLOCK */
 
#define SI_HIGH   ID_DIN /* HOST_CNTL_ID_PROM_DATA_IN */
 
#define EEPROM_DELAY   400 /* microseconds */
 

Macro Definition Documentation

#define ABORT_ADDR   0x80020

Definition at line 408 of file he.h.

#define address0   iovec[0].addr

Definition at line 128 of file he.h.

#define ARB_RNUM_MAX (   x)    (x<<23)

Definition at line 590 of file he.h.

#define BANK_ON   (1<<14)

Definition at line 599 of file he.h.

#define BIG_ENDIAN_HOST   (1<<14)

Definition at line 381 of file he.h.

#define BOARD_RST_STATUS   (1<<6)

Definition at line 353 of file he.h.

#define BUS_MULTI (   x)    (x<<8)

Definition at line 595 of file he.h.

#define CEC   0x807d0

Definition at line 658 of file he.h.

#define CLK_HIGH   ID_CLOCK /* HOST_CNTL_ID_PROM_CLOCK */

Definition at line 841 of file he.h.

#define CLK_LOW   0x0

Definition at line 840 of file he.h.

#define CMDFF_ENB   (1<<4)

Definition at line 369 of file he.h.

#define CON_BYTE_DISABLE_0   (1<<19) /* 0..7 */

Definition at line 676 of file he.h.

#define CON_BYTE_DISABLE_1   (1<<20) /* 8..15 */

Definition at line 675 of file he.h.

#define CON_BYTE_DISABLE_2   (1<<21) /* 16..23 */

Definition at line 674 of file he.h.

#define CON_BYTE_DISABLE_3   (1<<22) /* 24..31 */

Definition at line 673 of file he.h.

#define CON_CTL   0x807fc

Definition at line 666 of file he.h.

#define CON_CTL_ADDR (   x)    (x)

Definition at line 677 of file he.h.

#define CON_CTL_BUSY   (1<<28)

Definition at line 672 of file he.h.

#define CON_CTL_MBOX   (2<<30)

Definition at line 667 of file he.h.

#define CON_CTL_RCM   (0<<30)

Definition at line 669 of file he.h.

#define CON_CTL_READ   (0<<29)

Definition at line 671 of file he.h.

#define CON_CTL_TCM   (1<<30)

Definition at line 668 of file he.h.

#define CON_CTL_WRITE   (1<<29)

Definition at line 670 of file he.h.

#define CON_DAT   0x807f8

Definition at line 665 of file he.h.

#define CONFIG_DEFAULT_VCIBITS   12

Definition at line 48 of file he.h.

#define CONFIG_DEFAULT_VPIBITS   0

Definition at line 49 of file he.h.

#define CONFIG_IRQ_SIZE   128

Definition at line 51 of file he.h.

#define CONFIG_IRQ_THRESH   (CONFIG_IRQ_SIZE/2)

Definition at line 52 of file he.h.

#define CONFIG_RBPL_BUFSIZE   4096

Definition at line 67 of file he.h.

#define CONFIG_RBPL_SIZE   512

Definition at line 65 of file he.h.

#define CONFIG_RBPL_THRESH   64

Definition at line 66 of file he.h.

#define CONFIG_RBRQ_SIZE   512

Definition at line 57 of file he.h.

#define CONFIG_RBRQ_THRESH   400

Definition at line 58 of file he.h.

#define CONFIG_RCMABR   0x0d800

Definition at line 74 of file he.h.

#define CONFIG_RCMLBM   0x08000

Definition at line 73 of file he.h.

#define CONFIG_RSRA   0x00000

Definition at line 72 of file he.h.

#define CONFIG_RSRB   0x0e000

Definition at line 75 of file he.h.

#define CONFIG_TBRQ_SIZE   512

Definition at line 61 of file he.h.

#define CONFIG_TBRQ_THRESH   400

Definition at line 62 of file he.h.

#define CONFIG_TMABR   0x0f000

Definition at line 81 of file he.h.

#define CONFIG_TPDBA   0x10000

Definition at line 82 of file he.h.

#define CONFIG_TPDRQ_SIZE   512

Definition at line 54 of file he.h.

#define CONFIG_TSRA   0x00000

Definition at line 77 of file he.h.

#define CONFIG_TSRB   0x08000

Definition at line 78 of file he.h.

#define CONFIG_TSRC   0x0c000

Definition at line 79 of file he.h.

#define CONFIG_TSRD   0x0e000

Definition at line 80 of file he.h.

#define CPCS_UU (   x)    (x<<8)

Definition at line 632 of file he.h.

#define CPI (   x)    (x)

Definition at line 633 of file he.h.

#define CS_BWDCNT   0x078

Definition at line 722 of file he.h.

#define CS_ERCTL0   0x055

Definition at line 700 of file he.h.

#define CS_ERCTL1   0x056

Definition at line 703 of file he.h.

#define CS_ERCTL2   0x057

Definition at line 704 of file he.h.

#define CS_ERSTAT0   0x058

Definition at line 705 of file he.h.

#define CS_ERSTAT1   0x059

Definition at line 706 of file he.h.

#define CS_ERTHR0   0x050

Definition at line 695 of file he.h.

#define CS_ERTHR1   0x051

Definition at line 696 of file he.h.

#define CS_ERTHR2   0x052

Definition at line 697 of file he.h.

#define CS_ERTHR3   0x053

Definition at line 698 of file he.h.

#define CS_ERTHR4   0x054

Definition at line 699 of file he.h.

#define CS_HGRRT0   0x090

Definition at line 729 of file he.h.

#define CS_HGRRT7   0x097

Definition at line 731 of file he.h.

#define CS_HIGH   ID_CS /* HOST_CNTL_ID_PROM_SEL */

Definition at line 839 of file he.h.

#define CS_LOW   0x0

Definition at line 838 of file he.h.

#define CS_ORPTRS   0x0a0

Definition at line 733 of file he.h.

#define CS_OTPPER   0x080

Definition at line 724 of file he.h.

#define CS_OTTCNT   0x083

Definition at line 727 of file he.h.

#define CS_OTTLIM   0x082

Definition at line 726 of file he.h.

#define CS_OTWPER   0x081

Definition at line 725 of file he.h.

#define CS_RTATR   0x064

Definition at line 712 of file he.h.

#define CS_RTCCT   0x060

Definition at line 708 of file he.h.

#define CS_RTFTC   0x063

Definition at line 711 of file he.h.

#define CS_RTFWC   0x061

Definition at line 709 of file he.h.

#define CS_RTFWR   0x062

Definition at line 710 of file he.h.

#define CS_STPER0   0x0

Definition at line 683 of file he.h.

#define CS_STPER31   0x01f

Definition at line 685 of file he.h.

#define CS_STTIM0   0x020

Definition at line 687 of file he.h.

#define CS_STTIM31   0x03f

Definition at line 689 of file he.h.

#define CS_TFBADD   0x071

Definition at line 715 of file he.h.

#define CS_TFBSET   0x070

Definition at line 714 of file he.h.

#define CS_TFBSUB   0x072

Definition at line 716 of file he.h.

#define CS_TGRLD0   0x040

Definition at line 691 of file he.h.

#define CS_TGRLD15   0x04f

Definition at line 693 of file he.h.

#define CS_WCRCEIL   0x077

Definition at line 721 of file he.h.

#define CS_WCRDEC   0x076

Definition at line 720 of file he.h.

#define CS_WCRINC   0x075

Definition at line 719 of file he.h.

#define CS_WCRMAX   0x073

Definition at line 717 of file he.h.

#define CS_WCRMIN   0x074

Definition at line 718 of file he.h.

#define DATA_RD_STATIC_64   (1<<25)

Definition at line 358 of file he.h.

#define DATA_RD_SWAP   (1<<18)

Definition at line 377 of file he.h.

#define DATA_WR_STATIC_64   (1<<24)

Definition at line 359 of file he.h.

#define DATA_WR_SWAP   (1<<20)

Definition at line 375 of file he.h.

#define DCC   0x807cc

Definition at line 657 of file he.h.

#define DESC_RD_STATIC_64   (1<<26)

Definition at line 357 of file he.h.

#define DESC_RD_SWAP   (1<<19)

Definition at line 376 of file he.h.

#define DESC_WR_SWAP   (1<<16)

Definition at line 379 of file he.h.

#define DEV_LABEL   "he"

Definition at line 46 of file he.h.

#define DRF_THRESH (   x)    (x<<22)

Definition at line 626 of file he.h.

#define EEPROM_DELAY   400 /* microseconds */

Definition at line 843 of file he.h.

#define ENBL_64   (1<<0)

Definition at line 341 of file he.h.

#define ER_ENABLE   (1<<27)

Definition at line 702 of file he.h.

#define FRAMER   0x80800 /* to 0x80bfc */

Definition at line 679 of file he.h.

#define G0_INMQ_L   0x80584

Definition at line 552 of file he.h.

#define G0_INMQ_S   0x80580

Definition at line 551 of file he.h.

#define G0_RBPL_BS   0x8041c

Definition at line 461 of file he.h.

#define G0_RBPL_QI   0x80418

Definition at line 460 of file he.h.

#define G0_RBPL_S   0x80410

Definition at line 458 of file he.h.

#define G0_RBPL_T   0x80414

Definition at line 459 of file he.h.

#define G0_RBPS_BS   0x8040c

Definition at line 457 of file he.h.

#define G0_RBPS_QI   0x80408

Definition at line 453 of file he.h.

#define G0_RBPS_S   0x80400

Definition at line 449 of file he.h.

#define G0_RBPS_T   0x80404

Definition at line 450 of file he.h.

#define G0_RBRQ_H   0x80504

Definition at line 528 of file he.h.

#define G0_RBRQ_I   0x8050c

Definition at line 532 of file he.h.

#define G0_RBRQ_Q   0x80508

Definition at line 529 of file he.h.

#define G0_RBRQ_ST   0x80500

Definition at line 527 of file he.h.

#define G0_TBRQ_B_T   0x80600

Definition at line 538 of file he.h.

#define G0_TBRQ_H   0x80604

Definition at line 539 of file he.h.

#define G0_TBRQ_S   0x80608

Definition at line 540 of file he.h.

#define G0_TBRQ_THRESH   0x8060c

Definition at line 541 of file he.h.

#define G1_INMQ_L   0x8058c

Definition at line 554 of file he.h.

#define G1_INMQ_S   0x80588

Definition at line 553 of file he.h.

#define G1_RBPL_BS   0x8043c

Definition at line 470 of file he.h.

#define G1_RBPL_QI   0x80438

Definition at line 469 of file he.h.

#define G1_RBPL_S   0x80430

Definition at line 467 of file he.h.

#define G1_RBPL_T   0x80434

Definition at line 468 of file he.h.

#define G1_RBPS_BS   0x8042c

Definition at line 466 of file he.h.

#define G1_RBPS_QI   0x80428

Definition at line 465 of file he.h.

#define G1_RBPS_S   0x80420

Definition at line 463 of file he.h.

#define G1_RBPS_T   0x80424

Definition at line 464 of file he.h.

#define G2_INMQ_L   0x80594

Definition at line 556 of file he.h.

#define G2_INMQ_S   0x80590

Definition at line 555 of file he.h.

#define G2_RBPL_BS   0x8045c

Definition at line 479 of file he.h.

#define G2_RBPL_QI   0x80458

Definition at line 478 of file he.h.

#define G2_RBPL_S   0x80450

Definition at line 476 of file he.h.

#define G2_RBPL_T   0x80454

Definition at line 477 of file he.h.

#define G2_RBPS_BS   0x8044c

Definition at line 475 of file he.h.

#define G2_RBPS_QI   0x80448

Definition at line 474 of file he.h.

#define G2_RBPS_S   0x80440

Definition at line 472 of file he.h.

#define G2_RBPS_T   0x80444

Definition at line 473 of file he.h.

#define G3_INMQ_L   0x8059c

Definition at line 558 of file he.h.

#define G3_INMQ_S   0x80598

Definition at line 557 of file he.h.

#define G3_RBPL_BS   0x8047c

Definition at line 488 of file he.h.

#define G3_RBPL_QI   0x80478

Definition at line 487 of file he.h.

#define G3_RBPL_S   0x80470

Definition at line 485 of file he.h.

#define G3_RBPL_T   0x80474

Definition at line 486 of file he.h.

#define G3_RBPS_BS   0x8046c

Definition at line 484 of file he.h.

#define G3_RBPS_QI   0x80468

Definition at line 483 of file he.h.

#define G3_RBPS_S   0x80460

Definition at line 481 of file he.h.

#define G3_RBPS_T   0x80464

Definition at line 482 of file he.h.

#define G4_INMQ_L   0x805a4

Definition at line 560 of file he.h.

#define G4_INMQ_S   0x805a0

Definition at line 559 of file he.h.

#define G4_RBPL_BS   0x8049c

Definition at line 497 of file he.h.

#define G4_RBPL_QI   0x80498

Definition at line 496 of file he.h.

#define G4_RBPL_S   0x80490

Definition at line 494 of file he.h.

#define G4_RBPL_T   0x80494

Definition at line 495 of file he.h.

#define G4_RBPS_BS   0x8048c

Definition at line 493 of file he.h.

#define G4_RBPS_QI   0x80488

Definition at line 492 of file he.h.

#define G4_RBPS_S   0x80480

Definition at line 490 of file he.h.

#define G4_RBPS_T   0x80484

Definition at line 491 of file he.h.

#define G5_INMQ_L   0x805ac

Definition at line 562 of file he.h.

#define G5_INMQ_S   0x805a8

Definition at line 561 of file he.h.

#define G5_RBPL_BS   0x804bc

Definition at line 506 of file he.h.

#define G5_RBPL_QI   0x804b8

Definition at line 505 of file he.h.

#define G5_RBPL_S   0x804b0

Definition at line 503 of file he.h.

#define G5_RBPL_T   0x804b4

Definition at line 504 of file he.h.

#define G5_RBPS_BS   0x804ac

Definition at line 502 of file he.h.

#define G5_RBPS_QI   0x804a8

Definition at line 501 of file he.h.

#define G5_RBPS_S   0x804a0

Definition at line 499 of file he.h.

#define G5_RBPS_T   0x804a4

Definition at line 500 of file he.h.

#define G6_INMQ_L   0x805b4

Definition at line 564 of file he.h.

#define G6_INMQ_S   0x805b0

Definition at line 563 of file he.h.

#define G6_RBPL_BS   0x804dc

Definition at line 515 of file he.h.

#define G6_RBPL_QI   0x804d8

Definition at line 514 of file he.h.

#define G6_RBPL_S   0x804d0

Definition at line 512 of file he.h.

#define G6_RBPL_T   0x804d4

Definition at line 513 of file he.h.

#define G6_RBPS_BS   0x804cc

Definition at line 511 of file he.h.

#define G6_RBPS_QI   0x804c8

Definition at line 510 of file he.h.

#define G6_RBPS_S   0x804c0

Definition at line 508 of file he.h.

#define G6_RBPS_T   0x804c4

Definition at line 509 of file he.h.

#define G7_INMQ_L   0x805bc

Definition at line 566 of file he.h.

#define G7_INMQ_S   0x805b8

Definition at line 565 of file he.h.

#define G7_RBPL_BS   0x804fc

Definition at line 525 of file he.h.

#define G7_RBPL_QI   0x804f8

Definition at line 524 of file he.h.

#define G7_RBPL_S   0x804f0

Definition at line 522 of file he.h.

#define G7_RBPL_T   0x804f4

Definition at line 523 of file he.h.

#define G7_RBPS_BS   0x804ec

Definition at line 520 of file he.h.

#define G7_RBPS_QI   0x804e8

Definition at line 519 of file he.h.

#define G7_RBPS_S   0x804e0

Definition at line 517 of file he.h.

#define G7_RBPS_T   0x804e4

Definition at line 518 of file he.h.

#define GEN_CNTL_0   0x40

Definition at line 334 of file he.h.

#define GRP_10_MAP   0x800c0

Definition at line 444 of file he.h.

#define GRP_32_MAP   0x800c4

Definition at line 445 of file he.h.

#define GRP_54_MAP   0x800c8

Definition at line 446 of file he.h.

#define GRP_76_MAP   0x800cc

Definition at line 447 of file he.h.

#define HE155MM   0x26

Definition at line 832 of file he.h.

#define HE155SM   0x46

Definition at line 834 of file he.h.

#define HE622MM   0x27

Definition at line 833 of file he.h.

#define HE622SM   0x47

Definition at line 835 of file he.h.

#define HE_DEV (   dev)    ((struct he_dev *) (dev)->dev_data)

Definition at line 345 of file he.h.

#define he_is622 (   dev)    ((dev)->media & 0x1)

Definition at line 347 of file he.h.

#define he_isMM (   dev)    ((dev)->media & 0x20)

Definition at line 348 of file he.h.

#define HE_LOOKUP_VCC (   dev,
  cid 
)    ((dev)->he_vcc_table[(cid)].vcc)

Definition at line 237 of file he.h.

#define HE_MAXCIDBITS   12

Definition at line 84 of file he.h.

#define HE_MAXIOV   20

Definition at line 317 of file he.h.

#define HE_NUM_CS_STPER   16

Definition at line 250 of file he.h.

#define HE_NUM_GROUPS   8

Definition at line 112 of file he.h.

#define HE_REGMAP_SIZE   0x100000

Definition at line 350 of file he.h.

#define HE_VCC (   vcc)    ((struct he_vcc *)(vcc->dev_data))

Definition at line 329 of file he.h.

#define HOST_CNTL   0x80004

Definition at line 355 of file he.h.

#define HSP_ALIGNMENT   0x400 /* must align on 1k boundary */

Definition at line 190 of file he.h.

#define HSP_BA   0x807f0

Definition at line 660 of file he.h.

#define HW_REV   0x26 /* char[] */

Definition at line 829 of file he.h.

#define ID_CLOCK   (1<<8)

Definition at line 365 of file he.h.

#define ID_CS   (1<<12)

Definition at line 360 of file he.h.

#define ID_DIN   (1<<9)

Definition at line 364 of file he.h.

#define ID_DOFFSET   10

Definition at line 363 of file he.h.

#define ID_DOUT   (1<<10)

Definition at line 362 of file he.h.

#define ID_WREN   (1<<11)

Definition at line 361 of file he.h.

#define IGNORE_INTR   (1<<0)

Definition at line 371 of file he.h.

#define IGNORE_TIMEOUT   (1<<1)

Definition at line 340 of file he.h.

#define INIT_ENB   (1<<2)

Definition at line 339 of file he.h.

#define INT_CLEAR_A   (1<<8)

Definition at line 406 of file he.h.

#define INT_CLEAR_B   (1<<9)

Definition at line 405 of file he.h.

#define INT_CLEAR_C   (1<<10)

Definition at line 404 of file he.h.

#define INT_CLEAR_D   (1<<11)

Definition at line 403 of file he.h.

#define INT_FIFO   0x8001c

Definition at line 398 of file he.h.

#define INT_MASK_A   (1<<12)

Definition at line 402 of file he.h.

#define INT_MASK_B   (1<<13)

Definition at line 401 of file he.h.

#define INT_MASK_C   (1<<14)

Definition at line 400 of file he.h.

#define INT_MASK_D   (1<<15)

Definition at line 399 of file he.h.

#define INT_PROC_ENBL   (1<<25)

Definition at line 335 of file he.h.

#define INTR_SWAP   (1<<17)

Definition at line 378 of file he.h.

#define IRQ0_BASE   0x80080

Definition at line 410 of file he.h.

#define IRQ0_CNTL   0x80088

Definition at line 419 of file he.h.

#define IRQ0_DATA   0x8008c

Definition at line 427 of file he.h.

#define IRQ0_HEAD   0x80084

Definition at line 414 of file he.h.

#define IRQ1_BASE   0x80090

Definition at line 429 of file he.h.

#define IRQ1_CNTL   0x80098

Definition at line 431 of file he.h.

#define IRQ1_DATA   0x8009c

Definition at line 432 of file he.h.

#define IRQ1_HEAD   0x80094

Definition at line 430 of file he.h.

#define IRQ2_BASE   0x800a0

Definition at line 434 of file he.h.

#define IRQ2_CNTL   0x800a8

Definition at line 436 of file he.h.

#define IRQ2_DATA   0x800ac

Definition at line 437 of file he.h.

#define IRQ2_HEAD   0x800a4

Definition at line 435 of file he.h.

#define IRQ3_BASE   0x800b0

Definition at line 439 of file he.h.

#define IRQ3_CNTL   0x800b8

Definition at line 441 of file he.h.

#define IRQ3_DATA   0x800bc

Definition at line 442 of file he.h.

#define IRQ3_HEAD   0x800b4

Definition at line 440 of file he.h.

#define IRQ_ADDRSEL (   x)    (x<<2)

Definition at line 420 of file he.h.

#define IRQ_ALIGNMENT   0x1000

Definition at line 92 of file he.h.

#define IRQ_BASE (   x)    (x<<12)

Definition at line 411 of file he.h.

#define IRQ_HEAD (   x)    (x<<2)

Definition at line 417 of file he.h.

#define IRQ_INT_A   (0<<2)

Definition at line 421 of file he.h.

#define IRQ_INT_B   (1<<2)

Definition at line 422 of file he.h.

#define IRQ_INT_C   (2<<2)

Definition at line 423 of file he.h.

#define IRQ_INT_D   (3<<2)

Definition at line 424 of file he.h.

#define IRQ_MASK   ((CONFIG_IRQ_SIZE<<2)-1) /* was 0x3ff */

Definition at line 412 of file he.h.

#define IRQ_SIZE (   x)    (x<<22)

Definition at line 415 of file he.h.

#define IRQ_TAIL (   x)    (((unsigned long)(x)) & IRQ_MASK)

Definition at line 413 of file he.h.

#define IRQ_THRESH (   x)    (x<<12)

Definition at line 416 of file he.h.

#define IRQ_TYPE_ADDR   0x1

Definition at line 425 of file he.h.

#define IRQ_TYPE_LINE   0x0

Definition at line 426 of file he.h.

#define ITYPE_ABORT   0x82

Definition at line 107 of file he.h.

#define ITYPE_GROUP (   x)    (x & 0x7)

Definition at line 109 of file he.h.

#define ITYPE_INVALID   0xffffffff

Definition at line 97 of file he.h.

#define ITYPE_OTHER   0x80

Definition at line 105 of file he.h.

#define ITYPE_PARITY   0x81

Definition at line 106 of file he.h.

#define ITYPE_PHY   (6<<3)

Definition at line 104 of file he.h.

#define ITYPE_RBPL_THRESH   (3<<3)

Definition at line 101 of file he.h.

#define ITYPE_RBPS_THRESH   (2<<3)

Definition at line 100 of file he.h.

#define ITYPE_RBRQ_THRESH   (4<<3)

Definition at line 102 of file he.h.

#define ITYPE_RBRQ_TIMER   (5<<3)

Definition at line 103 of file he.h.

#define ITYPE_TBRQ_THRESH   (0<<3)

Definition at line 98 of file he.h.

#define ITYPE_TPD_COMPLETE   (1<<3)

Definition at line 99 of file he.h.

#define ITYPE_TYPE (   x)    (x & 0xf8)

Definition at line 110 of file he.h.

#define LB_64_ENB   (1<<3)

Definition at line 393 of file he.h.

#define LB_CONFIG   0x807f4

Definition at line 662 of file he.h.

#define LB_MEM_ACCESS   0x80014

Definition at line 387 of file he.h.

#define LB_MEM_ADDR   0x8000c

Definition at line 384 of file he.h.

#define LB_MEM_DATA   0x80010

Definition at line 385 of file he.h.

#define LB_MEM_HNDSHK   (1<<30)

Definition at line 388 of file he.h.

#define LB_SIZE (   x)    (x)

Definition at line 663 of file he.h.

#define LB_SWAP   0x80008

Definition at line 373 of file he.h.

#define LB_TRAS   (1<<0)

Definition at line 396 of file he.h.

#define LB_TRP   (1<<1)

Definition at line 395 of file he.h.

#define LB_TWR   (1<<2)

Definition at line 394 of file he.h.

#define LBARB   0x80700

Definition at line 588 of file he.h.

#define LBFREE_CNT (   x)    (x)

Definition at line 629 of file he.h.

#define LBSTAT   0x80708

Definition at line 606 of file he.h.

#define length0   iovec[0].len

Definition at line 129 of file he.h.

#define LITHRSH   0x806f4

Definition at line 586 of file he.h.

#define LM_MEM_READ   (0x3)

Definition at line 390 of file he.h.

#define LM_MEM_WRITE   (0x7)

Definition at line 389 of file he.h.

#define M_SN   0x3a /* integer */

Definition at line 830 of file he.h.

#define MAC_ADDR   0x42 /* char[] */

Definition at line 836 of file he.h.

#define MCC   0x807c4

Definition at line 655 of file he.h.

#define MEDIA   0x3e /* integer */

Definition at line 831 of file he.h.

#define MIN_PCI_LATENCY   32 /* errata 8.1.3 */

Definition at line 343 of file he.h.

#define MRL_ENB   (1<<5)

Definition at line 337 of file he.h.

#define MRM_ENB   (1<<4)

Definition at line 338 of file he.h.

#define NET_PREF (   x)    (x)

Definition at line 596 of file he.h.

#define NEXT_ENTRY (   base,
  tail,
  mask 
)    (((unsigned long)base)|(((unsigned long)(tail+1))&mask))

Definition at line 94 of file he.h.

#define OAM_GID (   x)    (x<<7)

Definition at line 548 of file he.h.

#define OEC   0x807c8

Definition at line 656 of file he.h.

#define OUTFF_ENB   (1<<5)

Definition at line 368 of file he.h.

#define PCI_BUS_SIZE64   (1<<27)

Definition at line 356 of file he.h.

#define PCI_DEVICE_ID_FORE_HE   0x400

Definition at line 332 of file he.h.

#define PCI_VENDOR_ID_FORE   0x1127

Definition at line 331 of file he.h.

#define PERR_INT_ENB   (1<<2)

Definition at line 370 of file he.h.

#define PHY_INT_ENB   (1<<10)

Definition at line 547 of file he.h.

#define PROD_ID   0x08 /* char[] */

Definition at line 827 of file he.h.

#define PROD_ID_LEN   30

Definition at line 828 of file he.h.

#define PTMR_PRE (   x)    (x)

Definition at line 549 of file he.h.

#define QUICK_RD_RETRY   (1<<7)

Definition at line 366 of file he.h.

#define QUICK_WR_RETRY   (1<<6)

Definition at line 367 of file he.h.

#define RBP_IDX_OFFSET   6

Definition at line 214 of file he.h.

#define RBP_INT_ENB   (1<<13)

Definition at line 455 of file he.h.

#define RBP_MASK (   x)    ((x)|0x1fff)

Definition at line 452 of file he.h.

#define RBP_QSIZE (   x)    ((x)<<14)

Definition at line 454 of file he.h.

#define RBP_TAIL (   x)    ((x)<<3)

Definition at line 451 of file he.h.

#define RBP_THRESH (   x)    (x)

Definition at line 456 of file he.h.

#define RBPL_MASK (   x)    (((unsigned long)(x))&((CONFIG_RBPL_SIZE<<3)-1))

Definition at line 68 of file he.h.

#define RBPL_TABLE_SIZE   (CONFIG_RBPL_SIZE + 16 + 2)

Definition at line 221 of file he.h.

#define RBRQ_AAL5_PROT (   rbrq)    ((rbrq)->addr & (1<<2))

Definition at line 173 of file he.h.

#define RBRQ_ADDR (   rbrq)    ((rbrq)->addr & 0xffffffc0)

Definition at line 169 of file he.h.

#define RBRQ_ALIGNMENT   CONFIG_RBRQ_SIZE

Definition at line 167 of file he.h.

#define RBRQ_BUFLEN (   rbrq)    ((rbrq)->cidlen & 0xffff)

Definition at line 177 of file he.h.

#define RBRQ_CID (   rbrq)    (((rbrq)->cidlen >> 16) & 0x1fff)

Definition at line 176 of file he.h.

#define RBRQ_CON_CLOSED (   rbrq)    ((rbrq)->addr & (1<<1))

Definition at line 174 of file he.h.

#define RBRQ_COUNT (   x)    (x)

Definition at line 534 of file he.h.

#define RBRQ_CRC_ERR (   rbrq)    ((rbrq)->addr & (1<<5))

Definition at line 170 of file he.h.

#define RBRQ_END_PDU (   rbrq)    ((rbrq)->addr & (1<<3))

Definition at line 172 of file he.h.

#define RBRQ_HBUF_ERR (   rbrq)    ((rbrq)->addr & 1)

Definition at line 175 of file he.h.

#define RBRQ_LEN_ERR (   rbrq)    ((rbrq)->addr & (1<<4))

Definition at line 171 of file he.h.

#define RBRQ_MASK (   x)    (((unsigned long)(x))&((CONFIG_RBRQ_SIZE<<3)-1))

Definition at line 59 of file he.h.

#define RBRQ_SIZE (   x)    (x)

Definition at line 531 of file he.h.

#define RBRQ_THRESH (   x)    ((x)<<13)

Definition at line 530 of file he.h.

#define RBRQ_TIME (   x)    ((x)<<8)

Definition at line 533 of file he.h.

#define RC_CONFIG   0x807c0

Definition at line 647 of file he.h.

#define RC_UT_MODE (   x)    (x<<9)

Definition at line 650 of file he.h.

#define RCC_BUSY   (1)

Definition at line 609 of file he.h.

#define RCC_STAT   0x8070c

Definition at line 608 of file he.h.

#define RCM_MEM_SIZE   0x10000 /* 1M of 32-bit registers */

Definition at line 738 of file he.h.

#define RCMABR_BA   0x8078c

Definition at line 645 of file he.h.

#define RCMCONFIG   0x80780

Definition at line 635 of file he.h.

#define RCMLBM_BA   0x80788

Definition at line 644 of file he.h.

#define RCMRSRB_BA   0x80784

Definition at line 643 of file he.h.

#define REF_RATE (   x)    (x)

Definition at line 604 of file he.h.

#define RESET_CNTL   0x80000

Definition at line 352 of file he.h.

#define RH_CONFIG   0x805c0

Definition at line 546 of file he.h.

#define RH_PRTY (   x)    (x<<19)

Definition at line 592 of file he.h.

#define RL_PRTY (   x)    (x<<15)

Definition at line 594 of file he.h.

#define RLBC_H   0x806d0

Definition at line 578 of file he.h.

#define RLBC_H2   0x806d8

Definition at line 580 of file he.h.

#define RLBC_T   0x806d4

Definition at line 579 of file he.h.

#define RLBF0_C   0x806e8

Definition at line 583 of file he.h.

#define RLBF0_H   0x806c0

Definition at line 574 of file he.h.

#define RLBF0_T   0x806c4

Definition at line 575 of file he.h.

#define RLBF1_C   0x806ec

Definition at line 584 of file he.h.

#define RLBF1_H   0x806c8

Definition at line 576 of file he.h.

#define RLBF1_T   0x806cc

Definition at line 577 of file he.h.

#define RM_ADD_BANK (   x)    (x<<4)

Definition at line 638 of file he.h.

#define RM_BANK_WAIT (   x)    (x<<6)

Definition at line 637 of file he.h.

#define RM_DESL2 (   x)    (x<<10)

Definition at line 636 of file he.h.

#define RM_PAR_CHECK (   x)    (x<<3)

Definition at line 639 of file he.h.

#define RM_RW_WAIT (   x)    (x<<2)

Definition at line 640 of file he.h.

#define RM_SRAM_TYPE (   x)    (x)

Definition at line 641 of file he.h.

#define RSR0_AAL0   (1)

Definition at line 800 of file he.h.

#define RSR0_AAL0_SDU   (2)

Definition at line 801 of file he.h.

#define RSR0_AAL5   (0)

Definition at line 799 of file he.h.

#define RSR0_CLOSE_CONN   (0<<6)

Definition at line 795 of file he.h.

#define RSR0_EPD_ENABLE   (1<<4)

Definition at line 797 of file he.h.

#define RSR0_OPEN_CONN   (1<<6)

Definition at line 794 of file he.h.

#define RSR0_PPD_ENABLE   (1<<5)

Definition at line 796 of file he.h.

#define RSR0_RAWCELL   (3)

Definition at line 802 of file he.h.

#define RSR0_RAWCELL_CRC10   (4)

Definition at line 803 of file he.h.

#define RSR0_START_PDU   (1<<10)

Definition at line 793 of file he.h.

#define RSR0_TCP_CKSUM   (1<<3)

Definition at line 798 of file he.h.

#define RSR1_AQI_ENABLE   (1<<20)

Definition at line 805 of file he.h.

#define RSR1_GROUP (   x)    ((x)<<16)

Definition at line 807 of file he.h.

#define RSR1_RBPL_ONLY   (1<<19)

Definition at line 806 of file he.h.

#define RSR4_AQI_ENABLE   (1<<30)

Definition at line 809 of file he.h.

#define RSR4_GROUP (   x)    ((x)<<27)

Definition at line 810 of file he.h.

#define RSR4_RBPL_ONLY   (1<<26)

Definition at line 811 of file he.h.

#define RX_ENABLE   (1<<8)

Definition at line 651 of file he.h.

#define RX_VALVC (   x)    (x)

Definition at line 653 of file he.h.

#define RX_VALVP (   x)    (x<<4)

Definition at line 652 of file he.h.

#define RXCON_CLOSE   0x100

Definition at line 735 of file he.h.

#define RXTHRSH   0x806f0

Definition at line 585 of file he.h.

#define SDRAM_CTL   0x80018

Definition at line 392 of file he.h.

#define SDRAM_INIT   (1<<15)

Definition at line 380 of file he.h.

#define SDRAMCON   0x80704

Definition at line 598 of file he.h.

#define SI_HIGH   ID_DIN /* HOST_CNTL_ID_PROM_DATA_IN */

Definition at line 842 of file he.h.

#define SLAVE_ENDIAN_MODE   (1<<16)

Definition at line 336 of file he.h.

#define SLICE_X (   x)    (x<<28)

Definition at line 589 of file he.h.

#define SWAP_RNUM_MAX (   x)    (x<<27)

Definition at line 374 of file he.h.

#define TBRQ_ALIGNMENT   CONFIG_TBRQ_SIZE

Definition at line 154 of file he.h.

#define TBRQ_EOS (   tbrq)    ((tbrq)->tbre & (1<<3))

Definition at line 157 of file he.h.

#define TBRQ_MASK (   x)    (((unsigned long)(x))&((CONFIG_TBRQ_SIZE<<2)-1))

Definition at line 63 of file he.h.

#define TBRQ_MULTIPLE (   tbrq)    ((tbrq)->tbre & (1))

Definition at line 158 of file he.h.

#define TBRQ_THRESH (   x)    (x)

Definition at line 542 of file he.h.

#define TBRQ_TPD (   tbrq)    ((tbrq)->tbre & 0xffffffc0)

Definition at line 156 of file he.h.

#define TCM_MEM_SIZE   0x20000 /* 2M of 32-bit registers */

Definition at line 739 of file he.h.

#define TCMCONFIG   0x80740

Definition at line 611 of file he.h.

#define TH_PRTY (   x)    (x<<21)

Definition at line 591 of file he.h.

#define TL_PRTY (   x)    (x<<17)

Definition at line 593 of file he.h.

#define TLBF_H   0x806e0

Definition at line 581 of file he.h.

#define TLBF_T   0x806e4

Definition at line 582 of file he.h.

#define TM_ADD_BANK4 (   x)    (x<<4)

Definition at line 614 of file he.h.

#define TM_BANK_WAIT (   x)    (x<<6)

Definition at line 613 of file he.h.

#define TM_DESL2   (1<<10)

Definition at line 612 of file he.h.

#define TM_PAR_CHECK (   x)    (x<<3)

Definition at line 615 of file he.h.

#define TM_RW_WAIT (   x)    (x<<2)

Definition at line 616 of file he.h.

#define TM_SRAM_TYPE (   x)    (x)

Definition at line 617 of file he.h.

#define TMABR_BA   0x8074c

Definition at line 621 of file he.h.

#define TPD_ADDR (   x)    ((x) & TPD_MASK)

Definition at line 144 of file he.h.

#define TPD_ADDR_SHIFT   6

Definition at line 142 of file he.h.

#define TPD_ALIGNMENT   64

Definition at line 139 of file he.h.

#define TPD_BA   0x80750

Definition at line 622 of file he.h.

#define TPD_CELLTYPE (   x)    (x<<3)

Definition at line 819 of file he.h.

#define TPD_CLP   (1<<1)

Definition at line 821 of file he.h.

#define TPD_END2END_OAMF5   0x5

Definition at line 817 of file he.h.

#define TPD_EOS   (1<<2)

Definition at line 820 of file he.h.

#define TPD_INDEX (   x)    (TPD_ADDR(x) >> TPD_ADDR_SHIFT)

Definition at line 145 of file he.h.

#define TPD_INT   (1<<0)

Definition at line 822 of file he.h.

#define TPD_LEN_MASK   0xffff

Definition at line 140 of file he.h.

#define TPD_LST   (1<<31)

Definition at line 823 of file he.h.

#define TPD_MASK   0xffffffc0

Definition at line 143 of file he.h.

#define TPD_MAXIOV   3

Definition at line 123 of file he.h.

#define TPD_RMCELL   0x6

Definition at line 818 of file he.h.

#define TPD_SEGMENT_OAMF5   0x4

Definition at line 816 of file he.h.

#define TPD_USERCELL   0x0

Definition at line 815 of file he.h.

#define TPDRQ_ALIGNMENT   CONFIG_TPDRQ_SIZE

Definition at line 186 of file he.h.

#define TPDRQ_B_H   0x80680

Definition at line 568 of file he.h.

#define TPDRQ_MASK (   x)    (((unsigned long)(x))&((CONFIG_TPDRQ_SIZE<<3)-1))

Definition at line 55 of file he.h.

#define TPDRQ_S   0x80688

Definition at line 570 of file he.h.

#define TPDRQ_T   0x80684

Definition at line 569 of file he.h.

#define TRAS_WAIT   (1<<10)

Definition at line 603 of file he.h.

#define TRP_WAIT   (1<<11)

Definition at line 602 of file he.h.

#define TSR0_AAL0   (1<<12)

Definition at line 751 of file he.h.

#define TSR0_AAL0_SDU   (2<<12)

Definition at line 750 of file he.h.

#define TSR0_AAL5   (0<<12)

Definition at line 752 of file he.h.

#define TSR0_ABR   (2<<16)

Definition at line 746 of file he.h.

#define TSR0_CBR   (0<<16)

Definition at line 748 of file he.h.

#define TSR0_CONN_STATE (   x)    ((x>>28) & 0x7)

Definition at line 743 of file he.h.

#define TSR0_GROUP (   x)    ((x & 0x7)<<18)

Definition at line 745 of file he.h.

#define TSR0_HALT_ER   (1<<11)

Definition at line 753 of file he.h.

#define TSR0_MARK_CI   (1<<10)

Definition at line 754 of file he.h.

#define TSR0_MARK_ER   (1<<9)

Definition at line 755 of file he.h.

#define TSR0_PROT   (1<<15)

Definition at line 749 of file he.h.

#define TSR0_RC_INDEX (   x)    (x & 0x1F)

Definition at line 757 of file he.h.

#define TSR0_UBR   (1<<16)

Definition at line 747 of file he.h.

#define TSR0_UPDATE_GER   (1<<8)

Definition at line 756 of file he.h.

#define TSR0_USE_WMIN   (1<<23)

Definition at line 744 of file he.h.

#define TSR11_ADTF (   x)    (x & 0x3FF)

Definition at line 781 of file he.h.

#define TSR11_ICR (   x)    ((x & 0x7FFF)<<16)

Definition at line 778 of file he.h.

#define TSR11_NRM (   x)    ((x & 0x7)<<10)

Definition at line 780 of file he.h.

#define TSR11_TRM (   x)    ((x & 0x7)<<13)

Definition at line 779 of file he.h.

#define TSR13_CDF (   x)    ((x & 0x7)<<16)

Definition at line 785 of file he.h.

#define TSR13_CRM (   x)    (x & 0xFFFF)

Definition at line 786 of file he.h.

#define TSR13_RDF (   x)    ((x & 0xF)<<23)

Definition at line 783 of file he.h.

#define TSR13_RIF (   x)    ((x & 0xF)<<19)

Definition at line 784 of file he.h.

#define TSR14_ABR_CLOSE   (1<<16)

Definition at line 789 of file he.h.

#define TSR14_DELETE   (1<<31)

Definition at line 788 of file he.h.

#define TSR1_MCR (   x)    (x & 0x7FFF)

Definition at line 760 of file he.h.

#define TSR1_PCR (   x)    ((x & 0x7FFF)<<16)

Definition at line 759 of file he.h.

#define TSR2_ACR (   x)    ((x & 0x7FFF)<<16)

Definition at line 762 of file he.h.

#define TSR3_CRM_CNT (   x)    (x & 0xFFFF)

Definition at line 765 of file he.h.

#define TSR3_NRM_CNT (   x)    ((x & 0xFF)<<24)

Definition at line 764 of file he.h.

#define TSR4_AAL0   (1<<23)

Definition at line 773 of file he.h.

#define TSR4_AAL0_SDU   (2<<23)

Definition at line 772 of file he.h.

#define TSR4_AAL5   (0<<23)

Definition at line 774 of file he.h.

#define TSR4_CRC10   (1<<28)

Definition at line 769 of file he.h.

#define TSR4_FLUSH_CONN   (1<<31)

Definition at line 767 of file he.h.

#define TSR4_NULL_CRC10   (1<<27)

Definition at line 770 of file he.h.

#define TSR4_PROT   (1<<26)

Definition at line 771 of file he.h.

#define TSR4_SESSION_ENDED   (1<<30)

Definition at line 768 of file he.h.

#define TSR9_OPEN_CONN   (1<<20)

Definition at line 776 of file he.h.

#define TSRB_BA   0x80744

Definition at line 619 of file he.h.

#define TSRC_BA   0x80748

Definition at line 620 of file he.h.

#define TSRD_BA   0x80758

Definition at line 623 of file he.h.

#define TWR_WAIT   (1<<12)

Definition at line 601 of file he.h.

#define TX_CONFIG   0x80760

Definition at line 625 of file he.h.

#define TX_ENABLE   (1<<28)

Definition at line 701 of file he.h.

#define TX_UT_MODE (   x)    (x<<21)

Definition at line 627 of file he.h.

#define TX_VCI_MASK (   x)    (x<<17)

Definition at line 628 of file he.h.

#define TXAAL5_PROTO   0x80764

Definition at line 631 of file he.h.

#define UBUFF_BA   0x8068c

Definition at line 572 of file he.h.

#define UT_RD_DELAY (   x)    (x<<11)

Definition at line 648 of file he.h.

#define WIDE_DATA   (1<<13)

Definition at line 600 of file he.h.

#define WRAP_MODE (   x)    (x<<10)

Definition at line 649 of file he.h.

#define XFER_SIZE   (1<<7)

Definition at line 382 of file he.h.