// allocHHW returns a reference to the USB hardware abstraction for the given
// host controller driver. Should be called only one time and during host
// controller initialization.
allocHHW returns a reference to the USB hardware abstraction for the given
host controller driver. Should be called only one time and during host
controller initialization.
// allocHHW returns a reference to the USB hardware abstraction for the given // host controller driver . Should be called only one time and during host // controller initialization .
func allocHHW(port, instance int, hc *hcd) *hhw {
	switch port {
	case 0:
		hhwInstance[instance].hcd = hc
		hhwInstance[instance].bus = nxp.USB1
		hhwInstance[instance].phy = nxp.USBPHY1
	case 1:
		hhwInstance[instance].hcd = hc
		hhwInstance[instance].bus = nxp.USB2
		hhwInstance[instance].phy = nxp.USBPHY2
	}
	return &hhwInstance[instance]
}
func allocHHW ( port , instance int , hc * hcd ) * hhw { switch port { case 0 : hhwInstance [ instance ] . hcd = hc hhwInstance [ instance ] . bus = nxp . USB1 hhwInstance [ instance ] . phy = nxp . USBPHY1 case 1 : hhwInstance [ instance ] . hcd = hc hhwInstance [ instance ] . bus = nxp . USB2 hhwInstance [ instance ] . phy = nxp . USBPHY2 } return & hhwInstance [ instance ] }
allocHHW returns a reference to the USB hardware abstraction for the given
host controller driver.
allocHHW returns a reference to the USB hardware abstraction for the given host controller driver .