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_PCIAddresses

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

HAL_PCIAddresses

(HAL entry #96)
int HAL_PCIAddresses(pcimem *buffer, int bufsize)
Entry
buffer Buffer pointer
bufsize Size of buffer
Exit
- Returns number of bytes written to buffer

Use

This is an internal call for use by the PCI module and should not be used by user software. User software should use the PCI SWIs instead of talking to the HAL directly.

This call reads information about the PCI address space.

struct pcimem
{
    int32_t mem_to_phys_offset; // Number to add to PCI memory address to get ARM physical address
    int32_t mem_lowest; // Lowest PCI memory address available for allocation
    int32_t mem_highest; // Highest (inclusive) PCI memory address avaialable for allocation
    int32_t io_to_phys_offset; // Number to add to PCI I/O address to get ARM physical address
    int32_t io_lowest; // Lowest PCI memory address available for allocation
    int32_t io_highest; // Highest (inclusive) PCI memory address available for allocation
    int32_t ram_to_pci_mem_offst; // Value to add to physical RAM address to get PCI memory address
}

See also

  • HAL PCI API
Information sources: HAL.Tungsten.s.PCIasm, HWSupport.PCI.s.Module in CVS
Revised on February 9, 2012 13:46:34 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 entry points by number, HAL PCI 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
  • 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