Go to the source code of this file.
Data Structures | |
struct | NICINFO |
Defines | |
#define | DEV_ETHER devAx88796 |
#define | devEth0 devAx88796 |
#define | ASIX_BASE 0x20000000 |
Charon III Ethernet controller parameters. | |
#define | Asix_Read(reg) *(unsigned char *) (reg + ASIX_BASE) |
#define | Asix_ReadWord(reg) *(unsigned short *) (reg + ASIX_BASE) |
#define | Asix_Write(reg, data) *(unsigned char *) (reg + ASIX_BASE) = data |
#define | Asix_WriteWord(reg, data) *(unsigned short *) (reg + ASIX_BASE) = data |
#define | TXSTART_INIT 0x40 |
#define | RXSTART_INIT 0x46 |
#define | RXSTOP_INIT 0x80 |
Functions | |
int | AsixInit (NUTDEVICE *dev) |
Initialize Ethernet hardware. | |
int | AsixOutput (NUTDEVICE *dev, NETBUF *nb) |
Send Ethernet packet. | |
void | NicPhyWrite (uint8_t reg, uint16_t val) |
Write value to PHY register. | |
uint16_t | NicPhyRead (uint8_t reg) |
Read contents of internel PHY register on 0x10 adress. | |
Variables | |
NUTDEVICE | devAx88796 |
Device information structure. |
#define DEV_ETHER devAx88796 |
#define devEth0 devAx88796 |
#define ASIX_BASE 0x20000000 |
Charon III Ethernet controller parameters.
#define Asix_Read | ( | reg | ) | *(unsigned char *) (reg + ASIX_BASE) |
Referenced by NicPhyRead(), and NicPhyWrite().
#define Asix_ReadWord | ( | reg | ) | *(unsigned short *) (reg + ASIX_BASE) |
#define Asix_Write | ( | reg, | |
data | |||
) | *(unsigned char *) (reg + ASIX_BASE) = data |
Referenced by NicPhyRead(), and NicPhyWrite().
#define Asix_WriteWord | ( | reg, | |
data | |||
) | *(unsigned short *) (reg + ASIX_BASE) = data |
#define TXSTART_INIT 0x40 |
#define RXSTART_INIT 0x46 |
#define RXSTOP_INIT 0x80 |