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_ControllerAddress

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

HAL_ControllerAddress

(HAL entry #60)
void *HAL_ControllerAddress(unsigned ignored,unsigned controller)
Entry
ignored This parameter is ignored
controller See OS_Memory 9 Controller Numbers
Exit
- On success, returns the logical address of the chosen controller.
On failure, returns -1 (controller number not recognised) or zero (controller not present)

Use

Asks the HAL where various controllers might or might not be. Podule manager uses this information to determine at run time whether or not to bother doing anything. The ADFS, SerialDeviceDriver & ParallelDeviceDriver modules use it to get the 82C710 address for providing floppy/serial/parallel support.

This HAL call is used in the implementation of SWI OS_Memory 9. User software should always prefer to use that SWI call instead of calling the HAL directly. OS_Memory 9 will convert a return value of -1 to an error, while a value of 0 will be returned directly.

Information source: Kernel.Docs.HAL.HAL_API, HAL.Tungsten.s.Boot, HAL.IOMD.s.Boot in CVS
Revised on July 6, 2011 13:23:56 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number

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
  • Export
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