// initHCD initializes and assigns a free host controller instance to the given
// USB port. Returns the initialized host controller or nil if no free host
// controller instances remain.
initHCD initializes and assigns a free host controller instance to the given
USB port. Returns the initialized host controller or nil if no free host
controller instances remain.
// initHCD initializes and assigns a free host controller instance to the given // USB port . Returns the initialized host controller or nil if no free host // controller instances remain .
func initHCD(port int, class class) (*hcd, status) {
	if 0 == hcdCount {
		return nil, statusInvalid 
	}
	switch class.id {
	default:
	}
	for i := range hcdInstance {
		if nil == hcdInstance[i].core {
			hcdInstance[i].hhw = allocHHW(port, i, &hcdInstance[i])
			hcdInstance[i].core = &coreInstance[port]
			hcdInstance[i].port = port
			hcdInstance[i].cc = class
			hcdInstance[i].id = i
			return &hcdInstance[i], statusOK
		}
	}
	return nil, statusBusy 
}
func initHCD ( port int , class class ) ( * hcd , status ) { if 0 == hcdCount { return nil , statusInvalid } switch class . id { default : } for i := range hcdInstance { if nil == hcdInstance [ i ] . core { hcdInstance [ i ] . hhw = allocHHW ( port , i , & hcdInstance [ i ] ) hcdInstance [ i ] . core = & coreInstance [ port ] hcdInstance [ i ] . port = port hcdInstance [ i ] . cc = class hcdInstance [ i ] . id = i return & hcdInstance [ i ] , statusOK } } return nil , statusBusy }
initHCD initializes and assigns a free host controller instance to the given
USB port.
initHCD initializes and assigns a free host controller instance to the given USB port .
// Must have defined host controllers // Return the first instance whose assigned core is currently nil. // Initialize host controller. // No free host controller instances available.