HelenOS sources

USB_HUB_PORT_STATUS_CONNECTION  301 uspace/drv/bus/usb/ehci/ehci_rh.c 	    EHCI2USB(reg, USB_PORTSC_CONNECT_FLAG, USB_HUB_PORT_STATUS_CONNECTION) |
USB_HUB_PORT_STATUS_CONNECTION  244 uspace/drv/bus/usb/uhci/uhci_rh.c 	    UHCI2USB(val, STATUS_CONNECTED, USB_HUB_PORT_STATUS_CONNECTION) |
USB_HUB_PORT_STATUS_CONNECTION  211 uspace/drv/bus/usb/usbhub/port.c 	const bool connected = !!(status & USB_HUB_PORT_STATUS_CONNECTION);
HelenOS homepage, sources at GitHub