]> Joshua Wise's Git repositories - netwatch.git/blob - net/net.c
Actually invoke the 3c90x driver load routine.
[netwatch.git] / net / net.c
1 #include <pci.h>
2 #include <pci-bother.h>
3 #include <output.h>
4 #include "net.h"
5
6 static struct nic *_nic = 0x0;
7
8 extern struct pci_driver a3c90x_driver;
9
10 void eth_poll()
11 {
12         if (_nic)
13                 _nic->poll(_nic, 0);
14 }
15
16 int eth_register(struct nic *nic)
17 {
18         if (_nic)
19                 return -1;
20         _nic = nic;
21         return 0;
22 }
23
24 void eth_init()
25 {
26         if (pci_probe_driver(a3c90x_driver))
27                 outputf("found 3c90x, hopefully!");
28 }
This page took 0.026329 seconds and 4 git commands to generate.