]> Joshua Wise's Git repositories - netwatch.git/blob - net/net.c
575b5e446f827209fdb9662a403382d2cdade348
[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.021504 seconds and 2 git commands to generate.