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