#include <cfg/os.h>
#include <arch/arm.h>
#include <dev/board.h>
#include <string.h>
#include <stdlib.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_var.h>
#include <dev/irqreg.h>
#include <dev/dm9000.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | _NICINFO |
Network interface controller information structure. More... | |
Defines | |
#define | NUT_THREAD_NICRXSTACK 384 |
#define | INT0 0 |
#define | INT1 1 |
#define | INT2 2 |
#define | INT3 3 |
#define | INT4 4 |
#define | INT5 5 |
#define | INT6 6 |
#define | INT7 7 |
#define | NIC_SIGNAL sig_INTERRUPT0 |
#define | NIC_NCR 0x00 |
#define | NIC_NCR_LBM 0x06 |
#define | NIC_NCR_LBNORM 0x00 |
#define | NIC_NCR_LBMAC 0x02 |
#define | NIC_NCR_LBPHY 0x04 |
#define | NIC_NCR_RST 0x01 |
#define | NIC_NSR 0x01 |
#define | NIC_NSR_SPEED 0x80 |
#define | NIC_NSR_LINKST 0x40 |
#define | NIC_NSR_WAKEST 0x20 |
#define | NIC_NSR_TX2END 0x08 |
#define | NIC_NSR_TX1END 0x04 |
#define | NIC_NSR_RXOV 0x02 |
#define | NIC_TCR 0x02 |
#define | NIC_TCR_TXREQ 0x01 |
#define | NIC_TSR1 0x03 |
#define | NIC_TSR2 0x04 |
#define | NIC_RCR 0x05 |
#define | NIC_RCR_DIS_LONG 0x20 |
#define | NIC_RCR_DIS_CRC 0x10 |
#define | NIC_RCR_ALL 0x08 |
#define | NIC_RCR_PRMSC 0x02 |
#define | NIC_RCR_RXEN 0x01 |
#define | NIC_RSR 0x06 |
#define | NIC_RSR_ERRORS 0xBF |
#define | NIC_RSR_RF 0x80 |
#define | NIC_RSR_MF 0x40 |
#define | NIC_RSR_LCS 0x20 |
#define | NIC_RSR_RWTO 0x10 |
#define | NIC_RSR_PLE 0x08 |
#define | NIC_RSR_AE 0x04 |
#define | NIC_RSR_CE 0x02 |
#define | NIC_RSR_FOE 0x01 |
#define | NIC_ROCR 0x07 |
#define | NIC_BPTR 0x08 |
#define | NIC_FCTR 0x09 |
#define | NIC_FCR 0x0A |
#define | NIC_EPCR 0x0B |
#define | NIC_EPAR 0x0C |
#define | NIC_EPDRL 0x0D |
#define | NIC_EPDRH 0x0E |
#define | NIC_WCR 0x0F |
#define | NIC_PAR 0x10 |
#define | NIC_MAR 0x16 |
#define | NIC_GPCR 0x1E |
#define | NIC_GPR 0x1F |
#define | NIC_TRPA 0x22 |
#define | NIC_RWPA 0x24 |
#define | NIC_VID 0x28 |
#define | NIC_PID 0x2A |
#define | NIC_CHIPR 0x2C |
#define | NIC_SMCR 0x2F |
#define | NIC_MRCMDX 0xF0 |
#define | NIC_MRCMD 0xF2 |
#define | NIC_MRR 0xF4 |
#define | NIC_MWCMDX 0xF6 |
#define | NIC_MWCMD 0xF8 |
#define | NIC_MWR 0xFA |
#define | NIC_TXPL 0xFC |
#define | NIC_ISR 0xFE |
#define | NIC_ISR_IOM 0xC0 |
#define | NIC_ISR_M16 0x00 |
#define | NIC_ISR_M32 0x40 |
#define | NIC_ISR_M8 0x80 |
#define | NIC_ISR_ROOS 0x08 |
#define | NIC_ISR_ROS 0x04 |
#define | NIC_ISR_PTS 0x02 |
#define | NIC_ISR_PRS 0x01 |
#define | NIC_IMR 0xFF |
#define | NIC_IMR_PAR 0x80 |
#define | NIC_IMR_ROOM 0x08 |
#define | NIC_IMR_ROM 0x04 |
#define | NIC_IMR_PTM 0x02 |
#define | NIC_IMR_PRM 0x01 |
#define | NIC_PHY_BMCR 0x00 |
#define | NIC_PHY_BMSR 0x01 |
#define | NIC_PHY_BMSR_ANCOMPL 0x0020 |
#define | NIC_PHY_BMSR_LINKSTAT 0x0004 |
#define | NIC_PHY_ID1 0x02 |
#define | NIC_PHY_ID2 0x03 |
#define | NIC_PHY_ANAR 0x04 |
#define | NIC_PHY_ANLPAR 0x05 |
#define | NIC_PHY_ANER 0x06 |
#define | NIC_PHY_DSCR 0x10 |
#define | NIC_PHY_DSCSR 0x11 |
#define | NIC_PHY_10BTCSR 0x12 |
Typedefs | |
typedef struct _NICINFO | NICINFO |
Network interface controller information type. | |
Functions | |
void | NicRxLanc (void *arg) |
int | DmOutput (NUTDEVICE *dev, NETBUF *nb) |
Send Ethernet packet. | |
int | DmInit (NUTDEVICE *dev) |
Initialize Ethernet hardware. | |
Variables | |
NUTDEVICE | devDm9000 |
Device information structure. |
#define INT7 7 |
Definition at line 80 of file dm9000.c.
Referenced by wlandrv_Init().
#define NIC_SIGNAL sig_INTERRUPT0 |
Definition at line 109 of file dm9000.c.
Referenced by DmInit(), and NicRxLanc().