iPXE
|
#include "ns8390.h"
#include "etherboot.h"
#include "nic.h"
#include <ipxe/ethernet.h>
#include <ipxe/isa.h>
#include <errno.h>
Go to the source code of this file.
Macros | |
#define | ASIC_PIO NE_DATA |
Functions | |
FILE_LICENCE (BSD2) | |
static void | ne_reset (struct nic *nic, struct isa_device *isa) |
static void | eth_pio_read (unsigned int src, unsigned char *dst, unsigned int cnt) |
static void | eth_pio_write (const unsigned char *src, unsigned int dst, unsigned int cnt) |
static void | enable_multicast (unsigned short eth_nic_base) |
static int | ne_probe1 (isa_probe_addr_t ioaddr) |
static int | ne_probe (struct nic *nic, struct isa_device *isa) |
static void | ne_disable (struct nic *nic, struct isa_device *isa) |
static void | ne_reset (struct nic *nic, struct isa_device *isa __unused) |
static int | ne_poll (struct nic *nic __unused, int retrieve __unused) |
static void | ne_transmit (struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) |
ISA_DRIVER (ne_driver, ne_probe_addrs, ne_probe1, GENERIC_ISAPNP_VENDOR, 0x0600) | |
DRIVER ("ne", nic_driver, isapnp_driver, ne_driver, ne_probe, ne_disable) | |
ISA_ROM ("ne","NE1000/2000 and clones") | |
Variables | |
static unsigned char | eth_vendor |
static unsigned char | eth_flags |
static unsigned short | eth_nic_base |
static unsigned short | eth_asic_base |
static unsigned char | eth_memsize |
static unsigned char | eth_rx_start |
static unsigned char | eth_tx_start |
static Address | eth_bmem |
static Address | eth_rmem |
static unsigned char | eth_drain_receiver |
static struct nic_operations | ne_operations |
static isa_probe_addr_t | ne_probe_addrs [] = { 0x300, 0x280, 0x320, 0x340, 0x380, 0x220, } |
#define ASIC_PIO NE_DATA |
Definition at line 31 of file ne2k_isa.c.
FILE_LICENCE | ( | BSD2 | ) |
|
static |
Referenced by ne_disable(), and ne_probe().
|
static |
Definition at line 47 of file ne2k_isa.c.
References ASIC_PIO, D8390_COMMAND_RD0, D8390_COMMAND_RD2, D8390_COMMAND_STA, D8390_P0_COMMAND, D8390_P0_RBCR0, D8390_P0_RBCR1, D8390_P0_RSAR0, D8390_P0_RSAR1, eth_asic_base, eth_flags, eth_nic_base, FLAG_16BIT, inb(), inw(), outb, and src.
Referenced by ne_poll(), and ne_probe().
|
static |
Definition at line 69 of file ne2k_isa.c.
References ASIC_PIO, D8390_COMMAND_RD1, D8390_COMMAND_RD2, D8390_COMMAND_STA, D8390_ISR_RDC, D8390_P0_COMMAND, D8390_P0_ISR, D8390_P0_RBCR0, D8390_P0_RBCR1, D8390_P0_RSAR0, D8390_P0_RSAR1, eth_asic_base, eth_flags, eth_nic_base, FLAG_16BIT, outb, outw, and src.
Referenced by ne_probe(), and ne_transmit().
|
static |
Definition at line 94 of file ne2k_isa.c.
References D8390_COMMAND_PS0, D8390_COMMAND_PS1, D8390_COMMAND_RD2, D8390_P0_COMMAND, D8390_P0_RCR, DBG, eth_nic_base, inb(), memset(), and outb.
Referenced by ne_reset().
|
static |
Definition at line 114 of file ne2k_isa.c.
References D8390_COMMAND_PS1, D8390_COMMAND_RD2, D8390_COMMAND_STP, D8390_P0_TCR, inb(), ioaddr, outb, and state.
|
static |
Definition at line 135 of file ne2k_isa.c.
References c, D8390_COMMAND_RD2, D8390_COMMAND_STP, D8390_DCR_FT1, D8390_DCR_LS, D8390_DCR_WTS, D8390_P0_COMMAND, D8390_P0_DCR, D8390_P0_PSTART, D8390_P0_PSTOP, D8390_P0_RCR, D8390_RCR_MON, D8390_TXBUF_SIZE, DBG, ETH_ALEN, eth_asic_base, eth_bmem, eth_drain_receiver, eth_flags, eth_memsize, eth_nic_base, eth_ntoa(), eth_pio_read(), eth_pio_write(), eth_rmem, eth_rx_start, eth_tx_start, eth_vendor, FLAG_16BIT, FLAG_PIO, inb(), isa_device::ioaddr, nic::ioaddr, nic::irqno, ISA_MAX_ADDR, MEM_16384, MEM_32768, MEM_8192, memcmp(), NE_ASIC_OFFSET, ne_operations, ne_reset(), NE_RESET, nic::nic_op, nic::node_addr, out, outb, test, VENDOR_3COM, VENDOR_NONE, and VENDOR_NOVELL.
|
static |
Definition at line 220 of file ne2k_isa.c.
References ne_reset().
|
static |
Definition at line 228 of file ne2k_isa.c.
References D8390_COMMAND_PS0, D8390_COMMAND_PS1, D8390_COMMAND_RD2, D8390_COMMAND_STA, D8390_COMMAND_STP, D8390_P0_BOUND, D8390_P0_COMMAND, D8390_P0_DCR, D8390_P0_IMR, D8390_P0_ISR, D8390_P0_PSTART, D8390_P0_PSTOP, D8390_P0_RBCR0, D8390_P0_RBCR1, D8390_P0_RCR, D8390_P0_TCR, D8390_P0_TPSR, D8390_P1_CURR, D8390_P1_MAR0, D8390_P1_PAR0, enable_multicast(), ETH_ALEN, eth_drain_receiver, eth_flags, eth_memsize, eth_nic_base, eth_rx_start, eth_tx_start, FLAG_16BIT, nic::node_addr, and outb.
Definition at line 271 of file ne2k_isa.c.
References bus_to_virt(), D8390_COMMAND_PS0, D8390_COMMAND_PS1, D8390_P0_BOUND, D8390_P0_COMMAND, D8390_P0_RSR, D8390_P1_CURR, D8390_RSTAT_PRX, DBG, eth_flags, ETH_FRAME_LEN, eth_memsize, eth_nic_base, eth_pio_read(), eth_rmem, eth_rx_start, ETH_ZLEN, FLAG_PIO, inb(), len, memcpy(), next, outb, nic::packet, and nic::packetlen.
|
static |
Definition at line 337 of file ne2k_isa.c.
References D8390_COMMAND_PS0, D8390_COMMAND_RD2, D8390_COMMAND_STA, D8390_COMMAND_TXP, D8390_P0_COMMAND, D8390_P0_TBCR0, D8390_P0_TBCR1, D8390_P0_TPSR, ETH_ALEN, ETH_HLEN, eth_nic_base, eth_pio_write(), eth_tx_start, ETH_ZLEN, nic::node_addr, outb, and type.
ISA_DRIVER | ( | ne_driver | , |
ne_probe_addrs | , | ||
ne_probe1 | , | ||
GENERIC_ISAPNP_VENDOR | , | ||
0x0600 | |||
) |
DRIVER | ( | "ne" | , |
nic_driver | , | ||
isapnp_driver | , | ||
ne_driver | , | ||
ne_probe | , | ||
ne_disable | |||
) |
ISA_ROM | ( | "ne" | , |
"NE1000/2000 and clones" | |||
) |
|
static |
Definition at line 33 of file ne2k_isa.c.
Referenced by ne_probe().
|
static |
Definition at line 33 of file ne2k_isa.c.
Referenced by eth_pio_read(), eth_pio_write(), ne_poll(), ne_probe(), and ne_reset().
|
static |
Definition at line 34 of file ne2k_isa.c.
Referenced by enable_multicast(), eth_pio_read(), eth_pio_write(), ne_poll(), ne_probe(), ne_reset(), and ne_transmit().
|
static |
Definition at line 34 of file ne2k_isa.c.
Referenced by eth_pio_read(), eth_pio_write(), and ne_probe().
|
static |
Definition at line 35 of file ne2k_isa.c.
Referenced by ne_poll(), ne_probe(), and ne_reset().
|
static |
Definition at line 35 of file ne2k_isa.c.
Referenced by ne_poll(), ne_probe(), and ne_reset().
|
static |
Definition at line 35 of file ne2k_isa.c.
Referenced by ne_probe(), ne_reset(), and ne_transmit().
|
static |
Definition at line 36 of file ne2k_isa.c.
Referenced by ne_probe().
|
static |
Definition at line 36 of file ne2k_isa.c.
Referenced by ne_poll(), and ne_probe().
|
static |
Definition at line 37 of file ne2k_isa.c.
Referenced by ne_probe(), and ne_reset().
|
static |
Definition at line 39 of file ne2k_isa.c.
Referenced by ne_probe().
|
static |
Definition at line 42 of file ne2k_isa.c.