]>
Commit | Line | Data |
---|---|---|
3b3161a1 | 1 | #include <pci.h> |
4d898e0b | 2 | #include <pci-bother.h> |
3b3161a1 | 3 | #include <output.h> |
4d898e0b | 4 | #include "net.h" |
3b3161a1 | 5 | |
7a914840 | 6 | static struct nic *_nic = 0x0; |
3e6d6106 | 7 | |
7a914840 JW |
8 | extern struct pci_driver a3c90x_driver; |
9 | ||
10 | void eth_poll() | |
3b3161a1 | 11 | { |
7a914840 JW |
12 | if (_nic) |
13 | _nic->poll(_nic, 0); | |
3b3161a1 JW |
14 | } |
15 | ||
7a914840 | 16 | int 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 | ||
24 | void eth_init() | |
25 | { | |
7a914840 JW |
26 | if (pci_probe_driver(a3c90x_driver)) |
27 | outputf("found 3c90x, hopefully!"); | |
3b3161a1 | 28 | } |