89 for (i = 0; i < 31; i++)
142 register unsigned int len;
204 register short rx_fifo;
235 if ( ! retrieve )
return 1;
275 unsigned short type = 0;
350 if ( ( prod_id & prod_id_mask ) != prod_id_check ) {
351 printf (
"EEPROM Product ID is incorrect (%hx & %hx != %hx)\n",
352 prod_id, prod_id_mask, prod_id_check );
367 printf(
"10baseT not present\n");
375 printf(
"10base5 not present\n");
384 printf(
"10base2 not present\n");
389 printf(
"unknown connector\n");
397 for (i = 0; i <
ETH_ALEN / 2; i++) {
#define RX_DISCARD_TOP_PACK
int printf(const char *fmt,...)
Write a formatted string to the console.
uint16_t inw(volatile uint16_t *io_addr)
Read 16-bit word from I/O-mapped device.
#define SET_TX_START_THRESH
#define EP_W1_TX_PIO_WR_1
#define outw(data, io_addr)
static void t509_enable(struct nic *nic)
uint32_t type
Operating system type.
void outsw(volatile uint16_t *io_addr, const uint16_t *data, unsigned int count)
Write 16-bit words to I/O-mapped device.
#define EP_W1_RX_PIO_RD_1
#define S_COMMAND_IN_PROGRESS
#define EP_W0_EEPROM_COMMAND
#define is_eeprom_busy(b)
static void t509_reset(struct nic *nic)
#define EP_W0_RESOURCE_CFG
static struct nic_operations t509_operations
#define TXS_STATUS_OVERFLOW
int dummy_connect(struct nic *nic __unused)
#define TXS_MAX_COLLISION
static unsigned long ioaddr
#define EP_W0_ADDRESS_CFG
#define __unused
Declare a variable or data structure as unused.
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
void t5x9_disable(struct nic *nic)
#define START_TRANSCEIVER
int t5x9_probe(struct nic *nic, uint16_t prod_id_check, uint16_t prod_id_mask)
const char * eth_ntoa(const void *ll_addr)
Transcribe Ethernet address.
#define SET_RX_EARLY_THRESH
static int eeprom_rdy(uint16_t ioaddr)
static int get_e(uint16_t ioaddr, int offset)
#define EP_W0_CONFIG_CTRL
void insw(volatile uint16_t *io_addr, uint16_t *data, unsigned int count)
Read 16-bit words from I/O-mapped device.
uint8_t inb(volatile uint8_t *io_addr)
Read byte from I/O-mapped device.
static int t509_poll(struct nic *nic, int retrieve)
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
unsigned char * node_addr
#define outb(data, io_addr)
static void t509_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p)
uint16_t offset
Offset to command line.
static void t509_irq(struct nic *nic __unused, irq_action_t action __unused)
#define DBG(...)
Print a debugging message.
struct nic_operations * nic_op
int(* connect)(struct nic *)
#define EP_W0_EEPROM_DATA