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

RISCOS_MapInIO

Hardware Abstraction Layer
» RISC OS entry points from HAL
» RISCOS_MapInIO

RISCOS_MapInIO

(OS entry #3)
void *RISCOS_MapInIO(unsigned int flags, void *phys, unsigned int size)
Entry
flags Bit 2: Make memory bufferable
Other bits: Ambiguous!
phys Physical address to map in
size Number of bytes of memory to map in
Exit
- Virtual address corresponding to phys
0 for failure

Use

This routine is used to map in IO memory for the HAL’s usage. Normally it would only be called during the execution of HAL_Init. Once mapped in the IO space cannot be released.

It returns the resultant virtual address corresponding to phys, or 0 for failure. Failure can only occur if no RAM is available for page tables, or if the virtual address space is exhausted.

Information sources: Kernel.Docs.HAL.HAL_API, Kernel.hdr.OSEntries in CVS
Revised on July 25, 2009 21:14:08 by Jeffrey Lee (213) (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: RISC OS entry points from HAL, RISC OS entry points from HAL by number, HAL TODO

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