21 #include "modules/Module.h" 22 #include "modules/system/usb/UsbPnP.h" 23 #include "pedigree/kernel/processor/types.h" 24 #include "pedigree/kernel/utilities/new" 37 #define NUM_DEVICES (sizeof(g_Devices) / sizeof(g_Devices[0])) 41 return new Dm9601(pDevice);
46 for (
size_t i = 0; i < NUM_DEVICES; i++)
48 g_Devices[i].vendor, g_Devices[i].product, dm9601Connected);
57 MODULE_INFO(
"dm9601", &entry, &exit,
"usb",
"network-stack");
static UsbPnP & instance()
Singleton design.
void registerCallback(uint16_t nVendorId, uint16_t nProductId, callback_t callback)
Register a callback for the given vendor and product IDs.