Example #1
0
        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);
        }
Example #2
0
        public static void Init()
        {
            USBHub hub = new USBHub();

            USBDrivers.RegisterDriver(hub);
        }