RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

HAL_USBControllerInfo

Hardware Abstraction Layer
HAL entry points from RISC OS
ยป HAL_USBControllerInfo

HAL_USBControllerInfo

(HAL entry #106)
size_t HAL_USBControllerInfo(int bus, struct usbinfo *info, size_t len)
Entry
bus Bus/interface number to query
info usbinfo pointer to fill with data
len Length of info
Exit
- Returns sizeof( usbinfo ) or 0 for failure.

Use

This is an internal call for OS use only and should not be used by user software.

Reads information about the available USB controllers. The information is stored in a usbinfo struct:

struct usbinfo {
    enum {
        OHCI = 0,
        EHCI = 1,
        MUSBMHDRC = 2
    } type;      /* Controller type */
    int32 flags; /* Extra flags */
    void *hw;    /* Logical address of controller registers */
    int devno;   /* Device (interrupt) number of controller */
}

The available flags are as follows:

Bit Meaning
0 Port power controlled via HAL_USBPortPower (OHCI)
1 Port status read via HAL_USBPortStatus (OHCI)
2 Port status IRQ number available via HAL_USBPortIRQ (OHCI)
3 Must use 32bit access for all registers (EHCI)

See also

  • HAL USB API
Information sources: Kernel.Docs.HAL.USB, HAL.OMAP3.s.USB, HAL.OMAP3.hdr.USB in CVS
Revised on February 9, 2012 13:59:29 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL TODO, HAL entry points by number, HAL USB API

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys