OBJS=counter.o firstrun.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o \
../ich2/smram-ich2.o ../ich2/smi.o vga-overlay.o packet.o \
../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o ../net/net.o \
- ../ich2/ich2-timer.o ../pci/pci-bother.o
+ ../ich2/ich2-timer.o ../pci/pci-bother.o ../net/3c90x.o
all: aseg.elf
*/
#include "etherboot-compat.h"
+#include "net.h"
#include <timer.h>
#include <io.h>
#include <pci.h>
/*
adjust_pci_dev(pci);
*/
- nic->ioaddr = ioaddr & ~3;
- nic->irqno = 0;
+ nic.ioaddr = ioaddr & ~3;
+ nic.irqno = 0;
INF_3C90X.IOAddr = ioaddr & ~3;
INF_3C90X.CurrentWindow = 255;
/** Fill in our entry in the etherboot arp table **/
/* XXX ? for lwip?
for(i=0;i<ETH_ALEN;i++)
- nic->node_addr[i] = (eeprom[HWADDR_OFFSET + i/2] >> (8*((i&1)^1))) & 0xff;
+ nic.node_addr[i] = (eeprom[HWADDR_OFFSET + i/2] >> (8*((i&1)^1))) & 0xff;
*/
/** Read the media options register, print a message and set default
cmdAcknowledgeInterrupt, 0x661);
/* * Set our exported functions **/
- nic->poll = a3c90x_poll;
- nic->transmit = a3c90x_transmit;
+ nic.poll = a3c90x_poll;
+ nic.transmit = a3c90x_transmit;
return 1;
}