#include "etherboot.h"
#include "pci.h"
Idź do kodu źródłowego tego pliku.
#define virt_to_bus | ( | x | ) | ((unsigned long)x) |
#define XCVR_MAGIC (0x5A00) |
#define XMIT_RETRIES 250 |
enum Commands |
enum Registers |
enum Registers0 |
enum Registers1 |
enum Registers2 |
enum Registers3 |
enum Registers4 |
enum Registers5 |
enum Registers6 |
enum Registers7 |
enum Windows |
struct nic* a3c90x_probe | ( | struct nic * | nic, | |
unsigned short * | probeaddrs, | |||
struct pci_device * | pci | |||
) | [read] |
10 Base TPO
10/100 T4
10/100 TPO
10 Base Combo
10 Base TPO
10 Base Combo
10 Base TPO and Base2
10 Base FL
10/100 TPO
10/100 T4
10 Base FX
Load the EEPROM contents
Print identification message
Retrieve the Hardware address and print it on the screen.
Program the MAC address into the station address registers
Fill in our entry in the etherboot arp table
Read the media options register, print a message and set default xcvr.
Uses Media Option command on B revision, Reset Option on non-B revision cards -- same register address
mask out VCO bit that is defined as 10baseFL bit on B-rev cards
Determine transceiver type to use, depending on value stored in eeprom 0x16
User-defined
I don't know what MII MAC only mode is!!!
enable DC converter for 10-Base-T
Set the link to the type we just determined.
Now that we set the xcvr type, reset the Tx and Rx, re-enable.
reset of the receiver on B-revision cards re-negotiates the link takes several seconds (a computer eternity)
Set the RX filter = receive only individual pkts & bcast.
set Indication and Interrupt flags , acknowledge any IRQ's
Set our exported functions
Definicja w linii 680 pliku sbox.cpp.
Odwołuje się do adjust_pci_device(), cmdAcknowledgeInterrupt, cmdEnableDcConverter, cmdRxEnable, cmdRxReset, cmdSetIndicationEnable, cmdSetInterruptEnable, cmdSetRxFilter, cmdTxEnable, cmdTxReset, ETH_ALEN, htons, IOPorts::inl(), IOPorts::inw(), nic::node_addr, IOPorts::outb(), IOPorts::outl(), IOPorts::outw(), printf, regCommandIntStatus_w, regInternalConfig_3_l, regResetMediaOptions_3_w, regStationAddress_2_3w, regStationMask_2_3w, regTxFreeThresh_b, nic::reset, winAddressing2, winTxRxOptions3 i XCVR_MAGIC.
void adjust_pci_device | ( | struct pci_device * | p | ) |
Definicja w linii 1413 pliku sbox.cpp.
Odwołuje się do pci_device::bus, pci_device::devfn, PCI_COMMAND, PCI_COMMAND_IO, PCI_COMMAND_MASTER, PCI_LATENCY_TIMER, pcibios_read_config_byte(), pcibios_read_config_word(), pcibios_write_config_byte(), pcibios_write_config_word() i printf.
Odwołania w a3c90x_probe().
void eth_pci_init | ( | struct pci_device * | pcidev | ) |
int pcibios_read_config_byte | ( | unsigned int | bus, | |
unsigned int | device_fn, | |||
unsigned int | where, | |||
unsigned char * | value | |||
) |
Definicja w linii 1064 pliku sbox.cpp.
Odwołuje się do PCIBIOS_READ_CONFIG_BYTE, restore_flags i save_flags.
Odwołania w adjust_pci_device().
int pcibios_read_config_dword | ( | unsigned int | bus, | |
unsigned int | device_fn, | |||
unsigned int | where, | |||
unsigned int * | value | |||
) |
Definicja w linii 1118 pliku sbox.cpp.
Odwołuje się do PCIBIOS_READ_CONFIG_DWORD, restore_flags i save_flags.
int pcibios_read_config_word | ( | unsigned int | bus, | |
unsigned int | device_fn, | |||
unsigned int | where, | |||
unsigned short * | value | |||
) |
Definicja w linii 1091 pliku sbox.cpp.
Odwołuje się do PCIBIOS_READ_CONFIG_WORD, restore_flags i save_flags.
Odwołania w adjust_pci_device().
int pcibios_write_config_byte | ( | unsigned int | bus, | |
unsigned int | device_fn, | |||
unsigned int | where, | |||
unsigned char | value | |||
) |
Definicja w linii 1145 pliku sbox.cpp.
Odwołuje się do cli, PCIBIOS_WRITE_CONFIG_BYTE, restore_flags i save_flags.
Odwołania w adjust_pci_device().
int pcibios_write_config_dword | ( | unsigned int | bus, | |
unsigned int | device_fn, | |||
unsigned int | where, | |||
unsigned int | value | |||
) |
Definicja w linii 1199 pliku sbox.cpp.
Odwołuje się do cli, PCIBIOS_WRITE_CONFIG_DWORD, restore_flags i save_flags.
int pcibios_write_config_word | ( | unsigned int | bus, | |
unsigned int | device_fn, | |||
unsigned int | where, | |||
unsigned short | value | |||
) |
Definicja w linii 1172 pliku sbox.cpp.
Odwołuje się do cli, PCIBIOS_WRITE_CONFIG_WORD, restore_flags i save_flags.
Odwołania w adjust_pci_device().
unsigned char CurrentWindow |