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