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

Creaton and removal of HAL devices

Hardware Abstraction Layer
» HAL Device API
» Creation and removal of devices

Adding devices – from the HAL

Once the OS calls HAL_InitDevices, the HAL is free to register as many devices it wants, whenever it wants. However it’s usually best to register all the devices inside the implementation of HAL_InitDevices, to ensure that they’re made available to the OS as early as possible during initialisation.

RISCOS_AddDevice is the entry point that the HAL should use to register a device with the OS.

Note that it is not possible for the HAL to deregister devices.

Adding devices – from the OS

SWI OS_Hardware 2 should be used to register devices.

Removing devices – from the OS

SWI OS_Hardware 3 should be used to deregister devices.

Enumerating and detecting devices

SWI OS_Hardware 4 can be used to search the device list for devices of a specific type.

Service_Hardware is issued by the OS when devices are registered and deregistered.

Information source: Kernel.Docs.HAL.NewAPI in CVS
Created on July 25, 2009 18:06:17 by Jeffrey Lee (213) (127.0.0.1)
Edit | Views: Print | Source | Linked from: Hardware Abstraction Layer, HAL Device 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