#include <string.h>
#include <cfg/os.h>
#include <sys/atom.h>
#include <sys/heap.h>
#include <sys/thread.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/confnet.h>
#include <netinet/if_ether.h>
#include <net/ether.h>
#include <net/if.h>
#include <net/if_var.h>
#include <cfg/arch/gpio.h>
#include <dev/irqreg.h>
#include <dev/lan91.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | _NICINFO |
Network interface controller information structure. More... | |
Defines | |
#define | LAN91_SIGNAL sig_INTERRUPT0 |
#define | LAN91_RX_POLLTIME 2000 |
#define | LAN91_TX_POLLTIME 5000 |
#define | nic_outlb(addr, val) (*(volatile uint8_t *)(addr) = (val)) |
#define | nic_outhb(addr, val) (*(volatile uint8_t *)((addr) + 1) = (val)) |
#define | nic_outwx(addr, val) (*(volatile uint16_t *)(addr) = (val)) |
#define | nic_outw(addr, val) |
#define | nic_inlb(addr) (*(volatile uint8_t *)(addr)) |
#define | nic_inhb(addr) (*(volatile uint8_t *)((addr) + 1)) |
#define | nic_inw(addr) (*(volatile uint16_t *)(addr)) |
#define | nic_bs(bank) nic_outlb(LAN91_BSR, bank) |
Typedefs | |
typedef struct _NICINFO | NICINFO |
Network interface controller information type. | |
Functions | |
void | NicRxLanc (void *arg) |
Variables | |
NUTDEVICE | devLan91 |
Device information structure. |
#define LAN91_SIGNAL sig_INTERRUPT0 |
Definition at line 68 of file lan91.c.
Referenced by NicRxLanc().
#define LAN91_RX_POLLTIME 2000 |
Definition at line 90 of file lan91.c.
Referenced by NicRxLanc().