]> Joshua Wise's Git repositories - netwatch.git/blob - net/net.c
Add the mechanism by which we bother PCI, generically.
[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 int bother_3c905(pci_dev_t *dev, void *nutrinus)
7 {
8         if (dev->vid == 0x10B7 || dev->did == 0x9200)
9         {
10                 outputf("Found a 3c905 to bother");
11                 
12                 pci_bother_add(dev);
13                 return 1;
14         }
15         return 0;
16 }
17
18 void eth_poll()
19 {
20         /* ... */
21 }
22
23 void eth_init()
24 {
25         pci_probe(bother_3c905, 0x0);
26 }
This page took 0.023655 seconds and 4 git commands to generate.