public unsafe IUSBDriver Load(USBDevice device) { if (device.InterfaceDesc->Class == (byte)USBClassCodes.HUB) { USBHub hub = new USBHub(); hub.Init(device); device.Classifier = USBDeviceClassifier.HUB; return(hub); } return(null); }
public static void Init() { USBHub hub = new USBHub(); USBDrivers.RegisterDriver(hub); }