ne2000.c File Reference

NE1000 and NE2000 network interface initialization and probe functions implementation. More...

#include <stdio.h>
#include <unistd.h>
#include "dp8390_port.h"
#include "local.h"
#include "dp8390.h"
#include "ne2000.h"
Include dependency graph for ne2000.c:

Defines

#define N   100
 Number of bytes to transfer.
#define milli_delay(millis)   usleep((millis) * 1000)
 Sleeps for the defined millicesonds.

Functions

 _PROTOTYPE (typedef int(*testf_t),(dpeth_t *dep, int pos, u8_t *pat))
 Type definition of the testing function.
static int test_8 (dpeth_t *dep, int pos, u8_t *pat)
 Tests 8 bit NE2000 network interface.
static int test_16 (dpeth_t *dep, int pos, u8_t *pat)
 Tests 16 bit NE2000 network interface.
static void ne_stop (dpeth_t *dep)
 Stops the NE2000 network interface.
void ne_init (struct dpeth *dep)
 Initializes the NE2000 network interface.
int ne_probe (dpeth_t *dep)
 Probes a NE2000 or NE1000 network interface.

Variables

u8_t pat0 [] = {0x00, 0x00, 0x00, 0x00}
 First data pattern.
u8_t pat1 [] = {0xFF, 0xFF, 0xFF, 0xFF}
 Second data pattern.
u8_t pat2 [] = {0xA5, 0x5A, 0x69, 0x96}
 Third data pattern.
u8_t pat3 [] = {0x96, 0x69, 0x5A, 0xA5}
 Fourth data pattern.

Detailed Description

NE1000 and NE2000 network interface initialization and probe functions implementation.


Generated on Thu Mar 11 20:46:10 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1