|
| #define | RTL_BAR_SIZE 0x100 |
| | PCI memory BAR size. More...
|
| |
| #define | RTL_DESC_SIZE_MASK 0x3fff |
| | Descriptor buffer size mask. More...
|
| |
| #define | RTL_RING_ALIGN 256 |
| | Descriptor ring alignment. More...
|
| |
| #define | RTL_IDR0 0x00 |
| | ID Register 0 (6 bytes) More...
|
| |
| #define | RTL_MAR0 0x08 |
| | Multicast Register 0 (dword) More...
|
| |
| #define | RTL_MAR4 0x0c |
| | Multicast Register 4 (dword) More...
|
| |
| #define | RTL_TSD(n) ( 0x10 + 4 * (n) ) |
| | Transmit Status of Descriptor N (dword, 8139 only) More...
|
| |
| #define | RTL_TSD_ERTXTH(x) ( (x) << 16 ) |
| | Early TX threshold. More...
|
| |
| #define | RTL_TSD_ERTXTH_DEFAULT RTL_TSD_ERTXTH ( 256 / 32 ) |
| |
| #define | RTL_TSD_OWN 0x00002000UL |
| | Ownership. More...
|
| |
| #define | RTL_TSAD(n) ( 0x20 + 4 * (n) ) |
| | Transmit Start Address of Descriptor N (dword, 8139 only) More...
|
| |
| #define | RTL_TNPDS 0x20 |
| | Transmit Normal Priority Descriptors (qword) More...
|
| |
| #define | RTL_NUM_TX_DESC 4 |
| | Number of transmit descriptors. More...
|
| |
| #define | RTL_RBSTART 0x30 |
| | Receive Buffer Start Address (dword, 8139 only) More...
|
| |
| #define | RTL_RXBUF_LEN 8192 |
| | Receive buffer length. More...
|
| |
| #define | RTL_RXBUF_PAD 2038 /* Allow space for WRAP */ |
| | Receive buffer padding. More...
|
| |
| #define | RTL_RXBUF_ALIGN 16 |
| | Receive buffer alignment. More...
|
| |
| #define | RTL_CR 0x37 |
| | Command Register (byte) More...
|
| |
| #define | RTL_CR_RST 0x10 |
| | Reset. More...
|
| |
| #define | RTL_CR_RE 0x08 |
| | Receiver Enable. More...
|
| |
| #define | RTL_CR_TE 0x04 |
| | Transmit Enable. More...
|
| |
| #define | RTL_CR_BUFE 0x01 |
| | Receive buffer empty. More...
|
| |
| #define | RTL_RESET_MAX_WAIT_MS 100 |
| | Maximum time to wait for a reset, in milliseconds. More...
|
| |
| #define | RTL_CAPR 0x38 |
| | Current Address of Packet Read (word, 8139 only) More...
|
| |
| #define | RTL_TPPOLL_8169 0x38 |
| | Transmit Priority Polling Register (byte, 8169 only) More...
|
| |
| #define | RTL_TPPOLL_NPQ 0x40 |
| | Normal Priority Queue Polling. More...
|
| |
| #define | RTL_IMR 0x3c |
| | Interrupt Mask Register (word) More...
|
| |
| #define | RTL_IRQ_PUN_LINKCHG 0x0020 |
| | Packet underrun / link change. More...
|
| |
| #define | RTL_IRQ_TER 0x0008 |
| | Transmit error. More...
|
| |
| #define | RTL_IRQ_TOK 0x0004 |
| | Transmit OK. More...
|
| |
| #define | RTL_IRQ_RER 0x0002 |
| | Receive error. More...
|
| |
| #define | RTL_IRQ_ROK 0x0001 |
| | Receive OK. More...
|
| |
| #define | RTL_ISR 0x3e |
| | Interrupt Status Register (word) More...
|
| |
| #define | RTL_TCR 0x40 |
| | Transmit (Tx) Configuration Register (dword) More...
|
| |
| #define | RTL_TCR_MXDMA(x) ( (x) << 8 ) |
| | Max DMA burst size. More...
|
| |
| #define | RTL_TCR_MXDMA_MASK RTL_TCR_MXDMA ( 0x7 ) |
| |
| #define | RTL_TCR_MXDMA_DEFAULT RTL_TCR_MXDMA ( 0x7 /* Unlimited */ ) |
| |
| #define | RTL_RCR 0x44 |
| | Receive (Rx) Configuration Register (dword) More...
|
| |
| #define | RTL_RCR_STOP_WORKING 0x01000000UL |
| | Here be dragons. More...
|
| |
| #define | RTL_RCR_RXFTH(x) ( (x) << 13 ) |
| | Receive FIFO threshold. More...
|
| |
| #define | RTL_RCR_RXFTH_MASK RTL_RCR_RXFTH ( 0x7 ) |
| |
| #define | RTL_RCR_RXFTH_DEFAULT RTL_RCR_RXFTH ( 0x7 /* Whole packet */ ) |
| |
| #define | RTL_RCR_RBLEN(x) ( (x) << 11 ) |
| | Receive buffer length. More...
|
| |
| #define | RTL_RCR_RBLEN_MASK RTL_RCR_RBLEN ( 0x3 ) |
| |
| #define | RTL_RCR_RBLEN_DEFAULT RTL_RCR_RBLEN ( 0 /* 8kB */ ) |
| |
| #define | RTL_RCR_MXDMA(x) ( (x) << 8 ) |
| | Max DMA burst size. More...
|
| |
| #define | RTL_RCR_MXDMA_MASK RTL_RCR_MXDMA ( 0x7 ) |
| |
| #define | RTL_RCR_MXDMA_DEFAULT RTL_RCR_MXDMA ( 0x7 /* Unlimited */ ) |
| |
| #define | RTL_RCR_WRAP 0x00000080UL |
| | Overrun receive buffer. More...
|
| |
| #define | RTL_RCR_9356SEL 0x00000040UL |
| | EEPROM is a 93C56. More...
|
| |
| #define | RTL_RCR_AB 0x00000008UL |
| | Accept broadcast packets. More...
|
| |
| #define | RTL_RCR_AM 0x00000004UL |
| | Accept multicast packets. More...
|
| |
| #define | RTL_RCR_APM 0x00000002UL |
| | Accept physical match. More...
|
| |
| #define | RTL_RCR_AAP 0x00000001UL |
| | Accept all packets. More...
|
| |
| #define | RTL_9346CR 0x50 |
| | 93C46 (93C56) Command Register (byte) More...
|
| |
| #define | RTL_9346CR_EEM(x) ( (x) << 6 ) |
| | Mode select. More...
|
| |
| #define | RTL_9346CR_EEM_EEPROM RTL_9346CR_EEM ( 0x2 ) |
| | EEPROM mode. More...
|
| |
| #define | RTL_9346CR_EEM_NORMAL RTL_9346CR_EEM ( 0x0 ) |
| | Normal mode. More...
|
| |
| #define | RTL_9346CR_EECS 0x08 |
| | Chip select. More...
|
| |
| #define | RTL_9346CR_EESK 0x04 |
| | Clock. More...
|
| |
| #define | RTL_9346CR_EEDI 0x02 |
| | Data in. More...
|
| |
| #define | RTL_9346CR_EEDO 0x01 |
| | Data out. More...
|
| |
| #define | RTL_EEPROM_ID ( 0x00 / 2 ) |
| | Word offset of ID code word within EEPROM. More...
|
| |
| #define | RTL_EEPROM_ID_MAGIC 0x8129 |
| | EEPROM code word magic value. More...
|
| |
| #define | RTL_EEPROM_MAC ( 0x0e / 2 ) |
| | Word offset of MAC address within EEPROM. More...
|
| |
| #define | RTL_EEPROM_VPD ( 0x40 / 2 ) |
| | Word offset of VPD / non-volatile options within EEPROM. More...
|
| |
| #define | RTL_EEPROM_VPD_LEN 0x40 |
| | Length of VPD / non-volatile options within EEPROM. More...
|
| |
| #define | RTL_CONFIG1 0x52 |
| | Configuration Register 1 (byte) More...
|
| |
| #define | RTL_CONFIG1_VPD 0x02 |
| | Vital Product Data enabled. More...
|
| |
| #define | RTL_MSR 0x58 |
| | Media Status Register (byte, 8139 only) More...
|
| |
| #define | RTL_MSR_TXFCE 0x80 |
| | TX flow control enabled. More...
|
| |
| #define | RTL_MSR_RXFCE 0x40 |
| | RX flow control enabled. More...
|
| |
| #define | RTL_MSR_AUX_STATUS 0x10 |
| | Aux power present. More...
|
| |
| #define | RTL_MSR_SPEED_10 0x08 |
| | 10Mbps More...
|
| |
| #define | RTL_MSR_LINKB 0x04 |
| | Inverse of link status. More...
|
| |
| #define | RTL_MSR_TXPF 0x02 |
| | TX pause flag. More...
|
| |
| #define | RTL_MSR_RXPF 0x01 |
| | RX pause flag. More...
|
| |
| #define | RTL_PHYAR 0x60 |
| | PHY Access Register (dword, 8169 only) More...
|
| |
| #define | RTL_PHYAR_FLAG 0x80000000UL |
| | Read/write flag. More...
|
| |
| #define | RTL_PHYAR_VALUE(flag, reg, data) ( (flag) | ( (reg) << 16 ) | (data) ) |
| | Construct PHY Access Register value. More...
|
| |
| #define | RTL_PHYAR_DATA(value) ( (value) & 0xffff ) |
| | Extract PHY Access Register data. More...
|
| |
| #define | RTL_MII_MAX_WAIT_US 500 |
| | Maximum time to wait for PHY access, in microseconds. More...
|
| |
| #define | RTL_PHYSTATUS 0x6c |
| | PHY (GMII, MII, or TBI) Status Register (byte, 8169 only) More...
|
| |
| #define | RTL_PHYSTATUS_ENTBI 0x80 |
| | TBI / GMII mode. More...
|
| |
| #define | RTL_PHYSTATUS_TXFLOW 0x40 |
| | TX flow control enabled. More...
|
| |
| #define | RTL_PHYSTATUS_RXFLOW 0x20 |
| | RX flow control enabled. More...
|
| |
| #define | RTL_PHYSTATUS_1000MF 0x10 |
| | 1000Mbps full-duplex More...
|
| |
| #define | RTL_PHYSTATUS_100M 0x08 |
| | 100Mbps More...
|
| |
| #define | RTL_PHYSTATUS_10M 0x04 |
| | 10Mbps More...
|
| |
| #define | RTL_PHYSTATUS_LINKSTS 0x02 |
| | Link ok. More...
|
| |
| #define | RTL_PHYSTATUS_FULLDUP 0x01 |
| | Full duplex. More...
|
| |
| #define | RTL_TPPOLL_8139CP 0xd9 |
| | Transmit Priority Polling Register (byte, 8139C+ only) More...
|
| |
| #define | RTL_RMS 0xda |
| | RX Packet Maximum Size Register (word) More...
|
| |
| #define | RTL_CPCR 0xe0 |
| | C+ Command Register (word) More...
|
| |
| #define | RTL_CPCR_VLAN 0x0040 |
| | VLAN tag stripping enable. More...
|
| |
| #define | RTL_CPCR_DAC 0x0010 |
| | PCI Dual Address Cycle enable. More...
|
| |
| #define | RTL_CPCR_MULRW 0x0008 |
| | PCI Multiple Read/Write enable. More...
|
| |
| #define | RTL_CPCR_CPRX 0x0002 |
| | C+ receive enable. More...
|
| |
| #define | RTL_CPCR_CPTX 0x0001 |
| | C+ transmit enable. More...
|
| |
| #define | RTL_RDSAR 0xe4 |
| | Receive Descriptor Start Address Register (qword) More...
|
| |
| #define | RTL_NUM_RX_DESC 4 |
| | Number of receive descriptors. More...
|
| |
| #define | RTL_RX_MAX_LEN ( ETH_FRAME_LEN + 4 /* VLAN */ + 4 /* CRC */ + 4 /* extra space */ ) |
| | Receive buffer length. More...
|
| |
Realtek 10/100/1000 network card driver.
Definition in file realtek.h.