10 #define TX_DMA_COUNT 0 11 #define RX_DMA_COUNT 0 12 #define CU_CMD_TIMEOUT 1000 13 #define LINK_CHECK_PERIOD 1000 15 #define RFD_PACKET_LEN 1518 16 #define RFD_IOB_LEN 1536 17 #define RFD_HEADER_LEN 16 22 #define RX_RING_BYTES ( RFD_COUNT * sizeof ( struct ifec_rfd ) ) 23 #define TX_RING_BYTES ( TCB_COUNT * sizeof ( struct ifec_tcb ) ) 26 #define EEPROM_ADDR_MAC_0 0 27 #define EEPROM_ADDR_MDIO_REGISTER 6 89 #define EE_SHIFT_CLK 0x01 91 #define EE_DATA_WRITE 0x04 92 #define EE_DATA_READ 0x08 93 #define EE_ENB ( 0x4800 | EE_CS )
static void ifec_rfd_init(struct ifec_rfd *rfd, s16 command, u32 link)
struct spi_bit_basher spi
static int ifec_mdio_read(struct net_device *, int phy, int location)
static int ifec_scb_cmd_wait(struct net_device *)
static void ifec_net_irq(struct net_device *, int enable)
static void ifec_reprime_ru(struct net_device *)
struct io_buffer * rx_iobs[RFD_COUNT]
static void ifec_check_ru_status(struct net_device *, unsigned short)
struct ifec_tcb * tcb_tail
static void ifec_reset(struct net_device *)
static void ifec_net_close(struct net_device *)
static int ifec_pci_probe(struct pci_device *pci)
static int ifec_mdio_write(struct net_device *, int phy, int loc, int val)
u32 link
Link to next descriptor.
struct ifec_rfd * rfds[RFD_COUNT]
static void ifec_free(struct net_device *)
static int ifec_get_rx_desc(struct net_device *, int, int, int)
static int ifec_net_transmit(struct net_device *, struct io_buffer *iobuf)
struct io_buffer * tx_iobs[TCB_COUNT]
char packet[RFD_PACKET_LEN]
static void ifec_mdio_setup(struct net_device *, int options)
unsigned short mdio_register
static void ifec_tx_process(struct net_device *)
static int ifec_tx_setup(struct net_device *)
static int ifec_net_open(struct net_device *)
static void ifec_rx_process(struct net_device *)
struct ifec_tcb * tcb_head
static int ifec_rx_setup(struct net_device *)
FILE_LICENCE(GPL2_OR_LATER)
static void ifec_init_eeprom(struct net_device *)
static int ifec_scb_cmd(struct net_device *, u32 ptr, u8 cmd)
static void ifec_refill_rx_ring(struct net_device *)
static void ifec_tx_wake(struct net_device *)
static void ifec_pci_remove(struct pci_device *pci)
static void ifec_net_poll(struct net_device *)