Go to the source code of this file.
Data Structures | |
| struct | rdesc0 |
| struct | rdesc1 |
| struct | rx_desc |
| struct | tdesc0 |
| struct | pqinf |
| struct | tdesc1 |
| struct | td_buf |
| struct | tx_desc |
| struct | mac_regs |
| struct | velocity_info_tbl |
| struct | arp_packet |
| struct | _magic_packet |
| struct | velocity_context |
| struct | velocity_opt |
| struct | velocity_info |
Defines | |
| #define | VELOCITY_TX_CSUM_SUPPORT |
| #define | VELOCITY_NAME "via-velocity" |
| #define | VELOCITY_FULL_DRV_NAM "VIA Networking Velocity Family Gigabit Ethernet Adapter Driver" |
| #define | VELOCITY_VERSION "1.13" |
| #define | PKT_BUF_SZ 1564 |
| #define | MAX_UNITS 8 |
| #define | OPTION_DEFAULT { [0 ... MAX_UNITS-1] = -1} |
| #define | REV_ID_VT6110 (0) |
| #define | BYTE_REG_BITS_ON(x, p) do { writeb(readb((p))|(x),(p));} while (0) |
| #define | WORD_REG_BITS_ON(x, p) do { writew(readw((p))|(x),(p));} while (0) |
| #define | DWORD_REG_BITS_ON(x, p) do { writel(readl((p))|(x),(p));} while (0) |
| #define | BYTE_REG_BITS_IS_ON(x, p) (readb((p)) & (x)) |
| #define | WORD_REG_BITS_IS_ON(x, p) (readw((p)) & (x)) |
| #define | DWORD_REG_BITS_IS_ON(x, p) (readl((p)) & (x)) |
| #define | BYTE_REG_BITS_OFF(x, p) do { writeb(readb((p)) & (~(x)),(p));} while (0) |
| #define | WORD_REG_BITS_OFF(x, p) do { writew(readw((p)) & (~(x)),(p));} while (0) |
| #define | DWORD_REG_BITS_OFF(x, p) do { writel(readl((p)) & (~(x)),(p));} while (0) |
| #define | BYTE_REG_BITS_SET(x, m, p) do { writeb( (readb((p)) & (~(m))) |(x),(p));} while (0) |
| #define | WORD_REG_BITS_SET(x, m, p) do { writew( (readw((p)) & (~(m))) |(x),(p));} while (0) |
| #define | DWORD_REG_BITS_SET(x, m, p) do { writel( (readl((p)) & (~(m)))|(x),(p));} while (0) |
| #define | VAR_USED(p) do {(p)=(p);} while (0) |
| #define | B_OWNED_BY_CHIP 1 |
| #define | B_OWNED_BY_HOST 0 |
| #define | RSR_DETAG 0x0080 |
| #define | RSR_SNTAG 0x0040 |
| #define | RSR_RXER 0x0020 |
| #define | RSR_RL 0x0010 |
| #define | RSR_CE 0x0008 |
| #define | RSR_FAE 0x0004 |
| #define | RSR_CRC 0x0002 |
| #define | RSR_VIDM 0x0001 |
| #define | RSR_RXOK 0x8000 |
| #define | RSR_PFT 0x4000 |
| #define | RSR_MAR 0x2000 |
| #define | RSR_BAR 0x1000 |
| #define | RSR_PHY 0x0800 |
| #define | RSR_VTAG 0x0400 |
| #define | RSR_STP 0x0200 |
| #define | RSR_EDP 0x0100 |
| #define | RSR1_RXOK 0x80 |
| #define | RSR1_PFT 0x40 |
| #define | RSR1_MAR 0x20 |
| #define | RSR1_BAR 0x10 |
| #define | RSR1_PHY 0x08 |
| #define | RSR1_VTAG 0x04 |
| #define | RSR1_STP 0x02 |
| #define | RSR1_EDP 0x01 |
| #define | CSM_IPOK 0x40 |
| #define | CSM_TUPOK 0x20 |
| #define | CSM_FRAG 0x10 |
| #define | CSM_IPKT 0x04 |
| #define | CSM_TCPKT 0x02 |
| #define | CSM_UDPKT 0x01 |
| #define | TSR0_ABT 0x0080 |
| #define | TSR0_OWT 0x0040 |
| #define | TSR0_OWC 0x0020 |
| #define | TSR0_COLS 0x0010 |
| #define | TSR0_NCR3 0x0008 |
| #define | TSR0_NCR2 0x0004 |
| #define | TSR0_NCR1 0x0002 |
| #define | TSR0_NCR0 0x0001 |
| #define | TSR0_TERR 0x8000 |
| #define | TSR0_FDX 0x4000 |
| #define | TSR0_GMII 0x2000 |
| #define | TSR0_LNKFL 0x1000 |
| #define | TSR0_SHDN 0x0400 |
| #define | TSR0_CRS 0x0200 |
| #define | TSR0_CDH 0x0100 |
| #define | TSR1_TERR 0x80 |
| #define | TSR1_FDX 0x40 |
| #define | TSR1_GMII 0x20 |
| #define | TSR1_LNKFL 0x10 |
| #define | TSR1_SHDN 0x04 |
| #define | TSR1_CRS 0x02 |
| #define | TSR1_CDH 0x01 |
| #define | TCR0_TIC 0x80 |
| #define | TCR0_PIC 0x40 |
| #define | TCR0_VETAG 0x20 |
| #define | TCR0_IPCK 0x10 |
| #define | TCR0_UDPCK 0x08 |
| #define | TCR0_TCPCK 0x04 |
| #define | TCR0_JMBO 0x02 |
| #define | TCR0_CRC 0x01 |
| #define | TCPLS_NORMAL 3 |
| #define | TCPLS_START 2 |
| #define | TCPLS_END 1 |
| #define | TCPLS_MED 0 |
| #define | CB_RX_BUF_SIZE 2048UL |
| #define | CB_MAX_RD_NUM 512 |
| #define | CB_MAX_TD_NUM 256 |
| #define | CB_INIT_RD_NUM_3119 128 |
| #define | CB_INIT_TD_NUM_3119 64 |
| #define | CB_INIT_RD_NUM 128 |
| #define | CB_INIT_TD_NUM 64 |
| #define | CB_TD_RING_NUM 4 |
| #define | CB_MAX_SEG_PER_PKT 7 |
| #define | CB_MAX_TX_ABORT_RETRY 3 |
| #define | MCAM_SIZE 64 |
| #define | VCAM_SIZE 64 |
| #define | TX_QUEUE_NO 4 |
| #define | MAX_HW_MIB_COUNTER 32 |
| #define | VELOCITY_MIN_MTU (1514-14) |
| #define | VELOCITY_MAX_MTU (9000) |
| #define | MAC_REG_PAR 0x00 |
| #define | MAC_REG_RCR 0x06 |
| #define | MAC_REG_TCR 0x07 |
| #define | MAC_REG_CR0_SET 0x08 |
| #define | MAC_REG_CR1_SET 0x09 |
| #define | MAC_REG_CR2_SET 0x0A |
| #define | MAC_REG_CR3_SET 0x0B |
| #define | MAC_REG_CR0_CLR 0x0C |
| #define | MAC_REG_CR1_CLR 0x0D |
| #define | MAC_REG_CR2_CLR 0x0E |
| #define | MAC_REG_CR3_CLR 0x0F |
| #define | MAC_REG_MAR 0x10 |
| #define | MAC_REG_CAM 0x10 |
| #define | MAC_REG_DEC_BASE_HI 0x18 |
| #define | MAC_REG_DBF_BASE_HI 0x1C |
| #define | MAC_REG_ISR_CTL 0x20 |
| #define | MAC_REG_ISR_HOTMR 0x20 |
| #define | MAC_REG_ISR_TSUPTHR 0x20 |
| #define | MAC_REG_ISR_RSUPTHR 0x20 |
| #define | MAC_REG_ISR_CTL1 0x21 |
| #define | MAC_REG_TXE_SR 0x22 |
| #define | MAC_REG_RXE_SR 0x23 |
| #define | MAC_REG_ISR 0x24 |
| #define | MAC_REG_ISR0 0x24 |
| #define | MAC_REG_ISR1 0x25 |
| #define | MAC_REG_ISR2 0x26 |
| #define | MAC_REG_ISR3 0x27 |
| #define | MAC_REG_IMR 0x28 |
| #define | MAC_REG_IMR0 0x28 |
| #define | MAC_REG_IMR1 0x29 |
| #define | MAC_REG_IMR2 0x2A |
| #define | MAC_REG_IMR3 0x2B |
| #define | MAC_REG_TDCSR_SET 0x30 |
| #define | MAC_REG_RDCSR_SET 0x32 |
| #define | MAC_REG_TDCSR_CLR 0x34 |
| #define | MAC_REG_RDCSR_CLR 0x36 |
| #define | MAC_REG_RDBASE_LO 0x38 |
| #define | MAC_REG_RDINDX 0x3C |
| #define | MAC_REG_TDBASE_LO 0x40 |
| #define | MAC_REG_RDCSIZE 0x50 |
| #define | MAC_REG_TDCSIZE 0x52 |
| #define | MAC_REG_TDINDX 0x54 |
| #define | MAC_REG_TDIDX0 0x54 |
| #define | MAC_REG_TDIDX1 0x56 |
| #define | MAC_REG_TDIDX2 0x58 |
| #define | MAC_REG_TDIDX3 0x5A |
| #define | MAC_REG_PAUSE_TIMER 0x5C |
| #define | MAC_REG_RBRDU 0x5E |
| #define | MAC_REG_FIFO_TEST0 0x60 |
| #define | MAC_REG_FIFO_TEST1 0x64 |
| #define | MAC_REG_CAMADDR 0x68 |
| #define | MAC_REG_CAMCR 0x69 |
| #define | MAC_REG_GFTEST 0x6A |
| #define | MAC_REG_FTSTCMD 0x6B |
| #define | MAC_REG_MIICFG 0x6C |
| #define | MAC_REG_MIISR 0x6D |
| #define | MAC_REG_PHYSR0 0x6E |
| #define | MAC_REG_PHYSR1 0x6F |
| #define | MAC_REG_MIICR 0x70 |
| #define | MAC_REG_MIIADR 0x71 |
| #define | MAC_REG_MIIDATA 0x72 |
| #define | MAC_REG_SOFT_TIMER0 0x74 |
| #define | MAC_REG_SOFT_TIMER1 0x76 |
| #define | MAC_REG_CFGA 0x78 |
| #define | MAC_REG_CFGB 0x79 |
| #define | MAC_REG_CFGC 0x7A |
| #define | MAC_REG_CFGD 0x7B |
| #define | MAC_REG_DCFG0 0x7C |
| #define | MAC_REG_DCFG1 0x7D |
| #define | MAC_REG_MCFG0 0x7E |
| #define | MAC_REG_MCFG1 0x7F |
| #define | MAC_REG_TBIST 0x80 |
| #define | MAC_REG_RBIST 0x81 |
| #define | MAC_REG_PMCC 0x82 |
| #define | MAC_REG_STICKHW 0x83 |
| #define | MAC_REG_MIBCR 0x84 |
| #define | MAC_REG_EERSV 0x85 |
| #define | MAC_REG_REVID 0x86 |
| #define | MAC_REG_MIBREAD 0x88 |
| #define | MAC_REG_BPMA 0x8C |
| #define | MAC_REG_EEWR_DATA 0x8C |
| #define | MAC_REG_BPMD_WR 0x8F |
| #define | MAC_REG_BPCMD 0x90 |
| #define | MAC_REG_BPMD_RD 0x91 |
| #define | MAC_REG_EECHKSUM 0x92 |
| #define | MAC_REG_EECSR 0x93 |
| #define | MAC_REG_EERD_DATA 0x94 |
| #define | MAC_REG_EADDR 0x96 |
| #define | MAC_REG_EMBCMD 0x97 |
| #define | MAC_REG_JMPSR0 0x98 |
| #define | MAC_REG_JMPSR1 0x99 |
| #define | MAC_REG_JMPSR2 0x9A |
| #define | MAC_REG_JMPSR3 0x9B |
| #define | MAC_REG_CHIPGSR 0x9C |
| #define | MAC_REG_TESTCFG 0x9D |
| #define | MAC_REG_DEBUG 0x9E |
| #define | MAC_REG_CHIPGCR 0x9F |
| #define | MAC_REG_WOLCR0_SET 0xA0 |
| #define | MAC_REG_WOLCR1_SET 0xA1 |
| #define | MAC_REG_PWCFG_SET 0xA2 |
| #define | MAC_REG_WOLCFG_SET 0xA3 |
| #define | MAC_REG_WOLCR0_CLR 0xA4 |
| #define | MAC_REG_WOLCR1_CLR 0xA5 |
| #define | MAC_REG_PWCFG_CLR 0xA6 |
| #define | MAC_REG_WOLCFG_CLR 0xA7 |
| #define | MAC_REG_WOLSR0_SET 0xA8 |
| #define | MAC_REG_WOLSR1_SET 0xA9 |
| #define | MAC_REG_WOLSR0_CLR 0xAC |
| #define | MAC_REG_WOLSR1_CLR 0xAD |
| #define | MAC_REG_PATRN_CRC0 0xB0 |
| #define | MAC_REG_PATRN_CRC1 0xB2 |
| #define | MAC_REG_PATRN_CRC2 0xB4 |
| #define | MAC_REG_PATRN_CRC3 0xB6 |
| #define | MAC_REG_PATRN_CRC4 0xB8 |
| #define | MAC_REG_PATRN_CRC5 0xBA |
| #define | MAC_REG_PATRN_CRC6 0xBC |
| #define | MAC_REG_PATRN_CRC7 0xBE |
| #define | MAC_REG_BYTEMSK0_0 0xC0 |
| #define | MAC_REG_BYTEMSK0_1 0xC4 |
| #define | MAC_REG_BYTEMSK0_2 0xC8 |
| #define | MAC_REG_BYTEMSK0_3 0xCC |
| #define | MAC_REG_BYTEMSK1_0 0xD0 |
| #define | MAC_REG_BYTEMSK1_1 0xD4 |
| #define | MAC_REG_BYTEMSK1_2 0xD8 |
| #define | MAC_REG_BYTEMSK1_3 0xDC |
| #define | MAC_REG_BYTEMSK2_0 0xE0 |
| #define | MAC_REG_BYTEMSK2_1 0xE4 |
| #define | MAC_REG_BYTEMSK2_2 0xE8 |
| #define | MAC_REG_BYTEMSK2_3 0xEC |
| #define | MAC_REG_BYTEMSK3_0 0xF0 |
| #define | MAC_REG_BYTEMSK3_1 0xF4 |
| #define | MAC_REG_BYTEMSK3_2 0xF8 |
| #define | MAC_REG_BYTEMSK3_3 0xFC |
| #define | RCR_AS 0x80 |
| #define | RCR_AP 0x40 |
| #define | RCR_AL 0x20 |
| #define | RCR_PROM 0x10 |
| #define | RCR_AB 0x08 |
| #define | RCR_AM 0x04 |
| #define | RCR_AR 0x02 |
| #define | RCR_SEP 0x01 |
| #define | TCR_TB2BDIS 0x80 |
| #define | TCR_COLTMC1 0x08 |
| #define | TCR_COLTMC0 0x04 |
| #define | TCR_LB1 0x02 |
| #define | TCR_LB0 0x01 |
| #define | CR0_TXON 0x00000008UL |
| #define | CR0_RXON 0x00000004UL |
| #define | CR0_STOP 0x00000002UL |
| #define | CR0_STRT 0x00000001UL |
| #define | CR0_SFRST 0x00008000UL |
| #define | CR0_TM1EN 0x00004000UL |
| #define | CR0_TM0EN 0x00002000UL |
| #define | CR0_DPOLL 0x00000800UL |
| #define | CR0_DISAU 0x00000100UL |
| #define | CR0_XONEN 0x00800000UL |
| #define | CR0_FDXTFCEN 0x00400000UL |
| #define | CR0_FDXRFCEN 0x00200000UL |
| #define | CR0_HDXFCEN 0x00100000UL |
| #define | CR0_XHITH1 0x00080000UL |
| #define | CR0_XHITH0 0x00040000UL |
| #define | CR0_XLTH1 0x00020000UL |
| #define | CR0_XLTH0 0x00010000UL |
| #define | CR0_GSPRST 0x80000000UL |
| #define | CR0_FORSRST 0x40000000UL |
| #define | CR0_FPHYRST 0x20000000UL |
| #define | CR0_DIAG 0x10000000UL |
| #define | CR0_INTPCTL 0x04000000UL |
| #define | CR0_GINTMSK1 0x02000000UL |
| #define | CR0_GINTMSK0 0x01000000UL |
| #define | CR1_SFRST 0x80 |
| #define | CR1_TM1EN 0x40 |
| #define | CR1_TM0EN 0x20 |
| #define | CR1_DPOLL 0x08 |
| #define | CR1_DISAU 0x01 |
| #define | CR2_XONEN 0x80 |
| #define | CR2_FDXTFCEN 0x40 |
| #define | CR2_FDXRFCEN 0x20 |
| #define | CR2_HDXFCEN 0x10 |
| #define | CR2_XHITH1 0x08 |
| #define | CR2_XHITH0 0x04 |
| #define | CR2_XLTH1 0x02 |
| #define | CR2_XLTH0 0x01 |
| #define | CR3_GSPRST 0x80 |
| #define | CR3_FORSRST 0x40 |
| #define | CR3_FPHYRST 0x20 |
| #define | CR3_DIAG 0x10 |
| #define | CR3_INTPCTL 0x04 |
| #define | CR3_GINTMSK1 0x02 |
| #define | CR3_GINTMSK0 0x01 |
| #define | ISRCTL_UDPINT 0x8000 |
| #define | ISRCTL_TSUPDIS 0x4000 |
| #define | ISRCTL_RSUPDIS 0x2000 |
| #define | ISRCTL_PMSK1 0x1000 |
| #define | ISRCTL_PMSK0 0x0800 |
| #define | ISRCTL_INTPD 0x0400 |
| #define | ISRCTL_HCRLD 0x0200 |
| #define | ISRCTL_SCRLD 0x0100 |
| #define | ISRCTL1_UDPINT 0x80 |
| #define | ISRCTL1_TSUPDIS 0x40 |
| #define | ISRCTL1_RSUPDIS 0x20 |
| #define | ISRCTL1_PMSK1 0x10 |
| #define | ISRCTL1_PMSK0 0x08 |
| #define | ISRCTL1_INTPD 0x04 |
| #define | ISRCTL1_HCRLD 0x02 |
| #define | ISRCTL1_SCRLD 0x01 |
| #define | TXESR_TFDBS 0x08 |
| #define | TXESR_TDWBS 0x04 |
| #define | TXESR_TDRBS 0x02 |
| #define | TXESR_TDSTR 0x01 |
| #define | RXESR_RFDBS 0x08 |
| #define | RXESR_RDWBS 0x04 |
| #define | RXESR_RDRBS 0x02 |
| #define | RXESR_RDSTR 0x01 |
| #define | ISR_ISR3 0x80000000UL |
| #define | ISR_ISR2 0x40000000UL |
| #define | ISR_ISR1 0x20000000UL |
| #define | ISR_ISR0 0x10000000UL |
| #define | ISR_TXSTLI 0x02000000UL |
| #define | ISR_RXSTLI 0x01000000UL |
| #define | ISR_HFLD 0x00800000UL |
| #define | ISR_UDPI 0x00400000UL |
| #define | ISR_MIBFI 0x00200000UL |
| #define | ISR_SHDNI 0x00100000UL |
| #define | ISR_PHYI 0x00080000UL |
| #define | ISR_PWEI 0x00040000UL |
| #define | ISR_TMR1I 0x00020000UL |
| #define | ISR_TMR0I 0x00010000UL |
| #define | ISR_SRCI 0x00008000UL |
| #define | ISR_LSTPEI 0x00004000UL |
| #define | ISR_LSTEI 0x00002000UL |
| #define | ISR_OVFI 0x00001000UL |
| #define | ISR_FLONI 0x00000800UL |
| #define | ISR_RACEI 0x00000400UL |
| #define | ISR_TXWB1I 0x00000200UL |
| #define | ISR_TXWB0I 0x00000100UL |
| #define | ISR_PTX3I 0x00000080UL |
| #define | ISR_PTX2I 0x00000040UL |
| #define | ISR_PTX1I 0x00000020UL |
| #define | ISR_PTX0I 0x00000010UL |
| #define | ISR_PTXI 0x00000008UL |
| #define | ISR_PRXI 0x00000004UL |
| #define | ISR_PPTXI 0x00000002UL |
| #define | ISR_PPRXI 0x00000001UL |
| #define | IMR_TXSTLM 0x02000000UL |
| #define | IMR_UDPIM 0x00400000UL |
| #define | IMR_MIBFIM 0x00200000UL |
| #define | IMR_SHDNIM 0x00100000UL |
| #define | IMR_PHYIM 0x00080000UL |
| #define | IMR_PWEIM 0x00040000UL |
| #define | IMR_TMR1IM 0x00020000UL |
| #define | IMR_TMR0IM 0x00010000UL |
| #define | IMR_SRCIM 0x00008000UL |
| #define | IMR_LSTPEIM 0x00004000UL |
| #define | IMR_LSTEIM 0x00002000UL |
| #define | IMR_OVFIM 0x00001000UL |
| #define | IMR_FLONIM 0x00000800UL |
| #define | IMR_RACEIM 0x00000400UL |
| #define | IMR_TXWB1IM 0x00000200UL |
| #define | IMR_TXWB0IM 0x00000100UL |
| #define | IMR_PTX3IM 0x00000080UL |
| #define | IMR_PTX2IM 0x00000040UL |
| #define | IMR_PTX1IM 0x00000020UL |
| #define | IMR_PTX0IM 0x00000010UL |
| #define | IMR_PTXIM 0x00000008UL |
| #define | IMR_PRXIM 0x00000004UL |
| #define | IMR_PPTXIM 0x00000002UL |
| #define | IMR_PPRXIM 0x00000001UL |
| #define | INT_MASK_DEF |
| #define | TRDCSR_DEAD 0x0008 |
| #define | TRDCSR_WAK 0x0004 |
| #define | TRDCSR_ACT 0x0002 |
| #define | TRDCSR_RUN 0x0001 |
| #define | CAMADDR_CAMEN 0x80 |
| #define | CAMADDR_VCAMSL 0x40 |
| #define | CAMCR_PS1 0x80 |
| #define | CAMCR_PS0 0x40 |
| #define | CAMCR_AITRPKT 0x20 |
| #define | CAMCR_AITR16 0x10 |
| #define | CAMCR_CAMRD 0x08 |
| #define | CAMCR_CAMWR 0x04 |
| #define | CAMCR_PS_CAM_MASK 0x40 |
| #define | CAMCR_PS_CAM_DATA 0x80 |
| #define | CAMCR_PS_MAR 0x00 |
| #define | MIICFG_MPO1 0x80 |
| #define | MIICFG_MPO0 0x40 |
| #define | MIICFG_MFDC 0x20 |
| #define | MIISR_MIDLE 0x80 |
| #define | PHYSR0_PHYRST 0x80 |
| #define | PHYSR0_LINKGD 0x40 |
| #define | PHYSR0_FDPX 0x10 |
| #define | PHYSR0_SPDG 0x08 |
| #define | PHYSR0_SPD10 0x04 |
| #define | PHYSR0_RXFLC 0x02 |
| #define | PHYSR0_TXFLC 0x01 |
| #define | PHYSR1_PHYTBI 0x01 |
| #define | MIICR_MAUTO 0x80 |
| #define | MIICR_RCMD 0x40 |
| #define | MIICR_WCMD 0x20 |
| #define | MIICR_MDPM 0x10 |
| #define | MIICR_MOUT 0x08 |
| #define | MIICR_MDO 0x04 |
| #define | MIICR_MDI 0x02 |
| #define | MIICR_MDC 0x01 |
| #define | MIIADR_SWMPL 0x80 |
| #define | CFGA_PMHCTG 0x08 |
| #define | CFGA_GPIO1PD 0x04 |
| #define | CFGA_ABSHDN 0x02 |
| #define | CFGA_PACPI 0x01 |
| #define | CFGB_GTCKOPT 0x80 |
| #define | CFGB_MIIOPT 0x40 |
| #define | CFGB_CRSEOPT 0x20 |
| #define | CFGB_OFSET 0x10 |
| #define | CFGB_CRANDOM 0x08 |
| #define | CFGB_CAP 0x04 |
| #define | CFGB_MBA 0x02 |
| #define | CFGB_BAKOPT 0x01 |
| #define | CFGC_EELOAD 0x80 |
| #define | CFGC_BROPT 0x40 |
| #define | CFGC_DLYEN 0x20 |
| #define | CFGC_DTSEL 0x10 |
| #define | CFGC_BTSEL 0x08 |
| #define | CFGC_BPS2 0x04 |
| #define | CFGC_BPS1 0x02 |
| #define | CFGC_BPS0 0x01 |
| #define | CFGD_IODIS 0x80 |
| #define | CFGD_MSLVDACEN 0x40 |
| #define | CFGD_CFGDACEN 0x20 |
| #define | CFGD_PCI64EN 0x10 |
| #define | CFGD_HTMRL4 0x08 |
| #define | DCFG_XMWI 0x8000 |
| #define | DCFG_XMRM 0x4000 |
| #define | DCFG_XMRL 0x2000 |
| #define | DCFG_PERDIS 0x1000 |
| #define | DCFG_MRWAIT 0x0400 |
| #define | DCFG_MWWAIT 0x0200 |
| #define | DCFG_LATMEN 0x0100 |
| #define | MCFG_RXARB 0x0080 |
| #define | MCFG_RFT1 0x0020 |
| #define | MCFG_RFT0 0x0010 |
| #define | MCFG_LOWTHOPT 0x0008 |
| #define | MCFG_PQEN 0x0004 |
| #define | MCFG_RTGOPT 0x0002 |
| #define | MCFG_VIDFR 0x0001 |
| #define | MCFG_TXARB 0x8000 |
| #define | MCFG_TXQBK1 0x0800 |
| #define | MCFG_TXQBK0 0x0400 |
| #define | MCFG_TXQNOBK 0x0200 |
| #define | MCFG_SNAPOPT 0x0100 |
| #define | PMCC_DSI 0x80 |
| #define | PMCC_D2_DIS 0x40 |
| #define | PMCC_D1_DIS 0x20 |
| #define | PMCC_D3C_EN 0x10 |
| #define | PMCC_D3H_EN 0x08 |
| #define | PMCC_D2_EN 0x04 |
| #define | PMCC_D1_EN 0x02 |
| #define | PMCC_D0_EN 0x01 |
| #define | STICKHW_SWPTAG 0x10 |
| #define | STICKHW_WOLSR 0x08 |
| #define | STICKHW_WOLEN 0x04 |
| #define | STICKHW_DS1 0x02 |
| #define | STICKHW_DS0 0x01 |
| #define | MIBCR_MIBISTOK 0x80 |
| #define | MIBCR_MIBISTGO 0x40 |
| #define | MIBCR_MIBINC 0x20 |
| #define | MIBCR_MIBHI 0x10 |
| #define | MIBCR_MIBFRZ 0x08 |
| #define | MIBCR_MIBFLSH 0x04 |
| #define | MIBCR_MPTRINI 0x02 |
| #define | MIBCR_MIBCLR 0x01 |
| #define | EERSV_BOOT_RPL ((u8) 0x01) |
| #define | EERSV_BOOT_MASK ((u8) 0x06) |
| #define | EERSV_BOOT_INT19 ((u8) 0x00) |
| #define | EERSV_BOOT_INT18 ((u8) 0x02) |
| #define | EERSV_BOOT_LOCAL ((u8) 0x04) |
| #define | EERSV_BOOT_BEV ((u8) 0x06) |
| #define | BPCMD_BPDNE 0x80 |
| #define | BPCMD_EBPWR 0x02 |
| #define | BPCMD_EBPRD 0x01 |
| #define | EECSR_EMBP 0x40 |
| #define | EECSR_RELOAD 0x20 |
| #define | EECSR_DPM 0x10 |
| #define | EECSR_ECS 0x08 |
| #define | EECSR_ECK 0x04 |
| #define | EECSR_EDI 0x02 |
| #define | EECSR_EDO 0x01 |
| #define | EMBCMD_EDONE 0x80 |
| #define | EMBCMD_EWDIS 0x08 |
| #define | EMBCMD_EWEN 0x04 |
| #define | EMBCMD_EWR 0x02 |
| #define | EMBCMD_ERD 0x01 |
| #define | TESTCFG_HBDIS 0x80 |
| #define | CHIPGCR_FCGMII 0x80 |
| #define | CHIPGCR_FCFDX 0x40 |
| #define | CHIPGCR_FCRESV 0x20 |
| #define | CHIPGCR_FCMODE 0x10 |
| #define | CHIPGCR_LPSOPT 0x08 |
| #define | CHIPGCR_TM1US 0x04 |
| #define | CHIPGCR_TM0US 0x02 |
| #define | CHIPGCR_PHYINTEN 0x01 |
| #define | WOLCR_MSWOLEN7 0x0080 |
| #define | WOLCR_MSWOLEN6 0x0040 |
| #define | WOLCR_MSWOLEN5 0x0020 |
| #define | WOLCR_MSWOLEN4 0x0010 |
| #define | WOLCR_MSWOLEN3 0x0008 |
| #define | WOLCR_MSWOLEN2 0x0004 |
| #define | WOLCR_MSWOLEN1 0x0002 |
| #define | WOLCR_MSWOLEN0 0x0001 |
| #define | WOLCR_ARP_EN 0x0001 |
| #define | WOLCR_LINKOFF_EN 0x0800 |
| #define | WOLCR_LINKON_EN 0x0400 |
| #define | WOLCR_MAGIC_EN 0x0200 |
| #define | WOLCR_UNICAST_EN 0x0100 |
| #define | PWCFG_PHYPWOPT 0x80 |
| #define | PWCFG_PCISTICK 0x40 |
| #define | PWCFG_WOLTYPE 0x20 |
| #define | PWCFG_LEGCY_WOL 0x10 |
| #define | PWCFG_PMCSR_PME_SR 0x08 |
| #define | PWCFG_PMCSR_PME_EN 0x04 |
| #define | PWCFG_LEGACY_WOLSR 0x02 |
| #define | PWCFG_LEGACY_WOLEN 0x01 |
| #define | WOLCFG_PMEOVR 0x80 |
| #define | WOLCFG_SAM 0x20 |
| #define | WOLCFG_SAB 0x10 |
| #define | WOLCFG_SMIIACC 0x08 |
| #define | WOLCFG_SGENWH 0x02 |
| #define | WOLCFG_PHYINTEN 0x01 |
| #define | WOLSR_LINKOFF_INT 0x0800 |
| #define | WOLSR_LINKON_INT 0x0400 |
| #define | WOLSR_MAGIC_INT 0x0200 |
| #define | WOLSR_UNICAST_INT 0x0100 |
| #define | PKT_TYPE_NONE 0x0000 |
| #define | PKT_TYPE_DIRECTED 0x0001 |
| #define | PKT_TYPE_MULTICAST 0x0002 |
| #define | PKT_TYPE_ALL_MULTICAST 0x0004 |
| #define | PKT_TYPE_BROADCAST 0x0008 |
| #define | PKT_TYPE_PROMISCUOUS 0x0020 |
| #define | PKT_TYPE_LONG 0x2000 |
| #define | PKT_TYPE_RUNT 0x4000 |
| #define | PKT_TYPE_ERROR 0x8000 |
| #define | MAC_LB_NONE 0x00 |
| #define | MAC_LB_INTERNAL 0x01 |
| #define | MAC_LB_EXTERNAL 0x02 |
| #define | IMR_MASK_VALUE 0x0013FB0FUL |
| #define | REV_ID_VT3119_A0 0x00 |
| #define | REV_ID_VT3119_A1 0x01 |
| #define | REV_ID_VT3216_A0 0x10 |
| #define | W_MAX_TIMEOUT 0x0FFFU |
| #define | mac_hw_mibs_init(regs) |
| #define | mac_read_isr(regs) readl(&((regs)->ISR)) |
| #define | mac_write_isr(regs, x) writel((x),&((regs)->ISR)) |
| #define | mac_clear_isr(regs) writel(0xffffffffL,&((regs)->ISR)) |
| #define | mac_write_int_mask(mask, regs) writel((mask),&((regs)->IMR)); |
| #define | mac_disable_int(regs) writel(CR0_GINTMSK1,&((regs)->CR0Clr)) |
| #define | mac_enable_int(regs) writel(CR0_GINTMSK1,&((regs)->CR0Set)) |
| #define | mac_hw_mibs_read(regs, MIBs) |
| #define | mac_set_dma_length(regs, n) |
| #define | mac_set_rx_thresh(regs, n) |
| #define | mac_rx_queue_run(regs) |
| #define | mac_rx_queue_wake(regs) |
| #define | mac_tx_queue_run(regs, n) |
| #define | mac_tx_queue_wake(regs, n) |
| #define | mac_eeprom_reload(regs) |
| #define | MII_REG_BMCR 0x00 |
| #define | MII_REG_BMSR 0x01 |
| #define | MII_REG_PHYID1 0x02 |
| #define | MII_REG_PHYID2 0x03 |
| #define | MII_REG_ANAR 0x04 |
| #define | MII_REG_ANLPAR 0x05 |
| #define | MII_REG_G1000CR 0x09 |
| #define | MII_REG_G1000SR 0x0A |
| #define | MII_REG_MODCFG 0x10 |
| #define | MII_REG_TCSR 0x16 |
| #define | MII_REG_PLED 0x1B |
| #define | MII_REG_PCR 0x17 |
| #define | MII_REG_PCSR 0x17 |
| #define | MII_REG_AUXCR 0x1C |
| #define | MII_REG_PSCR 0x10 |
| #define | BMCR_RESET 0x8000 |
| #define | BMCR_LBK 0x4000 |
| #define | BMCR_SPEED100 0x2000 |
| #define | BMCR_AUTO 0x1000 |
| #define | BMCR_PD 0x0800 |
| #define | BMCR_ISO 0x0400 |
| #define | BMCR_REAUTO 0x0200 |
| #define | BMCR_FDX 0x0100 |
| #define | BMCR_SPEED1G 0x0040 |
| #define | BMSR_AUTOCM 0x0020 |
| #define | BMSR_LNK 0x0004 |
| #define | ANAR_ASMDIR 0x0800 |
| #define | ANAR_PAUSE 0x0400 |
| #define | ANAR_T4 0x0200 |
| #define | ANAR_TXFD 0x0100 |
| #define | ANAR_TX 0x0080 |
| #define | ANAR_10FD 0x0040 |
| #define | ANAR_10 0x0020 |
| #define | ANLPAR_ASMDIR 0x0800 |
| #define | ANLPAR_PAUSE 0x0400 |
| #define | ANLPAR_T4 0x0200 |
| #define | ANLPAR_TXFD 0x0100 |
| #define | ANLPAR_TX 0x0080 |
| #define | ANLPAR_10FD 0x0040 |
| #define | ANLPAR_10 0x0020 |
| #define | G1000CR_1000FD 0x0200 |
| #define | G1000CR_1000 0x0100 |
| #define | G1000SR_1000FD 0x0800 |
| #define | G1000SR_1000 0x0400 |
| #define | TCSR_ECHODIS 0x2000 |
| #define | AUXCR_MDPPS 0x0004 |
| #define | PLED_LALBE 0x0004 |
| #define | PSCR_ACRSTX 0x0800 |
| #define | PHYID_CICADA_CS8201 0x000FC410UL |
| #define | PHYID_VT3216_32BIT 0x000FC610UL |
| #define | PHYID_VT3216_64BIT 0x000FC600UL |
| #define | PHYID_MARVELL_1000 0x01410C50UL |
| #define | PHYID_MARVELL_1000S 0x01410C40UL |
| #define | PHYID_REV_ID_MASK 0x0000000FUL |
| #define | PHYID_GET_PHY_REV_ID(i) ((i) & PHYID_REV_ID_MASK) |
| #define | PHYID_GET_PHY_ID(i) ((i) & ~PHYID_REV_ID_MASK) |
| #define | MII_REG_BITS_ON(x, i, p) |
| #define | MII_REG_BITS_OFF(x, i, p) |
| #define | MII_REG_BITS_IS_ON(x, i, p) |
| #define | MII_GET_PHY_ID(p) |
| #define | VELOCITY_WOL_MAGIC 0x00000000UL |
| #define | VELOCITY_WOL_PHY 0x00000001UL |
| #define | VELOCITY_WOL_ARP 0x00000002UL |
| #define | VELOCITY_WOL_UCAST 0x00000004UL |
| #define | VELOCITY_WOL_BCAST 0x00000010UL |
| #define | VELOCITY_WOL_MCAST 0x00000020UL |
| #define | VELOCITY_WOL_MAGIC_SEC 0x00000040UL |
| #define | VELOCITY_FLAGS_TAGGING 0x00000001UL |
| #define | VELOCITY_FLAGS_TX_CSUM 0x00000002UL |
| #define | VELOCITY_FLAGS_RX_CSUM 0x00000004UL |
| #define | VELOCITY_FLAGS_IP_ALIGN 0x00000008UL |
| #define | VELOCITY_FLAGS_VAL_PKT_LEN 0x00000010UL |
| #define | VELOCITY_FLAGS_FLOW_CTRL 0x01000000UL |
| #define | VELOCITY_FLAGS_OPENED 0x00010000UL |
| #define | VELOCITY_FLAGS_VMNS_CONNECTED 0x00020000UL |
| #define | VELOCITY_FLAGS_VMNS_COMMITTED 0x00040000UL |
| #define | VELOCITY_FLAGS_WOL_ENABLED 0x00080000UL |
| #define | VELOCITY_LINK_FAIL 0x00000001UL |
| #define | VELOCITY_SPEED_10 0x00000002UL |
| #define | VELOCITY_SPEED_100 0x00000004UL |
| #define | VELOCITY_SPEED_1000 0x00000008UL |
| #define | VELOCITY_DUPLEX_FULL 0x00000010UL |
| #define | VELOCITY_AUTONEG_ENABLE 0x00000020UL |
| #define | VELOCITY_FORCED_BY_EEPROM 0x00000040UL |
| #define | VELOCITY_LINK_CHANGE 0x00000001UL |
| #define | RX_DESC_MIN 4 |
| #define | RX_DESC_MAX 255 |
| #define | RX_DESC_DEF RX_DESC_MIN |
| #define | TX_DESC_MIN 1 |
| #define | TX_DESC_MAX 256 |
| #define | TX_DESC_DEF TX_DESC_MIN |
| #define | AVAIL_TD(p, q) ((p)->options.numtx-((p)->td_used[(q)])) |
| #define | GET_RD_BY_IDX(vptr, idx) (vptr->rd_ring[idx]) |
Typedefs | |
| typedef u8 | MCAM_ADDR [ETH_ALEN] |
Enumerations | |
| enum | { OWNED_BY_HOST = 0, OWNED_BY_NIC = 1 } |
| enum | hw_mib { HW_MIB_ifRxAllPkts = 0, HW_MIB_ifRxOkPkts, HW_MIB_ifTxOkPkts, HW_MIB_ifRxErrorPkts, HW_MIB_ifRxRuntOkPkt, HW_MIB_ifRxRuntErrPkt, HW_MIB_ifRx64Pkts, HW_MIB_ifTx64Pkts, HW_MIB_ifRx65To127Pkts, HW_MIB_ifTx65To127Pkts, HW_MIB_ifRx128To255Pkts, HW_MIB_ifTx128To255Pkts, HW_MIB_ifRx256To511Pkts, HW_MIB_ifTx256To511Pkts, HW_MIB_ifRx512To1023Pkts, HW_MIB_ifTx512To1023Pkts, HW_MIB_ifRx1024To1518Pkts, HW_MIB_ifTx1024To1518Pkts, HW_MIB_ifTxEtherCollisions, HW_MIB_ifRxPktCRCE, HW_MIB_ifRxJumboPkts, HW_MIB_ifTxJumboPkts, HW_MIB_ifRxMacControlFrames, HW_MIB_ifTxMacControlFrames, HW_MIB_ifRxPktFAE, HW_MIB_ifRxLongOkPkt, HW_MIB_ifRxLongPktErrPkt, HW_MIB_ifTXSQEErrors, HW_MIB_ifRxNobuf, HW_MIB_ifRxSymbolErrors, HW_MIB_ifInRangeLengthErrors, HW_MIB_ifLateCollisions, HW_MIB_SIZE } |
| enum | chip_type { CHIP_TYPE_VT6110 = 1 } |
| enum | velocity_cam_type { VELOCITY_VLAN_ID_CAM = 0, VELOCITY_MULTICAST_CAM } |
| enum | speed_opt { SPD_DPX_AUTO = 0, SPD_DPX_100_HALF = 1, SPD_DPX_100_FULL = 2, SPD_DPX_10_HALF = 3, SPD_DPX_10_FULL = 4 } |
| enum | velocity_init_type { VELOCITY_INIT_COLD = 0, VELOCITY_INIT_RESET, VELOCITY_INIT_WOL } |
| enum | velocity_flow_cntl_type { FLOW_CNTL_DEFAULT = 1, FLOW_CNTL_TX, FLOW_CNTL_RX, FLOW_CNTL_TX_RX, FLOW_CNTL_DISABLE } |
Functions | |
| static void | mac_get_cam_mask (struct mac_regs *regs, u8 *mask, enum velocity_cam_type cam_type) |
| mac_get_cam_mask - Read a CAM mask : register block for this velocity : buffer to store mask : CAM to fetch | |
| static void | mac_set_cam_mask (struct mac_regs *regs, u8 *mask, enum velocity_cam_type cam_type) |
| mac_set_cam_mask - Set a CAM mask : register block for this velocity : CAM mask to load : CAM to store | |
| static void | mac_set_cam (struct mac_regs *regs, int idx, u8 *addr, enum velocity_cam_type cam_type) |
| mac_set_cam - set CAM data : register block of this velocity : Cam index : 2 or 6 bytes of CAM data : CAM to load | |
| static void | mac_get_cam (struct mac_regs *regs, int idx, u8 *addr, enum velocity_cam_type cam_type) |
| mac_get_cam - fetch CAM data : register block of this velocity : Cam index : buffer to hold up to 6 bytes of CAM data : CAM to load | |
| static void | mac_wol_reset (struct mac_regs *regs) |
| mac_wol_reset - reset WOL after exiting low power : register block of this velocity | |
| static void | init_flow_control_register (struct velocity_info *vptr) |
| init_flow_control_register - set up flow control : velocity to configure | |
Variables | |
| struct rx_desc | __packed__ |
| enum { ... } | velocity_owner |
| static struct velocity_info_tbl * | info |
| static struct velocity_info | vptx |
| static struct velocity_info * | vptr |
| #define VELOCITY_TX_CSUM_SUPPORT |
Definition at line 30 of file via-velocity.h.
| #define VELOCITY_NAME "via-velocity" |
Definition at line 32 of file via-velocity.h.
| #define VELOCITY_FULL_DRV_NAM "VIA Networking Velocity Family Gigabit Ethernet Adapter Driver" |
Definition at line 33 of file via-velocity.h.
| #define VELOCITY_VERSION "1.13" |
Definition at line 34 of file via-velocity.h.
| #define PKT_BUF_SZ 1564 |
Definition at line 36 of file via-velocity.h.
| #define MAX_UNITS 8 |
Definition at line 38 of file via-velocity.h.
| #define OPTION_DEFAULT { [0 ... MAX_UNITS-1] = -1} |
Definition at line 39 of file via-velocity.h.
| #define REV_ID_VT6110 (0) |
Definition at line 41 of file via-velocity.h.
| #define BYTE_REG_BITS_ON | ( | x, | |||
| p | ) | do { writeb(readb((p))|(x),(p));} while (0) |
Definition at line 43 of file via-velocity.h.
Referenced by mac_get_cam(), mac_set_cam(), velocity_mii_read(), velocity_mii_write(), and velocity_set_media_mode().
| #define WORD_REG_BITS_ON | ( | x, | |||
| p | ) | do { writew(readw((p))|(x),(p));} while (0) |
| #define DWORD_REG_BITS_ON | ( | x, | |||
| p | ) | do { writel(readl((p))|(x),(p));} while (0) |
Definition at line 45 of file via-velocity.h.
| #define BYTE_REG_BITS_IS_ON | ( | x, | |||
| p | ) | (readb((p)) & (x)) |
Definition at line 47 of file via-velocity.h.
Referenced by enable_flow_control_ability(), enable_mii_autopoll(), and safe_disable_mii_autopoll().
| #define WORD_REG_BITS_IS_ON | ( | x, | |||
| p | ) | (readw((p)) & (x)) |
Definition at line 48 of file via-velocity.h.
| #define DWORD_REG_BITS_IS_ON | ( | x, | |||
| p | ) | (readl((p)) & (x)) |
| #define BYTE_REG_BITS_OFF | ( | x, | |||
| p | ) | do { writeb(readb((p)) & (~(x)),(p));} while (0) |
Definition at line 51 of file via-velocity.h.
Referenced by mac_wol_reset(), velocity_init_registers(), and velocity_set_media_mode().
| #define WORD_REG_BITS_OFF | ( | x, | |||
| p | ) | do { writew(readw((p)) & (~(x)),(p));} while (0) |
Definition at line 52 of file via-velocity.h.
| #define DWORD_REG_BITS_OFF | ( | x, | |||
| p | ) | do { writel(readl((p)) & (~(x)),(p));} while (0) |
Definition at line 53 of file via-velocity.h.
| #define BYTE_REG_BITS_SET | ( | x, | |||
| m, | |||||
| p | ) | do { writeb( (readb((p)) & (~(m))) |(x),(p));} while (0) |
Definition at line 55 of file via-velocity.h.
Referenced by mac_get_cam(), mac_get_cam_mask(), mac_set_cam(), mac_set_cam_mask(), and velocity_init_registers().
| #define WORD_REG_BITS_SET | ( | x, | |||
| m, | |||||
| p | ) | do { writew( (readw((p)) & (~(m))) |(x),(p));} while (0) |
| #define DWORD_REG_BITS_SET | ( | x, | |||
| m, | |||||
| p | ) | do { writel( (readl((p)) & (~(m)))|(x),(p));} while (0) |
Definition at line 57 of file via-velocity.h.
| #define VAR_USED | ( | p | ) | do {(p)=(p);} while (0) |
Definition at line 59 of file via-velocity.h.
| #define B_OWNED_BY_CHIP 1 |
Definition at line 66 of file via-velocity.h.
| #define B_OWNED_BY_HOST 0 |
Definition at line 67 of file via-velocity.h.
| #define RSR_DETAG 0x0080 |
Definition at line 73 of file via-velocity.h.
| #define RSR_SNTAG 0x0040 |
Definition at line 74 of file via-velocity.h.
| #define RSR_RXER 0x0020 |
Definition at line 75 of file via-velocity.h.
| #define RSR_RL 0x0010 |
| #define RSR_CE 0x0008 |
| #define RSR_FAE 0x0004 |
Definition at line 78 of file via-velocity.h.
| #define RSR_CRC 0x0002 |
Definition at line 79 of file via-velocity.h.
| #define RSR_VIDM 0x0001 |
Definition at line 80 of file via-velocity.h.
| #define RSR_RXOK 0x8000 |
Definition at line 86 of file via-velocity.h.
| #define RSR_PFT 0x4000 |
Definition at line 87 of file via-velocity.h.
| #define RSR_MAR 0x2000 |
Definition at line 88 of file via-velocity.h.
| #define RSR_BAR 0x1000 |
Definition at line 89 of file via-velocity.h.
| #define RSR_PHY 0x0800 |
Definition at line 90 of file via-velocity.h.
| #define RSR_VTAG 0x0400 |
Definition at line 91 of file via-velocity.h.
| #define RSR_STP 0x0200 |
Definition at line 92 of file via-velocity.h.
| #define RSR_EDP 0x0100 |
Definition at line 93 of file via-velocity.h.
| #define RSR1_RXOK 0x80 |
Definition at line 99 of file via-velocity.h.
| #define RSR1_PFT 0x40 |
Definition at line 100 of file via-velocity.h.
| #define RSR1_MAR 0x20 |
Definition at line 101 of file via-velocity.h.
| #define RSR1_BAR 0x10 |
Definition at line 102 of file via-velocity.h.
| #define RSR1_PHY 0x08 |
Definition at line 103 of file via-velocity.h.
| #define RSR1_VTAG 0x04 |
Definition at line 104 of file via-velocity.h.
| #define RSR1_STP 0x02 |
Definition at line 105 of file via-velocity.h.
| #define RSR1_EDP 0x01 |
Definition at line 106 of file via-velocity.h.
| #define CSM_IPOK 0x40 |
Definition at line 112 of file via-velocity.h.
| #define CSM_TUPOK 0x20 |
Definition at line 113 of file via-velocity.h.
| #define CSM_FRAG 0x10 |
Definition at line 114 of file via-velocity.h.
| #define CSM_IPKT 0x04 |
Definition at line 115 of file via-velocity.h.
| #define CSM_TCPKT 0x02 |
Definition at line 116 of file via-velocity.h.
| #define CSM_UDPKT 0x01 |
Definition at line 117 of file via-velocity.h.
| #define TSR0_ABT 0x0080 |
Definition at line 123 of file via-velocity.h.
| #define TSR0_OWT 0x0040 |
Definition at line 124 of file via-velocity.h.
| #define TSR0_OWC 0x0020 |
Definition at line 125 of file via-velocity.h.
| #define TSR0_COLS 0x0010 |
Definition at line 126 of file via-velocity.h.
| #define TSR0_NCR3 0x0008 |
Definition at line 127 of file via-velocity.h.
| #define TSR0_NCR2 0x0004 |
Definition at line 128 of file via-velocity.h.
| #define TSR0_NCR1 0x0002 |
Definition at line 129 of file via-velocity.h.
| #define TSR0_NCR0 0x0001 |
Definition at line 130 of file via-velocity.h.
| #define TSR0_TERR 0x8000 |
Definition at line 131 of file via-velocity.h.
| #define TSR0_FDX 0x4000 |
Definition at line 132 of file via-velocity.h.
| #define TSR0_GMII 0x2000 |
Definition at line 133 of file via-velocity.h.
| #define TSR0_LNKFL 0x1000 |
Definition at line 134 of file via-velocity.h.
| #define TSR0_SHDN 0x0400 |
Definition at line 135 of file via-velocity.h.
| #define TSR0_CRS 0x0200 |
Definition at line 136 of file via-velocity.h.
| #define TSR0_CDH 0x0100 |
Definition at line 137 of file via-velocity.h.
| #define TSR1_TERR 0x80 |
Definition at line 143 of file via-velocity.h.
| #define TSR1_FDX 0x40 |
Definition at line 144 of file via-velocity.h.
| #define TSR1_GMII 0x20 |
Definition at line 145 of file via-velocity.h.
| #define TSR1_LNKFL 0x10 |
Definition at line 146 of file via-velocity.h.
| #define TSR1_SHDN 0x04 |
Definition at line 147 of file via-velocity.h.
| #define TSR1_CRS 0x02 |
Definition at line 148 of file via-velocity.h.
| #define TSR1_CDH 0x01 |
Definition at line 149 of file via-velocity.h.
| #define TCR0_TIC 0x80 |
| #define TCR0_PIC 0x40 |
Definition at line 155 of file via-velocity.h.
| #define TCR0_VETAG 0x20 |
| #define TCR0_IPCK 0x10 |
Definition at line 157 of file via-velocity.h.
| #define TCR0_UDPCK 0x08 |
Definition at line 158 of file via-velocity.h.
| #define TCR0_TCPCK 0x04 |
Definition at line 159 of file via-velocity.h.
| #define TCR0_JMBO 0x02 |
Definition at line 160 of file via-velocity.h.
| #define TCR0_CRC 0x01 |
Definition at line 161 of file via-velocity.h.
| #define TCPLS_NORMAL 3 |
| #define TCPLS_START 2 |
Definition at line 164 of file via-velocity.h.
| #define TCPLS_END 1 |
Definition at line 165 of file via-velocity.h.
| #define TCPLS_MED 0 |
Definition at line 166 of file via-velocity.h.
| #define CB_RX_BUF_SIZE 2048UL |
Definition at line 170 of file via-velocity.h.
| #define CB_MAX_RD_NUM 512 |
Definition at line 173 of file via-velocity.h.
| #define CB_MAX_TD_NUM 256 |
Definition at line 174 of file via-velocity.h.
| #define CB_INIT_RD_NUM_3119 128 |
Definition at line 176 of file via-velocity.h.
| #define CB_INIT_TD_NUM_3119 64 |
Definition at line 177 of file via-velocity.h.
| #define CB_INIT_RD_NUM 128 |
Definition at line 179 of file via-velocity.h.
| #define CB_INIT_TD_NUM 64 |
Definition at line 180 of file via-velocity.h.
| #define CB_TD_RING_NUM 4 |
Definition at line 183 of file via-velocity.h.
| #define CB_MAX_SEG_PER_PKT 7 |
Definition at line 184 of file via-velocity.h.
| #define CB_MAX_TX_ABORT_RETRY 3 |
Definition at line 193 of file via-velocity.h.
| #define MCAM_SIZE 64 |
| #define VCAM_SIZE 64 |
Definition at line 312 of file via-velocity.h.
| #define TX_QUEUE_NO 4 |
Definition at line 313 of file via-velocity.h.
| #define MAX_HW_MIB_COUNTER 32 |
Definition at line 315 of file via-velocity.h.
| #define VELOCITY_MIN_MTU (1514-14) |
Definition at line 316 of file via-velocity.h.
| #define VELOCITY_MAX_MTU (9000) |
Definition at line 317 of file via-velocity.h.
| #define MAC_REG_PAR 0x00 |
Definition at line 323 of file via-velocity.h.
| #define MAC_REG_RCR 0x06 |
Definition at line 324 of file via-velocity.h.
| #define MAC_REG_TCR 0x07 |
Definition at line 325 of file via-velocity.h.
| #define MAC_REG_CR0_SET 0x08 |
Definition at line 326 of file via-velocity.h.
| #define MAC_REG_CR1_SET 0x09 |
Definition at line 327 of file via-velocity.h.
| #define MAC_REG_CR2_SET 0x0A |
Definition at line 328 of file via-velocity.h.
| #define MAC_REG_CR3_SET 0x0B |
Definition at line 329 of file via-velocity.h.
| #define MAC_REG_CR0_CLR 0x0C |
Definition at line 330 of file via-velocity.h.
| #define MAC_REG_CR1_CLR 0x0D |
Definition at line 331 of file via-velocity.h.
| #define MAC_REG_CR2_CLR 0x0E |
Definition at line 332 of file via-velocity.h.
| #define MAC_REG_CR3_CLR 0x0F |
Definition at line 333 of file via-velocity.h.
| #define MAC_REG_MAR 0x10 |
Definition at line 334 of file via-velocity.h.
| #define MAC_REG_CAM 0x10 |
Definition at line 335 of file via-velocity.h.
| #define MAC_REG_DEC_BASE_HI 0x18 |
Definition at line 336 of file via-velocity.h.
| #define MAC_REG_DBF_BASE_HI 0x1C |
Definition at line 337 of file via-velocity.h.
| #define MAC_REG_ISR_CTL 0x20 |
Definition at line 338 of file via-velocity.h.
| #define MAC_REG_ISR_HOTMR 0x20 |
Definition at line 339 of file via-velocity.h.
| #define MAC_REG_ISR_TSUPTHR 0x20 |
Definition at line 340 of file via-velocity.h.
| #define MAC_REG_ISR_RSUPTHR 0x20 |
Definition at line 341 of file via-velocity.h.
| #define MAC_REG_ISR_CTL1 0x21 |
Definition at line 342 of file via-velocity.h.
| #define MAC_REG_TXE_SR 0x22 |
Definition at line 343 of file via-velocity.h.
| #define MAC_REG_RXE_SR 0x23 |
Definition at line 344 of file via-velocity.h.
| #define MAC_REG_ISR 0x24 |
Definition at line 345 of file via-velocity.h.
| #define MAC_REG_ISR0 0x24 |
Definition at line 346 of file via-velocity.h.
| #define MAC_REG_ISR1 0x25 |
Definition at line 347 of file via-velocity.h.
| #define MAC_REG_ISR2 0x26 |
Definition at line 348 of file via-velocity.h.
| #define MAC_REG_ISR3 0x27 |
Definition at line 349 of file via-velocity.h.
| #define MAC_REG_IMR 0x28 |
Definition at line 350 of file via-velocity.h.
| #define MAC_REG_IMR0 0x28 |
Definition at line 351 of file via-velocity.h.
| #define MAC_REG_IMR1 0x29 |
Definition at line 352 of file via-velocity.h.
| #define MAC_REG_IMR2 0x2A |
Definition at line 353 of file via-velocity.h.
| #define MAC_REG_IMR3 0x2B |
Definition at line 354 of file via-velocity.h.
| #define MAC_REG_TDCSR_SET 0x30 |
Definition at line 355 of file via-velocity.h.
| #define MAC_REG_RDCSR_SET 0x32 |
Definition at line 356 of file via-velocity.h.
| #define MAC_REG_TDCSR_CLR 0x34 |
Definition at line 357 of file via-velocity.h.
| #define MAC_REG_RDCSR_CLR 0x36 |
Definition at line 358 of file via-velocity.h.
| #define MAC_REG_RDBASE_LO 0x38 |
Definition at line 359 of file via-velocity.h.
| #define MAC_REG_RDINDX 0x3C |
Definition at line 360 of file via-velocity.h.
| #define MAC_REG_TDBASE_LO 0x40 |
Definition at line 361 of file via-velocity.h.
| #define MAC_REG_RDCSIZE 0x50 |
Definition at line 362 of file via-velocity.h.
| #define MAC_REG_TDCSIZE 0x52 |
Definition at line 363 of file via-velocity.h.
| #define MAC_REG_TDINDX 0x54 |
Definition at line 364 of file via-velocity.h.
| #define MAC_REG_TDIDX0 0x54 |
Definition at line 365 of file via-velocity.h.
| #define MAC_REG_TDIDX1 0x56 |
Definition at line 366 of file via-velocity.h.
| #define MAC_REG_TDIDX2 0x58 |
Definition at line 367 of file via-velocity.h.
| #define MAC_REG_TDIDX3 0x5A |
Definition at line 368 of file via-velocity.h.
| #define MAC_REG_PAUSE_TIMER 0x5C |
Definition at line 369 of file via-velocity.h.
| #define MAC_REG_RBRDU 0x5E |
Definition at line 370 of file via-velocity.h.
| #define MAC_REG_FIFO_TEST0 0x60 |
Definition at line 371 of file via-velocity.h.
| #define MAC_REG_FIFO_TEST1 0x64 |
Definition at line 372 of file via-velocity.h.
| #define MAC_REG_CAMADDR 0x68 |
Definition at line 373 of file via-velocity.h.
| #define MAC_REG_CAMCR 0x69 |
Definition at line 374 of file via-velocity.h.
| #define MAC_REG_GFTEST 0x6A |
Definition at line 375 of file via-velocity.h.
| #define MAC_REG_FTSTCMD 0x6B |
Definition at line 376 of file via-velocity.h.
| #define MAC_REG_MIICFG 0x6C |
Definition at line 377 of file via-velocity.h.
| #define MAC_REG_MIISR 0x6D |
Definition at line 378 of file via-velocity.h.
| #define MAC_REG_PHYSR0 0x6E |
Definition at line 379 of file via-velocity.h.
| #define MAC_REG_PHYSR1 0x6F |
Definition at line 380 of file via-velocity.h.
| #define MAC_REG_MIICR 0x70 |
Definition at line 381 of file via-velocity.h.
| #define MAC_REG_MIIADR 0x71 |
Definition at line 382 of file via-velocity.h.
| #define MAC_REG_MIIDATA 0x72 |
Definition at line 383 of file via-velocity.h.
| #define MAC_REG_SOFT_TIMER0 0x74 |
Definition at line 384 of file via-velocity.h.
| #define MAC_REG_SOFT_TIMER1 0x76 |
Definition at line 385 of file via-velocity.h.
| #define MAC_REG_CFGA 0x78 |
Definition at line 386 of file via-velocity.h.
| #define MAC_REG_CFGB 0x79 |
Definition at line 387 of file via-velocity.h.
| #define MAC_REG_CFGC 0x7A |
Definition at line 388 of file via-velocity.h.
| #define MAC_REG_CFGD 0x7B |
Definition at line 389 of file via-velocity.h.
| #define MAC_REG_DCFG0 0x7C |
Definition at line 390 of file via-velocity.h.
| #define MAC_REG_DCFG1 0x7D |
Definition at line 391 of file via-velocity.h.
| #define MAC_REG_MCFG0 0x7E |
Definition at line 392 of file via-velocity.h.
| #define MAC_REG_MCFG1 0x7F |
Definition at line 393 of file via-velocity.h.
| #define MAC_REG_TBIST 0x80 |
Definition at line 395 of file via-velocity.h.
| #define MAC_REG_RBIST 0x81 |
Definition at line 396 of file via-velocity.h.
| #define MAC_REG_PMCC 0x82 |
Definition at line 397 of file via-velocity.h.
| #define MAC_REG_STICKHW 0x83 |
Definition at line 398 of file via-velocity.h.
| #define MAC_REG_MIBCR 0x84 |
Definition at line 399 of file via-velocity.h.
| #define MAC_REG_EERSV 0x85 |
Definition at line 400 of file via-velocity.h.
| #define MAC_REG_REVID 0x86 |
Definition at line 401 of file via-velocity.h.
| #define MAC_REG_MIBREAD 0x88 |
Definition at line 402 of file via-velocity.h.
| #define MAC_REG_BPMA 0x8C |
Definition at line 403 of file via-velocity.h.
| #define MAC_REG_EEWR_DATA 0x8C |
Definition at line 404 of file via-velocity.h.
| #define MAC_REG_BPMD_WR 0x8F |
Definition at line 405 of file via-velocity.h.
| #define MAC_REG_BPCMD 0x90 |
Definition at line 406 of file via-velocity.h.
| #define MAC_REG_BPMD_RD 0x91 |
Definition at line 407 of file via-velocity.h.
| #define MAC_REG_EECHKSUM 0x92 |
Definition at line 408 of file via-velocity.h.
| #define MAC_REG_EECSR 0x93 |
Definition at line 409 of file via-velocity.h.
| #define MAC_REG_EERD_DATA 0x94 |
Definition at line 410 of file via-velocity.h.
| #define MAC_REG_EADDR 0x96 |
Definition at line 411 of file via-velocity.h.
| #define MAC_REG_EMBCMD 0x97 |
Definition at line 412 of file via-velocity.h.
| #define MAC_REG_JMPSR0 0x98 |
Definition at line 413 of file via-velocity.h.
| #define MAC_REG_JMPSR1 0x99 |
Definition at line 414 of file via-velocity.h.
| #define MAC_REG_JMPSR2 0x9A |
Definition at line 415 of file via-velocity.h.
| #define MAC_REG_JMPSR3 0x9B |
Definition at line 416 of file via-velocity.h.
| #define MAC_REG_CHIPGSR 0x9C |
Definition at line 417 of file via-velocity.h.
| #define MAC_REG_TESTCFG 0x9D |
Definition at line 418 of file via-velocity.h.
| #define MAC_REG_DEBUG 0x9E |
Definition at line 419 of file via-velocity.h.
| #define MAC_REG_CHIPGCR 0x9F |
Definition at line 420 of file via-velocity.h.
| #define MAC_REG_WOLCR0_SET 0xA0 |
Definition at line 421 of file via-velocity.h.
| #define MAC_REG_WOLCR1_SET 0xA1 |
Definition at line 422 of file via-velocity.h.
| #define MAC_REG_PWCFG_SET 0xA2 |
Definition at line 423 of file via-velocity.h.
| #define MAC_REG_WOLCFG_SET 0xA3 |
Definition at line 424 of file via-velocity.h.
| #define MAC_REG_WOLCR0_CLR 0xA4 |
Definition at line 425 of file via-velocity.h.
| #define MAC_REG_WOLCR1_CLR 0xA5 |
Definition at line 426 of file via-velocity.h.
| #define MAC_REG_PWCFG_CLR 0xA6 |
Definition at line 427 of file via-velocity.h.
| #define MAC_REG_WOLCFG_CLR 0xA7 |
Definition at line 428 of file via-velocity.h.
| #define MAC_REG_WOLSR0_SET 0xA8 |
Definition at line 429 of file via-velocity.h.
| #define MAC_REG_WOLSR1_SET 0xA9 |
Definition at line 430 of file via-velocity.h.
| #define MAC_REG_WOLSR0_CLR 0xAC |
Definition at line 431 of file via-velocity.h.
| #define MAC_REG_WOLSR1_CLR 0xAD |
Definition at line 432 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC0 0xB0 |
Definition at line 433 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC1 0xB2 |
Definition at line 434 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC2 0xB4 |
Definition at line 435 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC3 0xB6 |
Definition at line 436 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC4 0xB8 |
Definition at line 437 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC5 0xBA |
Definition at line 438 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC6 0xBC |
Definition at line 439 of file via-velocity.h.
| #define MAC_REG_PATRN_CRC7 0xBE |
Definition at line 440 of file via-velocity.h.
| #define MAC_REG_BYTEMSK0_0 0xC0 |
Definition at line 441 of file via-velocity.h.
| #define MAC_REG_BYTEMSK0_1 0xC4 |
Definition at line 442 of file via-velocity.h.
| #define MAC_REG_BYTEMSK0_2 0xC8 |
Definition at line 443 of file via-velocity.h.
| #define MAC_REG_BYTEMSK0_3 0xCC |
Definition at line 444 of file via-velocity.h.
| #define MAC_REG_BYTEMSK1_0 0xD0 |
Definition at line 445 of file via-velocity.h.
| #define MAC_REG_BYTEMSK1_1 0xD4 |
Definition at line 446 of file via-velocity.h.
| #define MAC_REG_BYTEMSK1_2 0xD8 |
Definition at line 447 of file via-velocity.h.
| #define MAC_REG_BYTEMSK1_3 0xDC |
Definition at line 448 of file via-velocity.h.
| #define MAC_REG_BYTEMSK2_0 0xE0 |
Definition at line 449 of file via-velocity.h.
| #define MAC_REG_BYTEMSK2_1 0xE4 |
Definition at line 450 of file via-velocity.h.
| #define MAC_REG_BYTEMSK2_2 0xE8 |
Definition at line 451 of file via-velocity.h.
| #define MAC_REG_BYTEMSK2_3 0xEC |
Definition at line 452 of file via-velocity.h.
| #define MAC_REG_BYTEMSK3_0 0xF0 |
Definition at line 453 of file via-velocity.h.
| #define MAC_REG_BYTEMSK3_1 0xF4 |
Definition at line 454 of file via-velocity.h.
| #define MAC_REG_BYTEMSK3_2 0xF8 |
Definition at line 455 of file via-velocity.h.
| #define MAC_REG_BYTEMSK3_3 0xFC |
Definition at line 456 of file via-velocity.h.
| #define RCR_AS 0x80 |
Definition at line 462 of file via-velocity.h.
| #define RCR_AP 0x40 |
Definition at line 463 of file via-velocity.h.
| #define RCR_AL 0x20 |
Definition at line 464 of file via-velocity.h.
| #define RCR_PROM 0x10 |
Definition at line 465 of file via-velocity.h.
| #define RCR_AB 0x08 |
Definition at line 466 of file via-velocity.h.
| #define RCR_AM 0x04 |
Definition at line 467 of file via-velocity.h.
| #define RCR_AR 0x02 |
Definition at line 468 of file via-velocity.h.
| #define RCR_SEP 0x01 |
Definition at line 469 of file via-velocity.h.
| #define TCR_TB2BDIS 0x80 |
| #define TCR_COLTMC1 0x08 |
Definition at line 476 of file via-velocity.h.
| #define TCR_COLTMC0 0x04 |
Definition at line 477 of file via-velocity.h.
| #define TCR_LB1 0x02 |
Definition at line 478 of file via-velocity.h.
| #define TCR_LB0 0x01 |
Definition at line 479 of file via-velocity.h.
| #define CR0_TXON 0x00000008UL |
Definition at line 485 of file via-velocity.h.
| #define CR0_RXON 0x00000004UL |
Definition at line 486 of file via-velocity.h.
| #define CR0_STOP 0x00000002UL |
Definition at line 487 of file via-velocity.h.
| #define CR0_STRT 0x00000001UL |
Definition at line 488 of file via-velocity.h.
| #define CR0_SFRST 0x00008000UL |
| #define CR0_TM1EN 0x00004000UL |
Definition at line 490 of file via-velocity.h.
| #define CR0_TM0EN 0x00002000UL |
Definition at line 491 of file via-velocity.h.
| #define CR0_DPOLL 0x00000800UL |
| #define CR0_DISAU 0x00000100UL |
Definition at line 493 of file via-velocity.h.
| #define CR0_XONEN 0x00800000UL |
| #define CR0_FDXTFCEN 0x00400000UL |
Definition at line 495 of file via-velocity.h.
Referenced by enable_flow_control_ability(), and init_flow_control_register().
| #define CR0_FDXRFCEN 0x00200000UL |
Definition at line 496 of file via-velocity.h.
Referenced by enable_flow_control_ability(), and init_flow_control_register().
| #define CR0_HDXFCEN 0x00100000UL |
| #define CR0_XHITH1 0x00080000UL |
| #define CR0_XHITH0 0x00040000UL |
| #define CR0_XLTH1 0x00020000UL |
| #define CR0_XLTH0 0x00010000UL |
| #define CR0_GSPRST 0x80000000UL |
Definition at line 502 of file via-velocity.h.
| #define CR0_FORSRST 0x40000000UL |
| #define CR0_FPHYRST 0x20000000UL |
Definition at line 504 of file via-velocity.h.
| #define CR0_DIAG 0x10000000UL |
Definition at line 505 of file via-velocity.h.
| #define CR0_INTPCTL 0x04000000UL |
Definition at line 506 of file via-velocity.h.
| #define CR0_GINTMSK1 0x02000000UL |
Definition at line 507 of file via-velocity.h.
| #define CR0_GINTMSK0 0x01000000UL |
Definition at line 508 of file via-velocity.h.
| #define CR1_SFRST 0x80 |
Definition at line 514 of file via-velocity.h.
| #define CR1_TM1EN 0x40 |
Definition at line 515 of file via-velocity.h.
| #define CR1_TM0EN 0x20 |
Definition at line 516 of file via-velocity.h.
| #define CR1_DPOLL 0x08 |
Definition at line 517 of file via-velocity.h.
| #define CR1_DISAU 0x01 |
Definition at line 518 of file via-velocity.h.
| #define CR2_XONEN 0x80 |
Definition at line 524 of file via-velocity.h.
| #define CR2_FDXTFCEN 0x40 |
Definition at line 525 of file via-velocity.h.
| #define CR2_FDXRFCEN 0x20 |
Definition at line 526 of file via-velocity.h.
| #define CR2_HDXFCEN 0x10 |
Definition at line 527 of file via-velocity.h.
| #define CR2_XHITH1 0x08 |
Definition at line 528 of file via-velocity.h.
| #define CR2_XHITH0 0x04 |
Definition at line 529 of file via-velocity.h.
| #define CR2_XLTH1 0x02 |
Definition at line 530 of file via-velocity.h.
| #define CR2_XLTH0 0x01 |
Definition at line 531 of file via-velocity.h.
| #define CR3_GSPRST 0x80 |
Definition at line 537 of file via-velocity.h.
| #define CR3_FORSRST 0x40 |
Definition at line 538 of file via-velocity.h.
| #define CR3_FPHYRST 0x20 |
Definition at line 539 of file via-velocity.h.
| #define CR3_DIAG 0x10 |
Definition at line 540 of file via-velocity.h.
| #define CR3_INTPCTL 0x04 |
Definition at line 541 of file via-velocity.h.
| #define CR3_GINTMSK1 0x02 |
Definition at line 542 of file via-velocity.h.
| #define CR3_GINTMSK0 0x01 |
Definition at line 543 of file via-velocity.h.
| #define ISRCTL_UDPINT 0x8000 |
Definition at line 545 of file via-velocity.h.
| #define ISRCTL_TSUPDIS 0x4000 |
Definition at line 546 of file via-velocity.h.
| #define ISRCTL_RSUPDIS 0x2000 |
Definition at line 547 of file via-velocity.h.
| #define ISRCTL_PMSK1 0x1000 |
Definition at line 548 of file via-velocity.h.
| #define ISRCTL_PMSK0 0x0800 |
Definition at line 549 of file via-velocity.h.
| #define ISRCTL_INTPD 0x0400 |
Definition at line 550 of file via-velocity.h.
| #define ISRCTL_HCRLD 0x0200 |
Definition at line 551 of file via-velocity.h.
| #define ISRCTL_SCRLD 0x0100 |
Definition at line 552 of file via-velocity.h.
| #define ISRCTL1_UDPINT 0x80 |
Definition at line 558 of file via-velocity.h.
| #define ISRCTL1_TSUPDIS 0x40 |
Definition at line 559 of file via-velocity.h.
| #define ISRCTL1_RSUPDIS 0x20 |
Definition at line 560 of file via-velocity.h.
| #define ISRCTL1_PMSK1 0x10 |
Definition at line 561 of file via-velocity.h.
| #define ISRCTL1_PMSK0 0x08 |
Definition at line 562 of file via-velocity.h.
| #define ISRCTL1_INTPD 0x04 |
Definition at line 563 of file via-velocity.h.
| #define ISRCTL1_HCRLD 0x02 |
Definition at line 564 of file via-velocity.h.
| #define ISRCTL1_SCRLD 0x01 |
Definition at line 565 of file via-velocity.h.
| #define TXESR_TFDBS 0x08 |
Definition at line 571 of file via-velocity.h.
| #define TXESR_TDWBS 0x04 |
Definition at line 572 of file via-velocity.h.
| #define TXESR_TDRBS 0x02 |
Definition at line 573 of file via-velocity.h.
| #define TXESR_TDSTR 0x01 |
Definition at line 574 of file via-velocity.h.
| #define RXESR_RFDBS 0x08 |
Definition at line 580 of file via-velocity.h.
| #define RXESR_RDWBS 0x04 |
Definition at line 581 of file via-velocity.h.
| #define RXESR_RDRBS 0x02 |
Definition at line 582 of file via-velocity.h.
| #define RXESR_RDSTR 0x01 |
Definition at line 583 of file via-velocity.h.
| #define ISR_ISR3 0x80000000UL |
Definition at line 589 of file via-velocity.h.
| #define ISR_ISR2 0x40000000UL |
Definition at line 590 of file via-velocity.h.
| #define ISR_ISR1 0x20000000UL |
Definition at line 591 of file via-velocity.h.
| #define ISR_ISR0 0x10000000UL |
Definition at line 592 of file via-velocity.h.
| #define ISR_TXSTLI 0x02000000UL |
Definition at line 593 of file via-velocity.h.
| #define ISR_RXSTLI 0x01000000UL |
Definition at line 594 of file via-velocity.h.
| #define ISR_HFLD 0x00800000UL |
Definition at line 595 of file via-velocity.h.
| #define ISR_UDPI 0x00400000UL |
Definition at line 596 of file via-velocity.h.
| #define ISR_MIBFI 0x00200000UL |
Definition at line 597 of file via-velocity.h.
| #define ISR_SHDNI 0x00100000UL |
Definition at line 598 of file via-velocity.h.
| #define ISR_PHYI 0x00080000UL |
Definition at line 599 of file via-velocity.h.
| #define ISR_PWEI 0x00040000UL |
Definition at line 600 of file via-velocity.h.
| #define ISR_TMR1I 0x00020000UL |
Definition at line 601 of file via-velocity.h.
| #define ISR_TMR0I 0x00010000UL |
Definition at line 602 of file via-velocity.h.
| #define ISR_SRCI 0x00008000UL |
Definition at line 603 of file via-velocity.h.
| #define ISR_LSTPEI 0x00004000UL |
Definition at line 604 of file via-velocity.h.
| #define ISR_LSTEI 0x00002000UL |
Definition at line 605 of file via-velocity.h.
| #define ISR_OVFI 0x00001000UL |
Definition at line 606 of file via-velocity.h.
| #define ISR_FLONI 0x00000800UL |
Definition at line 607 of file via-velocity.h.
| #define ISR_RACEI 0x00000400UL |
Definition at line 608 of file via-velocity.h.
| #define ISR_TXWB1I 0x00000200UL |
Definition at line 609 of file via-velocity.h.
| #define ISR_TXWB0I 0x00000100UL |
Definition at line 610 of file via-velocity.h.
| #define ISR_PTX3I 0x00000080UL |
Definition at line 611 of file via-velocity.h.
| #define ISR_PTX2I 0x00000040UL |
Definition at line 612 of file via-velocity.h.
| #define ISR_PTX1I 0x00000020UL |
Definition at line 613 of file via-velocity.h.
| #define ISR_PTX0I 0x00000010UL |
Definition at line 614 of file via-velocity.h.
| #define ISR_PTXI 0x00000008UL |
Definition at line 615 of file via-velocity.h.
| #define ISR_PRXI 0x00000004UL |
Definition at line 616 of file via-velocity.h.
| #define ISR_PPTXI 0x00000002UL |
Definition at line 617 of file via-velocity.h.
| #define ISR_PPRXI 0x00000001UL |
Definition at line 618 of file via-velocity.h.
| #define IMR_TXSTLM 0x02000000UL |
Definition at line 624 of file via-velocity.h.
| #define IMR_UDPIM 0x00400000UL |
Definition at line 625 of file via-velocity.h.
| #define IMR_MIBFIM 0x00200000UL |
Definition at line 626 of file via-velocity.h.
| #define IMR_SHDNIM 0x00100000UL |
Definition at line 627 of file via-velocity.h.
| #define IMR_PHYIM 0x00080000UL |
Definition at line 628 of file via-velocity.h.
| #define IMR_PWEIM 0x00040000UL |
Definition at line 629 of file via-velocity.h.
| #define IMR_TMR1IM 0x00020000UL |
Definition at line 630 of file via-velocity.h.
| #define IMR_TMR0IM 0x00010000UL |
Definition at line 631 of file via-velocity.h.
| #define IMR_SRCIM 0x00008000UL |
Definition at line 633 of file via-velocity.h.
| #define IMR_LSTPEIM 0x00004000UL |
Definition at line 634 of file via-velocity.h.
| #define IMR_LSTEIM 0x00002000UL |
Definition at line 635 of file via-velocity.h.
| #define IMR_OVFIM 0x00001000UL |
Definition at line 636 of file via-velocity.h.
| #define IMR_FLONIM 0x00000800UL |
Definition at line 637 of file via-velocity.h.
| #define IMR_RACEIM 0x00000400UL |
Definition at line 638 of file via-velocity.h.
| #define IMR_TXWB1IM 0x00000200UL |
Definition at line 639 of file via-velocity.h.
| #define IMR_TXWB0IM 0x00000100UL |
Definition at line 640 of file via-velocity.h.
| #define IMR_PTX3IM 0x00000080UL |
Definition at line 642 of file via-velocity.h.
| #define IMR_PTX2IM 0x00000040UL |
Definition at line 643 of file via-velocity.h.
| #define IMR_PTX1IM 0x00000020UL |
Definition at line 644 of file via-velocity.h.
| #define IMR_PTX0IM 0x00000010UL |
Definition at line 645 of file via-velocity.h.
| #define IMR_PTXIM 0x00000008UL |
Definition at line 646 of file via-velocity.h.
| #define IMR_PRXIM 0x00000004UL |
Definition at line 647 of file via-velocity.h.
| #define IMR_PPTXIM 0x00000002UL |
Definition at line 648 of file via-velocity.h.
| #define IMR_PPRXIM 0x00000001UL |
Definition at line 649 of file via-velocity.h.
| #define INT_MASK_DEF |
Value:
( IMR_PPTXIM|IMR_PPRXIM| IMR_PTXIM|IMR_PRXIM | \ IMR_PWEIM|IMR_TXWB0IM|IMR_TXWB1IM|IMR_FLONIM| \ IMR_OVFIM|IMR_LSTEIM|IMR_LSTPEIM|IMR_SRCIM|IMR_MIBFIM|\ IMR_SHDNIM |IMR_TMR1IM|IMR_TMR0IM|IMR_TXSTLM )
Definition at line 653 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define TRDCSR_DEAD 0x0008 |
Definition at line 662 of file via-velocity.h.
| #define TRDCSR_WAK 0x0004 |
Definition at line 663 of file via-velocity.h.
| #define TRDCSR_ACT 0x0002 |
Definition at line 664 of file via-velocity.h.
| #define TRDCSR_RUN 0x0001 |
Definition at line 665 of file via-velocity.h.
| #define CAMADDR_CAMEN 0x80 |
Definition at line 671 of file via-velocity.h.
Referenced by mac_get_cam(), mac_set_cam(), and mac_set_cam_mask().
| #define CAMADDR_VCAMSL 0x40 |
Definition at line 672 of file via-velocity.h.
Referenced by mac_get_cam(), mac_get_cam_mask(), mac_set_cam(), and mac_set_cam_mask().
| #define CAMCR_PS1 0x80 |
Definition at line 678 of file via-velocity.h.
Referenced by mac_get_cam(), mac_get_cam_mask(), mac_set_cam(), and mac_set_cam_mask().
| #define CAMCR_PS0 0x40 |
Definition at line 679 of file via-velocity.h.
Referenced by mac_get_cam(), mac_get_cam_mask(), mac_set_cam(), and mac_set_cam_mask().
| #define CAMCR_AITRPKT 0x20 |
Definition at line 680 of file via-velocity.h.
| #define CAMCR_AITR16 0x10 |
Definition at line 681 of file via-velocity.h.
| #define CAMCR_CAMRD 0x08 |
| #define CAMCR_CAMWR 0x04 |
| #define CAMCR_PS_CAM_MASK 0x40 |
Definition at line 684 of file via-velocity.h.
Referenced by mac_get_cam_mask(), and mac_set_cam_mask().
| #define CAMCR_PS_CAM_DATA 0x80 |
| #define CAMCR_PS_MAR 0x00 |
Definition at line 686 of file via-velocity.h.
Referenced by mac_get_cam(), mac_get_cam_mask(), mac_set_cam(), and mac_set_cam_mask().
| #define MIICFG_MPO1 0x80 |
Definition at line 692 of file via-velocity.h.
| #define MIICFG_MPO0 0x40 |
Definition at line 693 of file via-velocity.h.
| #define MIICFG_MFDC 0x20 |
Definition at line 694 of file via-velocity.h.
| #define MIISR_MIDLE 0x80 |
Definition at line 700 of file via-velocity.h.
Referenced by enable_mii_autopoll(), and safe_disable_mii_autopoll().
| #define PHYSR0_PHYRST 0x80 |
Definition at line 706 of file via-velocity.h.
| #define PHYSR0_LINKGD 0x40 |
Definition at line 707 of file via-velocity.h.
| #define PHYSR0_FDPX 0x10 |
| #define PHYSR0_SPDG 0x08 |
| #define PHYSR0_SPD10 0x04 |
| #define PHYSR0_RXFLC 0x02 |
| #define PHYSR0_TXFLC 0x01 |
| #define PHYSR1_PHYTBI 0x01 |
Definition at line 718 of file via-velocity.h.
| #define MIICR_MAUTO 0x80 |
Definition at line 724 of file via-velocity.h.
| #define MIICR_RCMD 0x40 |
Definition at line 725 of file via-velocity.h.
| #define MIICR_WCMD 0x20 |
Definition at line 726 of file via-velocity.h.
| #define MIICR_MDPM 0x10 |
Definition at line 727 of file via-velocity.h.
| #define MIICR_MOUT 0x08 |
Definition at line 728 of file via-velocity.h.
| #define MIICR_MDO 0x04 |
Definition at line 729 of file via-velocity.h.
| #define MIICR_MDI 0x02 |
Definition at line 730 of file via-velocity.h.
| #define MIICR_MDC 0x01 |
Definition at line 731 of file via-velocity.h.
| #define MIIADR_SWMPL 0x80 |
| #define CFGA_PMHCTG 0x08 |
Definition at line 743 of file via-velocity.h.
| #define CFGA_GPIO1PD 0x04 |
Definition at line 744 of file via-velocity.h.
| #define CFGA_ABSHDN 0x02 |
Definition at line 745 of file via-velocity.h.
| #define CFGA_PACPI 0x01 |
| #define CFGB_GTCKOPT 0x80 |
Definition at line 752 of file via-velocity.h.
| #define CFGB_MIIOPT 0x40 |
Definition at line 753 of file via-velocity.h.
| #define CFGB_CRSEOPT 0x20 |
Definition at line 754 of file via-velocity.h.
| #define CFGB_OFSET 0x10 |
| #define CFGB_CRANDOM 0x08 |
| #define CFGB_CAP 0x04 |
| #define CFGB_MBA 0x02 |
| #define CFGB_BAKOPT 0x01 |
| #define CFGC_EELOAD 0x80 |
Definition at line 765 of file via-velocity.h.
| #define CFGC_BROPT 0x40 |
Definition at line 766 of file via-velocity.h.
| #define CFGC_DLYEN 0x20 |
Definition at line 767 of file via-velocity.h.
| #define CFGC_DTSEL 0x10 |
Definition at line 768 of file via-velocity.h.
| #define CFGC_BTSEL 0x08 |
Definition at line 769 of file via-velocity.h.
| #define CFGC_BPS2 0x04 |
Definition at line 770 of file via-velocity.h.
| #define CFGC_BPS1 0x02 |
Definition at line 771 of file via-velocity.h.
| #define CFGC_BPS0 0x01 |
Definition at line 772 of file via-velocity.h.
| #define CFGD_IODIS 0x80 |
Definition at line 778 of file via-velocity.h.
| #define CFGD_MSLVDACEN 0x40 |
Definition at line 779 of file via-velocity.h.
| #define CFGD_CFGDACEN 0x20 |
Definition at line 780 of file via-velocity.h.
| #define CFGD_PCI64EN 0x10 |
Definition at line 781 of file via-velocity.h.
| #define CFGD_HTMRL4 0x08 |
Definition at line 782 of file via-velocity.h.
| #define DCFG_XMWI 0x8000 |
Definition at line 788 of file via-velocity.h.
| #define DCFG_XMRM 0x4000 |
Definition at line 789 of file via-velocity.h.
| #define DCFG_XMRL 0x2000 |
Definition at line 790 of file via-velocity.h.
| #define DCFG_PERDIS 0x1000 |
Definition at line 791 of file via-velocity.h.
| #define DCFG_MRWAIT 0x0400 |
Definition at line 792 of file via-velocity.h.
| #define DCFG_MWWAIT 0x0200 |
Definition at line 793 of file via-velocity.h.
| #define DCFG_LATMEN 0x0100 |
Definition at line 794 of file via-velocity.h.
| #define MCFG_RXARB 0x0080 |
Definition at line 800 of file via-velocity.h.
| #define MCFG_RFT1 0x0020 |
Definition at line 801 of file via-velocity.h.
| #define MCFG_RFT0 0x0010 |
Definition at line 802 of file via-velocity.h.
| #define MCFG_LOWTHOPT 0x0008 |
Definition at line 803 of file via-velocity.h.
| #define MCFG_PQEN 0x0004 |
| #define MCFG_RTGOPT 0x0002 |
| #define MCFG_VIDFR 0x0001 |
| #define MCFG_TXARB 0x8000 |
Definition at line 812 of file via-velocity.h.
| #define MCFG_TXQBK1 0x0800 |
Definition at line 813 of file via-velocity.h.
| #define MCFG_TXQBK0 0x0400 |
Definition at line 814 of file via-velocity.h.
| #define MCFG_TXQNOBK 0x0200 |
Definition at line 815 of file via-velocity.h.
| #define MCFG_SNAPOPT 0x0100 |
Definition at line 816 of file via-velocity.h.
| #define PMCC_DSI 0x80 |
Definition at line 822 of file via-velocity.h.
| #define PMCC_D2_DIS 0x40 |
Definition at line 823 of file via-velocity.h.
| #define PMCC_D1_DIS 0x20 |
Definition at line 824 of file via-velocity.h.
| #define PMCC_D3C_EN 0x10 |
Definition at line 825 of file via-velocity.h.
| #define PMCC_D3H_EN 0x08 |
Definition at line 826 of file via-velocity.h.
| #define PMCC_D2_EN 0x04 |
Definition at line 827 of file via-velocity.h.
| #define PMCC_D1_EN 0x02 |
Definition at line 828 of file via-velocity.h.
| #define PMCC_D0_EN 0x01 |
Definition at line 829 of file via-velocity.h.
| #define STICKHW_SWPTAG 0x10 |
| #define STICKHW_WOLSR 0x08 |
Definition at line 836 of file via-velocity.h.
| #define STICKHW_WOLEN 0x04 |
Definition at line 837 of file via-velocity.h.
| #define STICKHW_DS1 0x02 |
| #define STICKHW_DS0 0x01 |
| #define MIBCR_MIBISTOK 0x80 |
Definition at line 845 of file via-velocity.h.
| #define MIBCR_MIBISTGO 0x40 |
Definition at line 846 of file via-velocity.h.
| #define MIBCR_MIBINC 0x20 |
Definition at line 847 of file via-velocity.h.
| #define MIBCR_MIBHI 0x10 |
Definition at line 848 of file via-velocity.h.
| #define MIBCR_MIBFRZ 0x08 |
Definition at line 849 of file via-velocity.h.
| #define MIBCR_MIBFLSH 0x04 |
Definition at line 850 of file via-velocity.h.
| #define MIBCR_MPTRINI 0x02 |
Definition at line 851 of file via-velocity.h.
| #define MIBCR_MIBCLR 0x01 |
Definition at line 852 of file via-velocity.h.
| #define EERSV_BOOT_RPL ((u8) 0x01) |
Definition at line 858 of file via-velocity.h.
| #define EERSV_BOOT_MASK ((u8) 0x06) |
Definition at line 860 of file via-velocity.h.
| #define EERSV_BOOT_INT19 ((u8) 0x00) |
Definition at line 861 of file via-velocity.h.
| #define EERSV_BOOT_INT18 ((u8) 0x02) |
Definition at line 862 of file via-velocity.h.
| #define EERSV_BOOT_LOCAL ((u8) 0x04) |
Definition at line 863 of file via-velocity.h.
| #define EERSV_BOOT_BEV ((u8) 0x06) |
Definition at line 864 of file via-velocity.h.
| #define BPCMD_BPDNE 0x80 |
Definition at line 871 of file via-velocity.h.
| #define BPCMD_EBPWR 0x02 |
Definition at line 872 of file via-velocity.h.
| #define BPCMD_EBPRD 0x01 |
Definition at line 873 of file via-velocity.h.
| #define EECSR_EMBP 0x40 |
Definition at line 879 of file via-velocity.h.
| #define EECSR_RELOAD 0x20 |
Definition at line 880 of file via-velocity.h.
| #define EECSR_DPM 0x10 |
Definition at line 881 of file via-velocity.h.
| #define EECSR_ECS 0x08 |
Definition at line 882 of file via-velocity.h.
| #define EECSR_ECK 0x04 |
Definition at line 883 of file via-velocity.h.
| #define EECSR_EDI 0x02 |
Definition at line 884 of file via-velocity.h.
| #define EECSR_EDO 0x01 |
Definition at line 885 of file via-velocity.h.
| #define EMBCMD_EDONE 0x80 |
Definition at line 891 of file via-velocity.h.
| #define EMBCMD_EWDIS 0x08 |
Definition at line 892 of file via-velocity.h.
| #define EMBCMD_EWEN 0x04 |
Definition at line 893 of file via-velocity.h.
| #define EMBCMD_EWR 0x02 |
Definition at line 894 of file via-velocity.h.
| #define EMBCMD_ERD 0x01 |
Definition at line 895 of file via-velocity.h.
| #define TESTCFG_HBDIS 0x80 |
| #define CHIPGCR_FCGMII 0x80 |
Definition at line 907 of file via-velocity.h.
Referenced by mac_wol_reset(), and velocity_set_media_mode().
| #define CHIPGCR_FCFDX 0x40 |
| #define CHIPGCR_FCRESV 0x20 |
Definition at line 909 of file via-velocity.h.
| #define CHIPGCR_FCMODE 0x10 |
Definition at line 910 of file via-velocity.h.
Referenced by mac_wol_reset(), and velocity_set_media_mode().
| #define CHIPGCR_LPSOPT 0x08 |
Definition at line 911 of file via-velocity.h.
| #define CHIPGCR_TM1US 0x04 |
Definition at line 912 of file via-velocity.h.
| #define CHIPGCR_TM0US 0x02 |
Definition at line 913 of file via-velocity.h.
| #define CHIPGCR_PHYINTEN 0x01 |
Definition at line 914 of file via-velocity.h.
| #define WOLCR_MSWOLEN7 0x0080 |
Definition at line 920 of file via-velocity.h.
| #define WOLCR_MSWOLEN6 0x0040 |
Definition at line 921 of file via-velocity.h.
| #define WOLCR_MSWOLEN5 0x0020 |
Definition at line 922 of file via-velocity.h.
| #define WOLCR_MSWOLEN4 0x0010 |
Definition at line 923 of file via-velocity.h.
| #define WOLCR_MSWOLEN3 0x0008 |
Definition at line 924 of file via-velocity.h.
| #define WOLCR_MSWOLEN2 0x0004 |
Definition at line 925 of file via-velocity.h.
| #define WOLCR_MSWOLEN1 0x0002 |
Definition at line 926 of file via-velocity.h.
| #define WOLCR_MSWOLEN0 0x0001 |
Definition at line 927 of file via-velocity.h.
| #define WOLCR_ARP_EN 0x0001 |
Definition at line 928 of file via-velocity.h.
| #define WOLCR_LINKOFF_EN 0x0800 |
Definition at line 934 of file via-velocity.h.
| #define WOLCR_LINKON_EN 0x0400 |
Definition at line 935 of file via-velocity.h.
| #define WOLCR_MAGIC_EN 0x0200 |
Definition at line 936 of file via-velocity.h.
| #define WOLCR_UNICAST_EN 0x0100 |
Definition at line 937 of file via-velocity.h.
| #define PWCFG_PHYPWOPT 0x80 |
Definition at line 944 of file via-velocity.h.
| #define PWCFG_PCISTICK 0x40 |
Definition at line 945 of file via-velocity.h.
| #define PWCFG_WOLTYPE 0x20 |
Definition at line 946 of file via-velocity.h.
| #define PWCFG_LEGCY_WOL 0x10 |
Definition at line 947 of file via-velocity.h.
| #define PWCFG_PMCSR_PME_SR 0x08 |
Definition at line 948 of file via-velocity.h.
| #define PWCFG_PMCSR_PME_EN 0x04 |
Definition at line 949 of file via-velocity.h.
| #define PWCFG_LEGACY_WOLSR 0x02 |
Definition at line 950 of file via-velocity.h.
| #define PWCFG_LEGACY_WOLEN 0x01 |
Definition at line 951 of file via-velocity.h.
| #define WOLCFG_PMEOVR 0x80 |
| #define WOLCFG_SAM 0x20 |
| #define WOLCFG_SAB 0x10 |
| #define WOLCFG_SMIIACC 0x08 |
Definition at line 960 of file via-velocity.h.
| #define WOLCFG_SGENWH 0x02 |
Definition at line 961 of file via-velocity.h.
| #define WOLCFG_PHYINTEN 0x01 |
Definition at line 962 of file via-velocity.h.
| #define WOLSR_LINKOFF_INT 0x0800 |
Definition at line 968 of file via-velocity.h.
| #define WOLSR_LINKON_INT 0x0400 |
Definition at line 969 of file via-velocity.h.
| #define WOLSR_MAGIC_INT 0x0200 |
Definition at line 970 of file via-velocity.h.
| #define WOLSR_UNICAST_INT 0x0100 |
Definition at line 971 of file via-velocity.h.
| #define PKT_TYPE_NONE 0x0000 |
Definition at line 977 of file via-velocity.h.
| #define PKT_TYPE_DIRECTED 0x0001 |
Definition at line 978 of file via-velocity.h.
| #define PKT_TYPE_MULTICAST 0x0002 |
Definition at line 979 of file via-velocity.h.
| #define PKT_TYPE_ALL_MULTICAST 0x0004 |
Definition at line 980 of file via-velocity.h.
| #define PKT_TYPE_BROADCAST 0x0008 |
Definition at line 981 of file via-velocity.h.
| #define PKT_TYPE_PROMISCUOUS 0x0020 |
Definition at line 982 of file via-velocity.h.
| #define PKT_TYPE_LONG 0x2000 |
Definition at line 983 of file via-velocity.h.
| #define PKT_TYPE_RUNT 0x4000 |
Definition at line 984 of file via-velocity.h.
| #define PKT_TYPE_ERROR 0x8000 |
Definition at line 985 of file via-velocity.h.
| #define MAC_LB_NONE 0x00 |
Definition at line 991 of file via-velocity.h.
| #define MAC_LB_INTERNAL 0x01 |
Definition at line 992 of file via-velocity.h.
| #define MAC_LB_EXTERNAL 0x02 |
Definition at line 993 of file via-velocity.h.
| #define IMR_MASK_VALUE 0x0013FB0FUL |
Definition at line 1004 of file via-velocity.h.
| #define REV_ID_VT3119_A0 0x00 |
Definition at line 1017 of file via-velocity.h.
| #define REV_ID_VT3119_A1 0x01 |
Definition at line 1018 of file via-velocity.h.
| #define REV_ID_VT3216_A0 0x10 |
| #define W_MAX_TIMEOUT 0x0FFFU |
Definition at line 1025 of file via-velocity.h.
| #define mac_hw_mibs_init | ( | regs | ) |
Value:
{\
BYTE_REG_BITS_ON(MIBCR_MIBFRZ,&((regs)->MIBCR));\
BYTE_REG_BITS_ON(MIBCR_MIBCLR,&((regs)->MIBCR));\
do {}\
while (BYTE_REG_BITS_IS_ON(MIBCR_MIBCLR,&((regs)->MIBCR)));\
BYTE_REG_BITS_OFF(MIBCR_MIBFRZ,&((regs)->MIBCR));\
}
Definition at line 1207 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define mac_read_isr | ( | regs | ) | readl(&((regs)->ISR)) |
Definition at line 1215 of file via-velocity.h.
| #define mac_write_isr | ( | regs, | |||
| x | ) | writel((x),&((regs)->ISR)) |
Definition at line 1216 of file via-velocity.h.
| #define mac_clear_isr | ( | regs | ) | writel(0xffffffffL,&((regs)->ISR)) |
Definition at line 1217 of file via-velocity.h.
Referenced by velocity_disable(), and velocity_init_registers().
| #define mac_write_int_mask | ( | mask, | |||
| regs | ) | writel((mask),&((regs)->IMR)); |
Definition at line 1219 of file via-velocity.h.
Referenced by velocity_init_registers(), and velocity_open().
| #define mac_disable_int | ( | regs | ) | writel(CR0_GINTMSK1,&((regs)->CR0Clr)) |
| #define mac_enable_int | ( | regs | ) | writel(CR0_GINTMSK1,&((regs)->CR0Set)) |
Definition at line 1221 of file via-velocity.h.
| #define mac_hw_mibs_read | ( | regs, | |||
| MIBs | ) |
Value:
{\
int i;\
BYTE_REG_BITS_ON(MIBCR_MPTRINI,&((regs)->MIBCR));\
for (i=0;i<HW_MIB_SIZE;i++) {\
(MIBs)[i]=readl(&((regs)->MIBData));\
}\
}
Definition at line 1223 of file via-velocity.h.
| #define mac_set_dma_length | ( | regs, | |||
| n | ) |
Value:
{\
BYTE_REG_BITS_SET((n),0x07,&((regs)->DCFG));\
}
Definition at line 1231 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define mac_set_rx_thresh | ( | regs, | |||
| n | ) |
Value:
{\
BYTE_REG_BITS_SET((n),(MCFG_RFT0|MCFG_RFT1),&((regs)->MCFG));\
}
Definition at line 1235 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define mac_rx_queue_run | ( | regs | ) |
Value:
{\
writeb(TRDCSR_RUN, &((regs)->RDCSRSet));\
}
Definition at line 1239 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define mac_rx_queue_wake | ( | regs | ) |
Value:
{\
writeb(TRDCSR_WAK, &((regs)->RDCSRSet));\
}
Definition at line 1243 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define mac_tx_queue_run | ( | regs, | |||
| n | ) |
Value:
{\
writew(TRDCSR_RUN<<((n)*4),&((regs)->TDCSRSet));\
}
Definition at line 1247 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define mac_tx_queue_wake | ( | regs, | |||
| n | ) |
Value:
{\
writew(TRDCSR_WAK<<(n*4),&((regs)->TDCSRSet));\
}
Definition at line 1251 of file via-velocity.h.
Referenced by velocity_transmit().
| #define mac_eeprom_reload | ( | regs | ) |
Value:
{\
int i=0;\
BYTE_REG_BITS_ON(EECSR_RELOAD,&((regs)->EECSR));\
do {\
udelay(10);\
if (i++>0x1000) {\
break;\
}\
}while (BYTE_REG_BITS_IS_ON(EECSR_RELOAD,&((regs)->EECSR)));\
}
Definition at line 1255 of file via-velocity.h.
Referenced by velocity_init_registers().
| #define MII_REG_BMCR 0x00 |
Definition at line 1511 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), mii_init(), mii_set_auto_on(), and velocity_set_media_mode().
| #define MII_REG_BMSR 0x01 |
| #define MII_REG_PHYID1 0x02 |
Definition at line 1513 of file via-velocity.h.
| #define MII_REG_PHYID2 0x03 |
Definition at line 1514 of file via-velocity.h.
| #define MII_REG_ANAR 0x04 |
Definition at line 1515 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), mii_init(), set_mii_flow_control(), and velocity_set_media_mode().
| #define MII_REG_ANLPAR 0x05 |
Definition at line 1516 of file via-velocity.h.
| #define MII_REG_G1000CR 0x09 |
Definition at line 1517 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define MII_REG_G1000SR 0x0A |
Definition at line 1518 of file via-velocity.h.
| #define MII_REG_MODCFG 0x10 |
Definition at line 1519 of file via-velocity.h.
| #define MII_REG_TCSR 0x16 |
| #define MII_REG_PLED 0x1B |
| #define MII_REG_PCR 0x17 |
Definition at line 1523 of file via-velocity.h.
| #define MII_REG_PCSR 0x17 |
Definition at line 1525 of file via-velocity.h.
| #define MII_REG_AUXCR 0x1C |
| #define MII_REG_PSCR 0x10 |
| #define BMCR_RESET 0x8000 |
Definition at line 1534 of file via-velocity.h.
Referenced by b44_phy_reset(), bnx2_reset_phy(), phy_reset(), rtl8169_xmii_reset_enable(), rtl8169_xmii_reset_pending(), sis190_phy_task(), sis190_set_speed_auto(), tg3_bmcr_reset(), tg3_setup_fiber_phy(), and TLan_PhyReset().
| #define BMCR_LBK 0x4000 |
Definition at line 1535 of file via-velocity.h.
| #define BMCR_SPEED100 0x2000 |
Definition at line 1536 of file via-velocity.h.
Referenced by bnx2_copper_linkup(), bnx2_setup_copper_phy(), sundance_probe(), and TLan_PhyStartLink().
| #define BMCR_AUTO 0x1000 |
Definition at line 1537 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and mii_set_auto_on().
| #define BMCR_PD 0x0800 |
Definition at line 1538 of file via-velocity.h.
| #define BMCR_ISO 0x0400 |
| #define BMCR_REAUTO 0x0200 |
| #define BMCR_FDX 0x0100 |
Definition at line 1541 of file via-velocity.h.
| #define BMCR_SPEED1G 0x0040 |
| #define BMSR_AUTOCM 0x0020 |
Definition at line 1546 of file via-velocity.h.
| #define BMSR_LNK 0x0004 |
| #define ANAR_ASMDIR 0x0800 |
Definition at line 1552 of file via-velocity.h.
Referenced by mii_init(), and set_mii_flow_control().
| #define ANAR_PAUSE 0x0400 |
Definition at line 1553 of file via-velocity.h.
Referenced by mii_init(), and set_mii_flow_control().
| #define ANAR_T4 0x0200 |
Definition at line 1554 of file via-velocity.h.
| #define ANAR_TXFD 0x0100 |
Definition at line 1555 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define ANAR_TX 0x0080 |
Definition at line 1556 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define ANAR_10FD 0x0040 |
Definition at line 1557 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define ANAR_10 0x0020 |
Definition at line 1558 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define ANLPAR_ASMDIR 0x0800 |
Definition at line 1562 of file via-velocity.h.
| #define ANLPAR_PAUSE 0x0400 |
Definition at line 1563 of file via-velocity.h.
| #define ANLPAR_T4 0x0200 |
Definition at line 1564 of file via-velocity.h.
| #define ANLPAR_TXFD 0x0100 |
Definition at line 1565 of file via-velocity.h.
| #define ANLPAR_TX 0x0080 |
Definition at line 1566 of file via-velocity.h.
| #define ANLPAR_10FD 0x0040 |
Definition at line 1567 of file via-velocity.h.
| #define ANLPAR_10 0x0020 |
Definition at line 1568 of file via-velocity.h.
| #define G1000CR_1000FD 0x0200 |
Definition at line 1573 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define G1000CR_1000 0x0100 |
Definition at line 1574 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_set_media_mode().
| #define G1000SR_1000FD 0x0800 |
Definition at line 1579 of file via-velocity.h.
| #define G1000SR_1000 0x0400 |
Definition at line 1580 of file via-velocity.h.
| #define TCSR_ECHODIS 0x2000 |
| #define AUXCR_MDPPS 0x0004 |
| #define PLED_LALBE 0x0004 |
| #define PSCR_ACRSTX 0x0800 |
| #define PHYID_CICADA_CS8201 0x000FC410UL |
Definition at line 1591 of file via-velocity.h.
Referenced by mii_init(), and velocity_set_media_mode().
| #define PHYID_VT3216_32BIT 0x000FC610UL |
| #define PHYID_VT3216_64BIT 0x000FC600UL |
| #define PHYID_MARVELL_1000 0x01410C50UL |
| #define PHYID_MARVELL_1000S 0x01410C40UL |
| #define PHYID_REV_ID_MASK 0x0000000FUL |
Definition at line 1597 of file via-velocity.h.
| #define PHYID_GET_PHY_REV_ID | ( | i | ) | ((i) & PHYID_REV_ID_MASK) |
Definition at line 1599 of file via-velocity.h.
| #define PHYID_GET_PHY_ID | ( | i | ) | ((i) & ~PHYID_REV_ID_MASK) |
Definition at line 1600 of file via-velocity.h.
Referenced by mii_init(), and velocity_set_media_mode().
| #define MII_REG_BITS_ON | ( | x, | |||
| i, | |||||
| p | ) |
Value:
do {\ u16 w;\ velocity_mii_read((p),(i),&(w));\ (w)|=(x);\ velocity_mii_write((p),(i),(w));\ } while (0)
Definition at line 1602 of file via-velocity.h.
Referenced by mii_init(), mii_set_auto_on(), set_mii_flow_control(), and velocity_set_media_mode().
| #define MII_REG_BITS_OFF | ( | x, | |||
| i, | |||||
| p | ) |
Value:
do {\ u16 w;\ velocity_mii_read((p),(i),&(w));\ (w)&=(~(x));\ velocity_mii_write((p),(i),(w));\ } while (0)
Definition at line 1609 of file via-velocity.h.
Referenced by mii_init(), set_mii_flow_control(), and velocity_set_media_mode().
| #define MII_REG_BITS_IS_ON | ( | x, | |||
| i, | |||||
| p | ) |
Value:
({\
u16 w;\
velocity_mii_read((p),(i),&(w));\
((int) ((w) & (x)));})
Definition at line 1616 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and mii_set_auto_on().
| #define MII_GET_PHY_ID | ( | p | ) |
Value:
({\
u32 id; \
u16 id2; \
u16 id1; \
velocity_mii_read((p),MII_REG_PHYID2, &id2);\
velocity_mii_read((p),MII_REG_PHYID1, &id1);\
id = ( ( (u32)id2 ) << 16 ) | id1; \
(id);})
Definition at line 1621 of file via-velocity.h.
Referenced by velocity_probe().
| #define VELOCITY_WOL_MAGIC 0x00000000UL |
Definition at line 1675 of file via-velocity.h.
| #define VELOCITY_WOL_PHY 0x00000001UL |
Definition at line 1676 of file via-velocity.h.
| #define VELOCITY_WOL_ARP 0x00000002UL |
Definition at line 1677 of file via-velocity.h.
| #define VELOCITY_WOL_UCAST 0x00000004UL |
Definition at line 1678 of file via-velocity.h.
| #define VELOCITY_WOL_BCAST 0x00000010UL |
Definition at line 1679 of file via-velocity.h.
| #define VELOCITY_WOL_MCAST 0x00000020UL |
Definition at line 1680 of file via-velocity.h.
| #define VELOCITY_WOL_MAGIC_SEC 0x00000040UL |
Definition at line 1681 of file via-velocity.h.
| #define VELOCITY_FLAGS_TAGGING 0x00000001UL |
Definition at line 1687 of file via-velocity.h.
Referenced by velocity_get_options(), velocity_init_cam_filter(), and velocity_transmit().
| #define VELOCITY_FLAGS_TX_CSUM 0x00000002UL |
Definition at line 1688 of file via-velocity.h.
Referenced by velocity_get_options(), and velocity_probe().
| #define VELOCITY_FLAGS_RX_CSUM 0x00000004UL |
Definition at line 1689 of file via-velocity.h.
| #define VELOCITY_FLAGS_IP_ALIGN 0x00000008UL |
| #define VELOCITY_FLAGS_VAL_PKT_LEN 0x00000010UL |
| #define VELOCITY_FLAGS_FLOW_CTRL 0x01000000UL |
Definition at line 1693 of file via-velocity.h.
| #define VELOCITY_FLAGS_OPENED 0x00010000UL |
Definition at line 1699 of file via-velocity.h.
Referenced by velocity_disable(), and velocity_open().
| #define VELOCITY_FLAGS_VMNS_CONNECTED 0x00020000UL |
Definition at line 1700 of file via-velocity.h.
| #define VELOCITY_FLAGS_VMNS_COMMITTED 0x00040000UL |
Definition at line 1701 of file via-velocity.h.
| #define VELOCITY_FLAGS_WOL_ENABLED 0x00080000UL |
| #define VELOCITY_LINK_FAIL 0x00000001UL |
Definition at line 1708 of file via-velocity.h.
Referenced by mii_check_media_mode(), velocity_init_registers(), velocity_print_link_status(), and velocity_set_media_mode().
| #define VELOCITY_SPEED_10 0x00000002UL |
Definition at line 1709 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), velocity_get_opt_media_mode(), and velocity_set_media_mode().
| #define VELOCITY_SPEED_100 0x00000004UL |
Definition at line 1710 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), velocity_get_opt_media_mode(), velocity_print_link_status(), and velocity_set_media_mode().
| #define VELOCITY_SPEED_1000 0x00000008UL |
Definition at line 1711 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), and velocity_print_link_status().
| #define VELOCITY_DUPLEX_FULL 0x00000010UL |
Definition at line 1712 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), mii_init(), velocity_get_opt_media_mode(), velocity_print_link_status(), and velocity_set_media_mode().
| #define VELOCITY_AUTONEG_ENABLE 0x00000020UL |
Definition at line 1713 of file via-velocity.h.
Referenced by check_connection_type(), mii_check_media_mode(), velocity_get_opt_media_mode(), and velocity_set_media_mode().
| #define VELOCITY_FORCED_BY_EEPROM 0x00000040UL |
Definition at line 1714 of file via-velocity.h.
| #define VELOCITY_LINK_CHANGE 0x00000001UL |
Definition at line 1720 of file via-velocity.h.
Referenced by velocity_init_registers(), and velocity_set_media_mode().
| #define RX_DESC_MIN 4 |
| #define RX_DESC_MAX 255 |
| #define RX_DESC_DEF RX_DESC_MIN |
Definition at line 1763 of file via-velocity.h.
Referenced by velocity_get_options(), velocity_init_rings(), velocity_poll(), and velocity_rx_reset().
| #define TX_DESC_MIN 1 |
| #define TX_DESC_MAX 256 |
| #define TX_DESC_DEF TX_DESC_MIN |
Definition at line 1767 of file via-velocity.h.
Referenced by velocity_get_options(), velocity_init_rings(), and velocity_transmit().
| #define AVAIL_TD | ( | p, | |||
| q | ) | ((p)->options.numtx-((p)->td_used[(q)])) |
Definition at line 1796 of file via-velocity.h.
Definition at line 1819 of file via-velocity.h.
Definition at line 1462 of file via-velocity.h.
| anonymous enum |
Definition at line 300 of file via-velocity.h.
00300 { 00301 OWNED_BY_HOST = 0, 00302 OWNED_BY_NIC = 1 00303 } velocity_owner;
| enum hw_mib |
Definition at line 1157 of file via-velocity.h.
01157 { 01158 HW_MIB_ifRxAllPkts = 0, 01159 HW_MIB_ifRxOkPkts, 01160 HW_MIB_ifTxOkPkts, 01161 HW_MIB_ifRxErrorPkts, 01162 HW_MIB_ifRxRuntOkPkt, 01163 HW_MIB_ifRxRuntErrPkt, 01164 HW_MIB_ifRx64Pkts, 01165 HW_MIB_ifTx64Pkts, 01166 HW_MIB_ifRx65To127Pkts, 01167 HW_MIB_ifTx65To127Pkts, 01168 HW_MIB_ifRx128To255Pkts, 01169 HW_MIB_ifTx128To255Pkts, 01170 HW_MIB_ifRx256To511Pkts, 01171 HW_MIB_ifTx256To511Pkts, 01172 HW_MIB_ifRx512To1023Pkts, 01173 HW_MIB_ifTx512To1023Pkts, 01174 HW_MIB_ifRx1024To1518Pkts, 01175 HW_MIB_ifTx1024To1518Pkts, 01176 HW_MIB_ifTxEtherCollisions, 01177 HW_MIB_ifRxPktCRCE, 01178 HW_MIB_ifRxJumboPkts, 01179 HW_MIB_ifTxJumboPkts, 01180 HW_MIB_ifRxMacControlFrames, 01181 HW_MIB_ifTxMacControlFrames, 01182 HW_MIB_ifRxPktFAE, 01183 HW_MIB_ifRxLongOkPkt, 01184 HW_MIB_ifRxLongPktErrPkt, 01185 HW_MIB_ifTXSQEErrors, 01186 HW_MIB_ifRxNobuf, 01187 HW_MIB_ifRxSymbolErrors, 01188 HW_MIB_ifInRangeLengthErrors, 01189 HW_MIB_ifLateCollisions, 01190 HW_MIB_SIZE 01191 };
| enum chip_type |
| enum velocity_cam_type |
Definition at line 1266 of file via-velocity.h.
01266 { 01267 VELOCITY_VLAN_ID_CAM = 0, 01268 VELOCITY_MULTICAST_CAM 01269 };
| enum speed_opt |
Definition at line 1722 of file via-velocity.h.
01722 { 01723 SPD_DPX_AUTO = 0, 01724 SPD_DPX_100_HALF = 1, 01725 SPD_DPX_100_FULL = 2, 01726 SPD_DPX_10_HALF = 3, 01727 SPD_DPX_10_FULL = 4 01728 };
| enum velocity_init_type |
Definition at line 1730 of file via-velocity.h.
01730 { 01731 VELOCITY_INIT_COLD = 0, 01732 VELOCITY_INIT_RESET, 01733 VELOCITY_INIT_WOL 01734 };
Definition at line 1736 of file via-velocity.h.
01736 { 01737 FLOW_CNTL_DEFAULT = 1, 01738 FLOW_CNTL_TX, 01739 FLOW_CNTL_RX, 01740 FLOW_CNTL_TX_RX, 01741 FLOW_CNTL_DISABLE, 01742 };
| static void mac_get_cam_mask | ( | struct mac_regs * | regs, | |
| u8 * | mask, | |||
| enum velocity_cam_type | cam_type | |||
| ) | [inline, static] |
mac_get_cam_mask - Read a CAM mask : register block for this velocity : buffer to store mask : CAM to fetch
Fetch the mask bits of the selected CAM and store them into the provided mask buffer.
Definition at line 1281 of file via-velocity.h.
References BYTE_REG_BITS_SET, mac_regs::CAMADDR, CAMADDR_VCAMSL, mac_regs::CAMCR, CAMCR_PS0, CAMCR_PS1, CAMCR_PS_CAM_MASK, CAMCR_PS_MAR, mac_regs::MARCAM, readb, VELOCITY_VLAN_ID_CAM, and writeb.
01283 { 01284 int i; 01285 /* Select CAM mask */ 01286 BYTE_REG_BITS_SET(CAMCR_PS_CAM_MASK, CAMCR_PS1 | CAMCR_PS0, 01287 ®s->CAMCR); 01288 01289 if (cam_type == VELOCITY_VLAN_ID_CAM) 01290 writeb(CAMADDR_VCAMSL, ®s->CAMADDR); 01291 else 01292 writeb(0, ®s->CAMADDR); 01293 01294 /* read mask */ 01295 for (i = 0; i < 8; i++) 01296 *mask++ = readb(&(regs->MARCAM[i])); 01297 01298 /* disable CAMEN */ 01299 writeb(0, ®s->CAMADDR); 01300 01301 /* Select mar */ 01302 BYTE_REG_BITS_SET(CAMCR_PS_MAR, CAMCR_PS1 | CAMCR_PS0, 01303 ®s->CAMCR); 01304 01305 }
| static void mac_set_cam_mask | ( | struct mac_regs * | regs, | |
| u8 * | mask, | |||
| enum velocity_cam_type | cam_type | |||
| ) | [inline, static] |
mac_set_cam_mask - Set a CAM mask : register block for this velocity : CAM mask to load : CAM to store
Store a new mask into a CAM
Definition at line 1316 of file via-velocity.h.
References BYTE_REG_BITS_SET, mac_regs::CAMADDR, CAMADDR_CAMEN, CAMADDR_VCAMSL, mac_regs::CAMCR, CAMCR_PS0, CAMCR_PS1, CAMCR_PS_CAM_MASK, CAMCR_PS_MAR, mac_regs::MARCAM, VELOCITY_VLAN_ID_CAM, and writeb.
Referenced by velocity_init_cam_filter().
01318 { 01319 int i; 01320 /* Select CAM mask */ 01321 BYTE_REG_BITS_SET(CAMCR_PS_CAM_MASK, CAMCR_PS1 | CAMCR_PS0, 01322 ®s->CAMCR); 01323 01324 if (cam_type == VELOCITY_VLAN_ID_CAM) 01325 writeb(CAMADDR_CAMEN | CAMADDR_VCAMSL, ®s->CAMADDR); 01326 else 01327 writeb(CAMADDR_CAMEN, ®s->CAMADDR); 01328 01329 for (i = 0; i < 8; i++) { 01330 writeb(*mask++, &(regs->MARCAM[i])); 01331 } 01332 /* disable CAMEN */ 01333 writeb(0, ®s->CAMADDR); 01334 01335 /* Select mar */ 01336 BYTE_REG_BITS_SET(CAMCR_PS_MAR, CAMCR_PS1 | CAMCR_PS0, 01337 ®s->CAMCR); 01338 }
| static void mac_set_cam | ( | struct mac_regs * | regs, | |
| int | idx, | |||
| u8 * | addr, | |||
| enum velocity_cam_type | cam_type | |||
| ) | [inline, static] |
mac_set_cam - set CAM data : register block of this velocity : Cam index : 2 or 6 bytes of CAM data : CAM to load
Load an address or vlan tag into a CAM
Definition at line 1350 of file via-velocity.h.
References BYTE_REG_BITS_ON, BYTE_REG_BITS_SET, mac_regs::CAMADDR, CAMADDR_CAMEN, CAMADDR_VCAMSL, mac_regs::CAMCR, CAMCR_CAMWR, CAMCR_PS0, CAMCR_PS1, CAMCR_PS_CAM_DATA, CAMCR_PS_MAR, mac_regs::MARCAM, u16, udelay(), VELOCITY_VLAN_ID_CAM, writeb, and writew.
Referenced by velocity_init_cam_filter().
01352 { 01353 int i; 01354 01355 /* Select CAM mask */ 01356 BYTE_REG_BITS_SET(CAMCR_PS_CAM_DATA, CAMCR_PS1 | CAMCR_PS0, 01357 ®s->CAMCR); 01358 01359 idx &= (64 - 1); 01360 01361 if (cam_type == VELOCITY_VLAN_ID_CAM) 01362 writeb(CAMADDR_CAMEN | CAMADDR_VCAMSL | idx, 01363 ®s->CAMADDR); 01364 else 01365 writeb(CAMADDR_CAMEN | idx, ®s->CAMADDR); 01366 01367 if (cam_type == VELOCITY_VLAN_ID_CAM) 01368 writew(*((u16 *) addr), ®s->MARCAM[0]); 01369 else { 01370 for (i = 0; i < 6; i++) { 01371 writeb(*addr++, &(regs->MARCAM[i])); 01372 } 01373 } 01374 BYTE_REG_BITS_ON(CAMCR_CAMWR, ®s->CAMCR); 01375 01376 udelay(10); 01377 01378 writeb(0, ®s->CAMADDR); 01379 01380 /* Select mar */ 01381 BYTE_REG_BITS_SET(CAMCR_PS_MAR, CAMCR_PS1 | CAMCR_PS0, 01382 ®s->CAMCR); 01383 }
| static void mac_get_cam | ( | struct mac_regs * | regs, | |
| int | idx, | |||
| u8 * | addr, | |||
| enum velocity_cam_type | cam_type | |||
| ) | [inline, static] |
mac_get_cam - fetch CAM data : register block of this velocity : Cam index : buffer to hold up to 6 bytes of CAM data : CAM to load
Load an address or vlan tag from a CAM into the buffer provided by the caller. VLAN tags are 2 bytes the address cam entries are 6.
Definition at line 1396 of file via-velocity.h.
References BYTE_REG_BITS_ON, BYTE_REG_BITS_SET, mac_regs::CAMADDR, CAMADDR_CAMEN, CAMADDR_VCAMSL, mac_regs::CAMCR, CAMCR_CAMRD, CAMCR_PS0, CAMCR_PS1, CAMCR_PS_CAM_DATA, CAMCR_PS_MAR, mac_regs::MARCAM, readb, readw, u16, u8, udelay(), VELOCITY_VLAN_ID_CAM, and writeb.
01398 { 01399 int i; 01400 01401 /* Select CAM mask */ 01402 BYTE_REG_BITS_SET(CAMCR_PS_CAM_DATA, CAMCR_PS1 | CAMCR_PS0, 01403 ®s->CAMCR); 01404 01405 idx &= (64 - 1); 01406 01407 if (cam_type == VELOCITY_VLAN_ID_CAM) 01408 writeb(CAMADDR_CAMEN | CAMADDR_VCAMSL | idx, 01409 ®s->CAMADDR); 01410 else 01411 writeb(CAMADDR_CAMEN | idx, ®s->CAMADDR); 01412 01413 BYTE_REG_BITS_ON(CAMCR_CAMRD, ®s->CAMCR); 01414 01415 udelay(10); 01416 01417 if (cam_type == VELOCITY_VLAN_ID_CAM) 01418 *((u16 *) addr) = readw(&(regs->MARCAM[0])); 01419 else 01420 for (i = 0; i < 6; i++, addr++) 01421 *((u8 *) addr) = readb(&(regs->MARCAM[i])); 01422 01423 writeb(0, ®s->CAMADDR); 01424 01425 /* Select mar */ 01426 BYTE_REG_BITS_SET(CAMCR_PS_MAR, CAMCR_PS1 | CAMCR_PS0, 01427 ®s->CAMCR); 01428 }
| static void mac_wol_reset | ( | struct mac_regs * | regs | ) | [inline, static] |
mac_wol_reset - reset WOL after exiting low power : register block of this velocity
Called after we drop out of wake on lan mode in order to reset the Wake on lan features. This function doesn't restore the rest of the logic from the result of sleep/wakeup
Definition at line 1439 of file via-velocity.h.
References BYTE_REG_BITS_OFF, mac_regs::CHIPGCR, CHIPGCR_FCGMII, CHIPGCR_FCMODE, mac_regs::STICKHW, STICKHW_DS0, STICKHW_DS1, STICKHW_SWPTAG, WOLCFG_PMEOVR, mac_regs::WOLCFGClr, mac_regs::WOLCRClr, mac_regs::WOLSRClr, writeb, and writew.
Referenced by velocity_init_registers().
01440 { 01441 01442 /* Turn off SWPTAG right after leaving power mode */ 01443 BYTE_REG_BITS_OFF(STICKHW_SWPTAG, ®s->STICKHW); 01444 /* clear sticky bits */ 01445 BYTE_REG_BITS_OFF((STICKHW_DS1 | STICKHW_DS0), ®s->STICKHW); 01446 01447 BYTE_REG_BITS_OFF(CHIPGCR_FCGMII, ®s->CHIPGCR); 01448 BYTE_REG_BITS_OFF(CHIPGCR_FCMODE, ®s->CHIPGCR); 01449 /* disable force PME-enable */ 01450 writeb(WOLCFG_PMEOVR, ®s->WOLCFGClr); 01451 /* disable power-event config bit */ 01452 writew(0xFFFF, ®s->WOLCRClr); 01453 /* clear power status */ 01454 writew(0xFFFF, ®s->WOLSRClr); 01455 }
| static void init_flow_control_register | ( | struct velocity_info * | vptr | ) | [inline, static] |
init_flow_control_register - set up flow control : velocity to configure
Configure the flow control registers for this velocity device.
Definition at line 1911 of file via-velocity.h.
References CR0_FDXRFCEN, CR0_FDXTFCEN, CR0_HDXFCEN, CR0_XHITH0, CR0_XHITH1, CR0_XLTH0, CR0_XLTH1, CR0_XONEN, mac_regs::CR0Clr, mac_regs::CR0Set, velocity_info::mac_regs, velocity_opt::numrx, velocity_info::options, mac_regs::RBRDU, mac_regs::tx_pause_timer, writel, and writew.
Referenced by velocity_init_registers().
01912 { 01913 struct mac_regs *regs = vptr->mac_regs; 01914 01915 /* Set {XHITH1, XHITH0, XLTH1, XLTH0} in FlowCR1 to {1, 0, 1, 1} 01916 depend on RD=64, and Turn on XNOEN in FlowCR1 */ 01917 writel((CR0_XONEN | CR0_XHITH1 | CR0_XLTH1 | CR0_XLTH0), 01918 ®s->CR0Set); 01919 writel((CR0_FDXTFCEN | CR0_FDXRFCEN | CR0_HDXFCEN | CR0_XHITH0), 01920 ®s->CR0Clr); 01921 01922 /* Set TxPauseTimer to 0xFFFF */ 01923 writew(0xFFFF, ®s->tx_pause_timer); 01924 01925 /* Initialize RBRDU to Rx buffer count. */ 01926 writew(vptr->options.numrx, ®s->RBRDU); 01927 }
| struct _magic_packet __packed__ |
| enum { ... } velocity_owner |
struct velocity_info_tbl* info [static] |
Definition at line 1205 of file via-velocity.h.
Referenced by pxenv_get_cached_info(), pxenv_undi_get_nic_type(), and velocity_probe().
struct velocity_info vptx [static] |
Referenced by velocity_probe().
struct velocity_info* vptr [static] |
Definition at line 1847 of file via-velocity.h.
Referenced by velocity_disable(), velocity_open(), velocity_poll(), velocity_probe(), and velocity_transmit().
1.5.7.1