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. | |
| UINT8 | inNE2000 (UINT8 reg) |
| Read byte from NE2000 register. | |
| UINT8 | inNE2000again (void) |
| Continue reading byte(s) from NE2000. | |
| 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 119 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 150 of file ethernet.c. References DATABUS, IOCHRDY, and IOW. Referenced by NE2000SendFrame(), and NE2000WriteEthernetHeader(). |
|
|
Definition at line 175 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 204 of file ethernet.c. References DATABUS, IOCHRDY, and IOR. Referenced by NE2000ReceiveFrame(). |
|
|
Definition at line 231 of file ethernet.c. References BOUNDARY, CR, CURR, inNE2000(), and outNE2000(). Referenced by NE2000ReceiveFrame(). |
|
|
Definition at line 259 of file ethernet.c. References BOUNDARY, CR, NE2000NextPktPtr, and outNE2000(). Referenced by NE2000CheckOverFlow(). |
|
|
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 412 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 500 of file ethernet.c. References ADRBUS, CR, DATADIR, inNE2000(), IOPORT, outNE2000(), RBCR0, RSAR0, and TPSR. |
|
|
Definition at line 538 of file ethernet.c. References ethernet_frame::destination, outNE2000again(), ethernet_frame::protocol, and ethernet_frame::source. |
|
|
Definition at line 569 of file ethernet.c. References CR, outNE2000(), RBCR0, and RSAR0. |
|
|
Definition at line 595 of file ethernet.c. References ADRBUS, CR, DATADIR, IOPORT, NE2000CurrPktPtr, outNE2000(), RBCR0, RSAR0, RXBUF_END, and RXBUF_START. |
|
|
Definition at line 655 of file ethernet.c. References CR, outNE2000(), outNE2000again(), TBCR0, and TBCR1. |
|
|
Definition at line 690 of file ethernet.c. References CR, EtherSleep, and outNE2000(). |
|
|
Definition at line 709 of file ethernet.c. References CR, EtherSleep, and outNE2000(). |
|
|
Start address of next packet in the Ethernet controller Definition at line 80 of file ethernet.c. Referenced by NE2000DumpRxFrame(), and NE2000ReceiveFrame(). |
|
|
Start address of current packet in the Ethernet controller Definition at line 81 of file ethernet.c. Referenced by NE2000DMAInit_position(), and NE2000ReceiveFrame(). |
|
|
Used for storing state of Ethernet controller (0 = awake; 1 = sleeping) Definition at line 83 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 94 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 106 of file ethernet.c. |
1.2.18