21 #include "modules/Module.h" 22 #include "pedigree/kernel/machine/Device.h" 23 #include "pedigree/kernel/processor/types.h" 24 #include "pedigree/kernel/utilities/new" 30 uint16_t vendor, device;
35 static struct nic potential_nics[] = {
37 {0x10b7, 0x9000,
"3c905-tpo",
"3Com900-TPO"},
38 {0x10b7, 0x9001,
"3c905-t4",
"3Com900-Combo"},
39 {0x10b7, 0x9050,
"3c905-tpo100",
41 {0x10b7, 0x9051,
"3c905-combo",
44 {0x10b7, 0x9004,
"3c905b-tpo",
"3Com900B-TPO"},
45 {0x10b7, 0x9005,
"3c905b-combo",
"3Com900B-Combo"},
46 {0x10b7, 0x9006,
"3c905b-tpb2",
"3Com900B-2/T"},
47 {0x10b7, 0x900a,
"3c905b-fl",
"3Com900B-FL"},
48 {0x10b7, 0x9055,
"3c905b-tpo100",
"3Com905B-TX"},
49 {0x10b7, 0x9056,
"3c905b-t4",
"3Com905B-T4"},
50 {0x10b7, 0x9058,
"3c905b-9058",
"3Com905B-9058"},
51 {0x10b7, 0x905a,
"3c905b-fx",
"3Com905B-FL"},
53 {0x10b7, 0x9200,
"3c905c-tpo",
55 {0x10b7, 0x9800,
"3c980",
"3Com980-Cyclone"},
56 {0x10b7, 0x9805,
"3c9805",
"3Com9805"},
57 {0x10b7, 0x7646,
"3csoho100-tx",
"3CSOHO100-TX"},
58 {0x10b7, 0x4500,
"3c450",
"3Com450 HomePNA Tornado"},
61 #define NUM_POTENTIAL_NICS (sizeof(potential_nics) / sizeof(potential_nics[0])) 63 static bool bFound =
false;
65 static void probeDevice(
Device *pDev)
79 for (
unsigned int i = 0; i < NUM_POTENTIAL_NICS; i++)
80 Device::searchByVendorIdAndDeviceId(
81 potential_nics[i].vendor, potential_nics[i].device, probeDevice);
90 MODULE_INFO(
"3c90x", &entry, &exit,
"network-stack");
void replaceChild(Device *src, Device *dest)
void setParent(Device *p)
Device * getParent() const