h6. [[Hardware Abstraction Layer]] h6(. [[HAL entry points from RISC OS]] h6((. » HAL_USBPortPower h2. HAL_USBPortPower h5. (HAL entry #109) <pre> void HAL_USBPortPower(int bus, int port, int state) </pre> |_<. Entry | | |bus |Bus/interface number to query | |port |Port number to modify | |/3^. state |Power state to set: | |0 = Power off | |1 = Power on | |_<. Exit | | |- | | h4. Use This is an internal call for OS use only and should not be used by user software. Used to control the power state of the indicated port. The availability of this call is indicated via the flag bits of [[HAL_USBControllerInfo]] and requires that the HAL has a fixed mapping between the root hub controller number and the physical connectors on the circuit board, for example where the power is controlled via GPIO lines for those connectors. A root hub controller on a PCI card does not match these criteria as the card could be (re)moved, requiring the HAL to carry detection code that is better placed in the controller driver. h4. See also * [[HAL USB API]] h6. Information source: HWSupport.USB.NetBSD.build.c.ohcimodule in CVS