]> Joshua Wise's Git repositories - netwatch.git/blob - net/net.c
18eaddf2dc625729b5af87d7d9ee55c339d93cb9
[netwatch.git] / net / net.c
1 #include <pci.h>
2 #include <pci-bother.h>
3 #include <output.h>
4 #include "net.h"
5
6 struct nic nic;
7
8 static int bother_3c905(pci_dev_t *dev, void *nutrinus)
9 {
10         if (dev->vid == 0x10B7 || dev->did == 0x9200)
11         {
12                 outputf("Found a 3c905 to bother");
13                 
14                 pci_bother_add(dev);
15                 return 1;
16         }
17         return 0;
18 }
19
20 void eth_poll()
21 {
22         /* ... */
23 }
24
25 void eth_init()
26 {
27         pci_probe(bother_3c905, 0x0);
28 }
This page took 0.022053 seconds and 2 git commands to generate.