Definition in file ethernet.c.
Go to the source code of this file.
Functions | |
void | outNE2000 (UINT8 reg, UINT8 dat) |
Write data to NE2000 register. | |
void | outNE2000again (UINT8 dat) |
Write data to the same NE2000 register as before. | |
void | outNE2000againbuf (UINT8 *buf, UINT16 len) |
Write buffer data to the same NE2000 register as before. | |
UINT8 | inNE2000 (UINT8 reg) |
Read byte from NE2000 register. | |
UINT8 | inNE2000again (void) |
Continue reading byte(s) from NE2000. | |
void | inNE2000againbuf (UINT8 *buf, UINT16 len) |
Read bytes from NE2000 to buffer. | |
UINT8 | NE2000CheckRxFrame (void) |
Check to see if new frame has been received. | |
void | NE2000DumpRxFrame (void) |
Discard current received frame. | |
void | NE2000Init (UINT8 *mac) |
Initialize and configure RTL8019AS. | |
void | NE2000CheckOverFlow (void) |
Check if receive-buffer overflow occured. | |
UINT8 | NE2000ReceiveFrame (void) |
Checks if new Ethernet frame exists and initializes variables accordingly. | |
void | InitTransmission (UINT8 page) |
Initialize transmission of new packet. | |
void | NE2000WriteEthernetHeader (struct ethernet_frame *frame) |
Write Ethernet Header to transmission buffer. | |
void | NE2000DMAInit (UINT8 page) |
Initialize NE2000 in preparation for remote DMA. | |
void | NE2000DMAInit_position (UINT16 pos) |
Initialize reading from NE2000. | |
void | NE2000SendFrame (UINT16 len) |
Instruct NIC to send the Ethernet frame. | |
void | NE2000EnterSleep (void) |
Put NE2000 to sleep mode. | |
void | NE2000ExitSleep (void) |
Restore NE2000 from sleep mode. | |
Variables | |
UINT8 | NE2000NextPktPtr |
UINT8 | NE2000CurrPktPtr |
UINT8 | EtherSleep = 0 |
ethernet_frame | received_frame |
Used for storing various information about the received Ethernet frame. | |
ethernet_frame | send_frame |
Used for storing various information about the Ethernet frame that will be sent. |
|
Definition at line 118 of file ethernet.c. References ADRBUS, DATABUS, DATADIR, DDR_OUT, IOCHRDY, and IOW. Referenced by InitTransmission(), NE2000CheckOverFlow(), NE2000CheckRxFrame(), NE2000DMAInit(), NE2000DMAInit_position(), NE2000DumpRxFrame(), NE2000EnterSleep(), NE2000ExitSleep(), NE2000Init(), NE2000ReceiveFrame(), and NE2000SendFrame(). |
|
Use SEND_NETWORK_B() macro instead of invoking this function directly. Definition at line 148 of file ethernet.c. References DATABUS, IOCHRDY, and IOW. Referenced by NE2000SendFrame(), and NE2000WriteEthernetHeader(). |
|
Use SEND_NETWORK_BUF() macro instead of invoking this function directly. Definition at line 175 of file ethernet.c. |
|
Definition at line 198 of file ethernet.c. References ADRBUS, DATABUS, DATADIR, DDR_IN, IOCHRDY, and IOR. Referenced by InitTransmission(), NE2000CheckOverFlow(), NE2000CheckRxFrame(), and NE2000ReceiveFrame(). |
|
Use RECEIVE_NETWORK_B() macro instead of directly invoking this function for easier driver change. Definition at line 226 of file ethernet.c. References DATABUS, IOCHRDY, and IOR. Referenced by NE2000ReceiveFrame(). |
|
Use RECEIVE_NETWORK_BUF() macro instead of directly invoking this function for easier driver change. Definition at line 252 of file ethernet.c. |
|
Definition at line 274 of file ethernet.c. References BOUNDARY, CR, CURR, inNE2000(), outNE2000(), and RCR. Referenced by NE2000ReceiveFrame(). |
|
Definition at line 304 of file ethernet.c. References BOUNDARY, CR, NE2000NextPktPtr, and outNE2000(). |
|
Once this function detects a new Etherent packet, internal variables are initialized (NE2000CurrPktPtr, NE2000NextPktPtr and received_frame structure) and TRUE is returned, indicating that processing of newly-arrived frame may begin. Definition at line 482 of file ethernet.c. References BOUNDARY, ethernet_frame::buf_index, CR, ethernet_frame::destination, FALSE, ethernet_frame::frame_size, inNE2000(), inNE2000again(), IOPORT, NE2000CheckRxFrame(), NE2000CurrPktPtr, NE2000NextPktPtr, outNE2000(), ethernet_frame::protocol, RBCR0, RSAR0, and ethernet_frame::source. |
|
Do not invoke this function directly, but instead use NETWORK_SEND_INITIALIZE() macro. Definition at line 570 of file ethernet.c. References ADRBUS, CR, DATADIR, DDR_OUT, inNE2000(), IOPORT, outNE2000(), RBCR0, RSAR0, and TPSR. |
|
Definition at line 608 of file ethernet.c. References ethernet_frame::destination, outNE2000again(), ethernet_frame::protocol, and ethernet_frame::source. |
|
Definition at line 639 of file ethernet.c. References CR, outNE2000(), RBCR0, and RSAR0. |
|
Definition at line 665 of file ethernet.c. References ADRBUS, CR, DATADIR, DDR_IN, IOPORT, NE2000CurrPktPtr, outNE2000(), RBCR0, RSAR0, RXBUF_END, and RXBUF_START. |
|
Definition at line 725 of file ethernet.c. References CR, outNE2000(), outNE2000again(), TBCR0, and TBCR1. |
|
Definition at line 760 of file ethernet.c. References CR, EtherSleep, and outNE2000(). |
|
Definition at line 779 of file ethernet.c. References CR, EtherSleep, and outNE2000(). |
|
Start address of next packet in the Ethernet controller Definition at line 79 of file ethernet.c. Referenced by NE2000CheckOverFlow(), NE2000DumpRxFrame(), NE2000Init(), and NE2000ReceiveFrame(). |
|
Start address of current packet in the Ethernet controller Definition at line 80 of file ethernet.c. Referenced by NE2000CheckOverFlow(), NE2000DMAInit_position(), NE2000Init(), and NE2000ReceiveFrame(). |
|
Used for storing state of Ethernet controller (0 = awake; 1 = sleeping) Definition at line 82 of file ethernet.c. Referenced by NE2000EnterSleep(), and NE2000ExitSleep(). |
|
Fields from Ethernet packet (dest/source hardware address, protocol, frame size, start of the Ethernet packet in Ethernet controller) are stored in this structure. These values are later used from upper layer protocols (IP, ARP). See ethernet_frame definition for more information about struct fields. Definition at line 93 of file ethernet.c. |
|
Fields from Ethernet packet (dest/source hardware address, protocol, frame size) are stored in this structure by the upper layer protocols (IP, ARP, other). These values are then used for initializing transmission of an Ethernet frame. See ethernet_frame definition for more information about struct fields. Definition at line 105 of file ethernet.c. |