Go to the documentation of this file.
48 static const char *
const nicIdent[] = {
"Unknown",
"BICC",
"NE2100",
"DEPCA",
"CNET98S" };
50 static const char *
const icIdent[] = {
"Unknown",
"LANCE",
"C-LANCE",
"PCnet-ISA",
"PCnet-ISA+",
"PCnet-ISA II",
"PCnet-32 VL-Bus",
"PCnet-PCI",
"PCnet-PCI II",
"PCnet-FAST",
"PCnet-FAST+",
"PCnet-Home", };
97 char data[64] =
"abcDEFghiJKLmnoPQRstuVWXyz";
135 kprintf(
"Invalid Mode: [%i]", i);
173 for (i = 0; i < 1000; i++)
261 kprintf(
"Error: [0x%X]\n", csr0);
357 kprintf(
"Status: [0x%X]\n", status);
377 kprintf(
"CSR0: [0x%X]\n", csr0);
379 kprintf(
"Error: [0x%X]\n", csr0);
388 kprintf(
"CSR0: [0x%X]\n", csr0);
430 kprintf(
"lnc%d: Couldn't allocate memory for rxRing\n", unit);
441 kprintf(
"lnc%d: Couldn't allocate memory for rXBuffer\n", unit);
463 kprintf(
"lnc%d: Couldn't allocate memory for txRing\n", unit);
474 kprintf(
"lnc%d: Couldn't allocate memory for txBuffer\n", unit);
600 kprintf(
"Cannot Swithc To 32 Bit");
void lnc_writeCSR32(struct lncInfo *lnc, uint32_t port, uint32_t val)
struct hostRingEntry * txRing
int lnc_driverOwnsTX(struct lncInfo *lnc)
struct hostRingEntry * rxRing
void outportDWord(unsigned int port, unsigned long value)
outputut one double word to specified port
int lnc_nextTxPtr(struct lncInfo *lnc)
unsigned long inportDWord(unsigned int)
input one double word from specified port
void lnc_reset(struct lncInfo *lnc)
void ethernetif_input(struct netif *)
unsigned short int uInt16
void outportWord(unsigned int, unsigned short)
outputut one word to specified port
int lnc_probe(struct lncInfo *lnc)
void outportByte(unsigned int, unsigned char)
outputut one byte to specified port
uint16_t lnc_readBCR(struct lncInfo *lnc, uint16_t port)
void kpanic(const char *fmt,...)
print panic message and halt system
void * memcpy(const void *dst, const void *src, size_t length)
unsigned char inportByte(unsigned int)
input one byte from specified port
void lnc_writeBCR32(struct lncInfo *lnc, uint32_t port, uint32_t val)
uint32_t lnc_readCSR32(struct lncInfo *lnc, uint32_t port)
void lnc_writeBCR(struct lncInfo *lnc, uint16_t port, uint16_t val)
int lncAttach(struct lncInfo *lnc, int unit)
void lnc_reset32(struct lncInfo *lnc)
uint32_t vmm_getRealAddr(uint32_t)
int lnc_nextRxPtr(struct lncInfo *lnc)
int lnc_switchDWord(struct lncInfo *lnc)
int lnc_sendPacket(struct lncInfo *lnc, void *packet, size_t len, uint8_t *dest)
unsigned short inportWord(unsigned int)
input one word from specified port
int lnc_driverOwnsRX(struct lncInfo *lnc)
uint16_t lnc_readCSR(struct lncInfo *lnc, uint16_t port)
void lnc_writeCSR(struct lncInfo *lnc, uint16_t port, uint16_t val)
int lnc_getMode(struct lncInfo *lnc)
void * kmalloc(uInt32 len)
void setVector(void *handler, unsigned char interrupt, unsigned short controlMajor)
void * memset(void *dst, int c, size_t length)
void irqEnable(uInt16 irqNo)
struct nicBuffer * tmpBuf
int kprintf(const char *,...)
uint32_t lnc_readBCR32(struct lncInfo *lnc, uint32_t port)
int lanceProbe(struct lncInfo *lnc)