Searched refs:hubd (Results 1 – 3 of 3) sorted by relevance
/openbsd/sys/dev/usb/ |
H A D | ohci.c | 2276 usb_hub_descriptor_t hubd; in ohci_root_ctrl_start() local 2474 hubd = ohci_hubd; in ohci_root_ctrl_start() 2475 hubd.bNbrPorts = sc->sc_noport; in ohci_root_ctrl_start() 2476 USETW(hubd.wHubCharacteristics, in ohci_root_ctrl_start() 2481 hubd.bPwrOn2PwrGood = OHCI_GET_POTPGT(v); in ohci_root_ctrl_start() 2484 hubd.DeviceRemovable[i++] = (u_int8_t)v; in ohci_root_ctrl_start() 2485 hubd.bDescLength = USB_HUB_DESCRIPTOR_SIZE + i; in ohci_root_ctrl_start() 2486 l = min(len, hubd.bDescLength); in ohci_root_ctrl_start() 2488 memcpy(buf, &hubd, l); in ohci_root_ctrl_start()
|
H A D | xhci.c | 2446 usb_hub_descriptor_t hubd; in xhci_root_ctrl_start() local 2647 hubd = xhci_hubd; in xhci_root_ctrl_start() 2648 hubd.bNbrPorts = sc->sc_noport; in xhci_root_ctrl_start() 2649 USETW(hubd.wHubCharacteristics, in xhci_root_ctrl_start() 2652 hubd.bPwrOn2PwrGood = 10; /* xHCI section 5.4.9 */ in xhci_root_ctrl_start() 2656 hubd.DeviceRemovable[i / 8] |= 1U << (i % 8); in xhci_root_ctrl_start() 2658 hubd.bDescLength = USB_HUB_DESCRIPTOR_SIZE + i; in xhci_root_ctrl_start() 2659 l = min(len, hubd.bDescLength); in xhci_root_ctrl_start() 2661 memcpy(buf, &hubd, l); in xhci_root_ctrl_start()
|
H A D | ehci.c | 1803 usb_hub_descriptor_t hubd; in ehci_root_ctrl_start() local 2010 hubd = ehci_hubd; in ehci_root_ctrl_start() 2011 hubd.bNbrPorts = sc->sc_noport; in ehci_root_ctrl_start() 2013 USETW(hubd.wHubCharacteristics, in ehci_root_ctrl_start() 2016 hubd.bPwrOn2PwrGood = 200; /* XXX can't find out? */ in ehci_root_ctrl_start() 2018 hubd.DeviceRemovable[i++] = 0; /* XXX can't find out? */ in ehci_root_ctrl_start() 2019 hubd.bDescLength = USB_HUB_DESCRIPTOR_SIZE + i; in ehci_root_ctrl_start() 2020 l = min(len, hubd.bDescLength); in ehci_root_ctrl_start() 2022 memcpy(buf, &hubd, l); in ehci_root_ctrl_start()
|