]>
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 | |
e9d467b3 | 6 | static int bother_3c905(pci_dev_t *dev, void *nutrinus) |
3b3161a1 JW |
7 | { |
8 | if (dev->vid == 0x10B7 || dev->did == 0x9200) | |
9 | { | |
10 | outputf("Found a 3c905 to bother"); | |
11 | ||
4d898e0b | 12 | pci_bother_add(dev); |
3b3161a1 JW |
13 | return 1; |
14 | } | |
15 | return 0; | |
16 | } | |
17 | ||
18 | void eth_poll() | |
19 | { | |
4d898e0b | 20 | /* ... */ |
3b3161a1 JW |
21 | } |
22 | ||
23 | void eth_init() | |
24 | { | |
e9d467b3 | 25 | pci_probe(bother_3c905, 0x0); |
3b3161a1 | 26 | } |