|
iPXE
|
#include "etherboot.h"#include "nic.h"#include <ipxe/pci.h>#include <ipxe/ethernet.h>#include "3c595.h"Go to the source code of this file.
Data Structures | |
| struct | connector_entry |
Macros | |
| #define | CONNECTOR_UTP 0 |
| #define | CONNECTOR_AUI 1 |
| #define | CONNECTOR_BNC 3 |
| #define | CONNECTOR_TX 4 |
| #define | CONNECTOR_FX 5 |
| #define | CONNECTOR_MII 6 |
Functions | |
| FILE_LICENCE (BSD2) | |
| static void | vxgetlink (void) |
| static void | vxsetlink (void) |
| static void | t595_reset (struct nic *nic) |
| static void | t595_transmit (struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) |
| static int | t595_poll (struct nic *nic, int retrieve) |
| static int | eeprom_rdy () |
| static int | get_e (int offset) |
| static void | t595_disable (struct nic *nic, void *hwdev __unused) |
| static void | t595_irq (struct nic *nic __unused, irq_action_t action __unused) |
| static int | t595_probe (struct nic *nic, struct pci_device *pci) |
| PCI_DRIVER (t595_driver, t595_nics, PCI_NO_CLASS) | |
| DRIVER ("3C595", nic_driver, pci_driver, t595_driver, t595_probe, t595_disable, no_fake_bss) | |
Variables | |
| static struct nic_operations | t595_operations |
| static unsigned short | eth_nic_base |
| static unsigned short | vx_connector |
| static unsigned short | vx_connectors |
| static struct connector_entry | conn_tab [VX_CONNECTORS] |
| static char | padmap [] |
| static struct pci_device_id | t595_nics [] |
| #define CONNECTOR_UTP 0 |
Referenced by vxsetlink().
| #define CONNECTOR_AUI 1 |
| #define CONNECTOR_BNC 3 |
Referenced by vxsetlink().
| #define CONNECTOR_TX 4 |
Referenced by vxsetlink().
| #define CONNECTOR_FX 5 |
Referenced by vxsetlink().
| #define CONNECTOR_MII 6 |
| FILE_LICENCE | ( | BSD2 | ) |
|
static |
Definition at line 356 of file 3c595.c.
References BASE, bit, conn_tab, GO_WINDOW, inl, INTERNAL_CONNECTOR_BITS, INTERNAL_CONNECTOR_MASK, inw, k, name, printf(), vx_connector, VX_CONNECTORS, vx_connectors, VX_W3_INTERNAL_CFG, and VX_W3_RESET_OPT.
Referenced by t595_probe().
|
static |
Definition at line 389 of file 3c595.c.
References BASE, bit, conn_tab, CONNECTOR_BNC, CONNECTOR_FX, CONNECTOR_TX, CONNECTOR_UTP, ENABLE_UTP, GO_WINDOW, inl, INTERNAL_CONNECTOR_BITS, INTERNAL_CONNECTOR_MASK, LINKBEAT_ENABLE, name, NULL, outl, outw, printf(), reason, START_TRANSCEIVER, STOP_TRANSCEIVER, udelay(), VX_COMMAND, vx_connector, vx_connectors, VX_W3_INTERNAL_CFG, and VX_W4_MEDIA_TYPE.
Referenced by t595_reset().
|
static |
Definition at line 68 of file 3c595.c.
References ACK_INTR, BASE, C_INTR_LATCH, ETH_ALEN, FIL_BRDCST, FIL_INDIVIDUAL, FIL_MULTICAST, GO_WINDOW, inb, nic::node_addr, outb, outw, RX_DISABLE, RX_DISCARD_TOP_PACK, RX_ENABLE, RX_RESET, S_CARD_FAILURE, S_RX_COMPLETE, S_TX_AVAIL, S_TX_COMPLETE, SET_INTR_MASK, SET_RD_0_MASK, SET_RX_FILTER, STOP_TRANSCEIVER, TX_DISABLE, TX_ENABLE, TX_RESET, udelay(), VX_BUSY_WAIT, VX_COMMAND, VX_W1_TX_STATUS, VX_W2_ADDR_0, and vxsetlink().
Referenced by t595_disable(), and t595_probe().
|
static |
Definition at line 165 of file 3c595.c.
References BASE, ETH_ALEN, ETH_FRAME_LEN, ETH_HLEN, htons, inb, inw, len, nic::node_addr, outb, outsw, outw, pad, padmap, printf(), S_COMMAND_IN_PROGRESS, status, TX_ENABLE, TX_RESET, TXS_COMPLETE, TXS_MAX_COLLISION, TXS_STATUS_OVERFLOW, TXS_UNDERRUN, VX_COMMAND, VX_STATUS, VX_W1_FREE_TX, VX_W1_TX_PIO_WR_1, and VX_W1_TX_STATUS.
|
static |
Definition at line 231 of file 3c595.c.
References ACK_INTR, BASE, C_INTR_LATCH, ERR_RX, ETH_ALEN, inb, insw, inw, outw, nic::packet, nic::packetlen, printf(), RX_BYTES_MASK, RX_DISCARD_TOP_PACK, RX_INCOMPLETE, S_COMMAND_IN_PROGRESS, S_RX_COMPLETE, status, type, udelay(), VX_COMMAND, VX_STATUS, VX_W1_RX_PIO_RD_1, and VX_W1_RX_STATUS.
|
static |
Definition at line 326 of file 3c595.c.
References BASE, is_eeprom_busy, MAX_EEPROMBUSY, printf(), and udelay().
|
static |
Definition at line 345 of file 3c595.c.
References BASE, EEPROM_CMD_RD, eeprom_rdy(), inw, offset, outw, VX_W0_EEPROM_COMMAND, and VX_W0_EEPROM_DATA.
Referenced by t595_probe().
|
static |
Definition at line 446 of file 3c595.c.
References __unused, BASE, GO_WINDOW, outw, STOP_TRANSCEIVER, t595_reset(), udelay(), VX_COMMAND, and VX_W4_MEDIA_TYPE.
Referenced by DRIVER().
|
static |
|
static |
Definition at line 472 of file 3c595.c.
References BASE, DBG, EEPROM_OEM_ADDR_0, eth_nic_base, eth_ntoa(), get_e(), GLOBAL_RESET, GO_WINDOW, htons, nic::ioaddr, pci_device::ioaddr, nic::irqno, nic::nic_op, nic::node_addr, ntohs, outw, t595_operations, t595_reset(), VX_BUSY_WAIT, VX_COMMAND, VX_W2_ADDR_0, and vxgetlink().
Referenced by DRIVER().
| DRIVER | ( | "3C595" | , |
| nic_driver | , | ||
| pci_driver | , | ||
| t595_driver | , | ||
| t595_probe | , | ||
| t595_disable | , | ||
| no_fake_bss | ) |
References no_fake_bss, t595_disable(), and t595_probe().
|
static |
Definition at line 36 of file 3c595.c.
Referenced by t595_probe().
|
static |
Definition at line 38 of file 3c595.c.
Referenced by cs89x0_poll(), cs89x0_probe(), cs89x0_reset(), cs89x0_transmit(), enable_multicast(), enable_multicast(), eth_pio_read(), eth_pio_read(), eth_pio_write(), eth_pio_write(), eth_probe(), eth_rx_overrun(), ne_poll(), ne_probe(), ne_reset(), ne_transmit(), ns8390_poll(), ns8390_reset(), ns8390_transmit(), readreg(), send_test_pkt(), t595_probe(), and writereg().
|
static |
Definition at line 39 of file 3c595.c.
Referenced by vxgetlink(), and vxsetlink().
|
static |
Definition at line 39 of file 3c595.c.
Referenced by vxgetlink(), and vxsetlink().
|
static |
Referenced by vxgetlink(), and vxsetlink().
|
static |
|
static |