#include "net/nic.h"
Functions | |
void | nicInit (void) |
void | nicSend (unsigned int len, unsigned char *packet) |
unsigned int | nicPoll (unsigned int maxlen, unsigned char *packet) |
void | nicGetMacAddress (uint8_t *macaddr) |
void | nicSetMacAddress (uint8_t *macaddr) |
void | nicRegDump (void) |
|
Return the 48-bit hardware node (MAC) address of this network interface. This function can return a MAC address read from the NIC hardware, if available. If the hardware does not provide a MAC address, a software-defined address may be returned. It may be acceptable to return an address that is less than 48-bits. |
|
Initialize network interface hardware. Reset and bring up network interface hardware. This function should leave the network interface ready to handle
|
|
Check network interface; return next received packet if avaialable. Function accepts the maximum allowable packet length (in bytes), and a pointer to the received packet buffer. Return value is the length (in bytes) of the packet recevied, or zero if no packet is available. Upper network layers may assume that an ethernet-like 802.3 header is at the beginning of the packet, and contains the packet addressing information. See net.h documentation for ethernet header format. |
|
Print network interface hardware registers. Prints a formatted list of names and values of NIC registers for debugging purposes. |
|
Send packet on network interface. Function accepts the length (in bytes) of the data to be sent, and a pointer to the data. This send command may assume an ethernet-like 802.3 header is at the beginning of the packet, and contains the packet addressing information. See net.h documentation for ethernet header format. |
|
Set the 48-bit hardware node (MAC) address of this network interface. This function may not be supported on all hardware. |