iPXE
|
Go to the source code of this file.
Data Structures | |
struct | ifec_stats |
struct | ifec_tcb |
struct | ifec_rfd |
struct | ifec_ias |
struct | ifec_cfg |
struct | ifec_private |
Macros | |
#define | CONGENB 0 /* Enable congestion control in the DP83840. */ |
#define | TX_FIFO 8 /* Tx FIFO threshold in 4 byte units, 0-15 */ |
#define | RX_FIFO 8 /* Rx FIFO threshold, default 32 bytes. */ |
#define | TX_DMA_COUNT 0 /* Tx DMA burst length, 0-127, default 0. */ |
#define | RX_DMA_COUNT 0 /* Rx DMA length, 0 means no preemption. */ |
#define | CU_CMD_TIMEOUT 1000 /* CU command accept timeout in microseconds */ |
#define | LINK_CHECK_PERIOD 1000 /* # of poll() calls between link checks */ |
#define | RFD_PACKET_LEN 1518 |
#define | RFD_IOB_LEN 1536 |
#define | RFD_HEADER_LEN 16 |
#define | CB_ALIGN 2 /* Alignment of command blocks */ |
#define | RFD_COUNT 4 |
#define | TCB_COUNT 4 |
#define | RX_RING_BYTES ( RFD_COUNT * sizeof ( struct ifec_rfd ) ) |
#define | TX_RING_BYTES ( TCB_COUNT * sizeof ( struct ifec_tcb ) ) |
#define | EEPROM_ADDR_MAC_0 0 |
#define | EEPROM_ADDR_MDIO_REGISTER 6 |
#define | EE_SHIFT_CLK 0x01 /* EEPROM shift clock. */ |
#define | EE_CS 0x02 /* EEPROM chip select. */ |
#define | EE_DATA_WRITE 0x04 /* EEPROM chip data in. */ |
#define | EE_DATA_READ 0x08 /* EEPROM chip data out. */ |
#define | EE_ENB ( 0x4800 | EE_CS ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
static int | ifec_pci_probe (struct pci_device *pci) |
static void | ifec_pci_remove (struct pci_device *pci) |
static void | ifec_net_close (struct net_device *) |
static void | ifec_net_irq (struct net_device *, int enable) |
static int | ifec_net_open (struct net_device *) |
static void | ifec_net_poll (struct net_device *) |
static int | ifec_net_transmit (struct net_device *, struct io_buffer *iobuf) |
static void | ifec_init_eeprom (struct net_device *) |
static int | ifec_mdio_read (struct net_device *, int phy, int location) |
static void | ifec_mdio_setup (struct net_device *, int options) |
static int | ifec_mdio_write (struct net_device *, int phy, int loc, int val) |
static void | ifec_reset (struct net_device *) |
static void | ifec_free (struct net_device *) |
static void | ifec_rfd_init (struct ifec_rfd *rfd, s16 command, u32 link) |
static void | ifec_rx_process (struct net_device *) |
static void | ifec_reprime_ru (struct net_device *) |
static void | ifec_check_ru_status (struct net_device *, unsigned short) |
static int | ifec_get_rx_desc (struct net_device *, int, int, int) |
static void | ifec_refill_rx_ring (struct net_device *) |
static int | ifec_rx_setup (struct net_device *) |
static int | ifec_scb_cmd (struct net_device *, u32 ptr, u8 cmd) |
static int | ifec_scb_cmd_wait (struct net_device *) |
static void | ifec_tx_process (struct net_device *) |
static int | ifec_tx_setup (struct net_device *) |
static void | ifec_tx_wake (struct net_device *) |
Definition at line 7 of file eepro100.h.
Definition at line 8 of file eepro100.h.
#define RX_FIFO 8 /* Rx FIFO threshold, default 32 bytes. */ |
Definition at line 9 of file eepro100.h.
#define TX_DMA_COUNT 0 /* Tx DMA burst length, 0-127, default 0. */ |
Definition at line 10 of file eepro100.h.
#define RX_DMA_COUNT 0 /* Rx DMA length, 0 means no preemption. */ |
Definition at line 11 of file eepro100.h.
Definition at line 12 of file eepro100.h.
#define LINK_CHECK_PERIOD 1000 /* # of poll() calls between link checks */ |
Definition at line 13 of file eepro100.h.
#define RFD_PACKET_LEN 1518 |
Definition at line 15 of file eepro100.h.
#define RFD_IOB_LEN 1536 |
Definition at line 16 of file eepro100.h.
#define RFD_HEADER_LEN 16 |
Definition at line 17 of file eepro100.h.
Definition at line 18 of file eepro100.h.
#define RFD_COUNT 4 |
Definition at line 20 of file eepro100.h.
#define TCB_COUNT 4 |
Definition at line 21 of file eepro100.h.
Definition at line 22 of file eepro100.h.
Definition at line 23 of file eepro100.h.
#define EEPROM_ADDR_MAC_0 0 |
Definition at line 26 of file eepro100.h.
#define EEPROM_ADDR_MDIO_REGISTER 6 |
Definition at line 27 of file eepro100.h.
#define EE_SHIFT_CLK 0x01 /* EEPROM shift clock. */ |
Definition at line 89 of file eepro100.h.
#define EE_CS 0x02 /* EEPROM chip select. */ |
Definition at line 90 of file eepro100.h.
#define EE_DATA_WRITE 0x04 /* EEPROM chip data in. */ |
Definition at line 91 of file eepro100.h.
#define EE_DATA_READ 0x08 /* EEPROM chip data out. */ |
Definition at line 92 of file eepro100.h.
#define EE_ENB ( 0x4800 | EE_CS ) |
Definition at line 93 of file eepro100.h.
enum CSROffsets |
Enumerator | |
---|---|
SCBStatus | |
SCBCmd | |
SCBPointer | |
CSRPort | |
CSRFlash | |
CSREeprom | |
CSRCtrlMDI | |
CSREarlyRx |
Definition at line 30 of file eepro100.h.
enum SCBCmdBits |
Definition at line 37 of file eepro100.h.
enum SCBPortCmds |
Enumerator | |
---|---|
PortReset | |
PortSelfTest | |
PortPartialReset | |
PortDump |
Definition at line 49 of file eepro100.h.
enum ActionCommands |
Enumerator | |
---|---|
CmdNOp | |
CmdIASetup | |
CmdConfigure | |
CmdMulticastList | |
CmdTx | |
CmdTDR | |
CmdDump | |
CmdDiagnose | |
CmdEndOfList | |
CmdSuspend | |
CmdIntr | |
CmdTxFlex |
Definition at line 54 of file eepro100.h.
enum TCBBits |
Enumerator | |
---|---|
TCB_C | |
TCB_OK | |
TCB_U |
Definition at line 63 of file eepro100.h.
enum RFDBits |
Enumerator | |
---|---|
RFDRxCol | |
RFDIAMatch | |
RFDNoMatch | |
RFDReserved3 | |
RFDRxErr | |
RFDEthType | |
RFDReserved6 | |
RFDShort | |
RFDDMAOverrun | |
RFDNoBufs | |
RFDCRCAlign | |
RFDCRCError | |
RFDReserved12 | |
RFD_OK | |
RFDComplete | |
RFDMaskCount |
Definition at line 67 of file eepro100.h.
enum phy_chips |
Enumerator | |
---|---|
NonSuchPhy | |
I82553AB | |
I82553C | |
I82503 | |
DP83840 | |
S80C240 | |
S80C24 | |
PhyUndefined | |
DP83840A |
Definition at line 80 of file eepro100.h.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 1072 of file eepro100.c.
References CmdSuspend, CUResume, CUStart, DBG2, DBGP, ifec_scb_cmd(), ifec_scb_cmd_wait(), inw(), ioaddr, netdev, outb, outl, priv, net_device::priv, SCBCmd, SCBPointer, SCBStatus, and virt_to_bus().
Referenced by ifec_net_transmit().