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_PCISlotTable

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

HAL_PCISlotTable

(HAL entry #95)
int HAL_PCISlotTable(pcislottable *buffer, int bufsize)
Entry
buffer Buffer pointer, or 0 to read required size
bufsize Size of buffer, or 0 to read required size
Exit
- Returns buffer length required.

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 slots. buffer should be filled in if, on entry, bufsize is greater than or equal to the required size.

struct pcislottable
{
    int numentries; // Number of entries in _pcislots_
    struct
    {
        uint8_t bus; // Bus number
        uint8_t devno; // Device number (times 8)
        uint8_t inta,intb,intc,intd; // INTA#. INTB#, etc. interrupt numbers (255 if none)
        uint8_t flags;
        uint8_t slot; // Slot number (0 if motherboard)
    } pcislots[];
}

Available flags are:

Bits Meaning
0-3 Set if INTx# not shared
4 Set if 64-bit slot
5 Set if 66-MHz capable slot
6 Network interface (=> gets NIC CMOS)
7 Reserved

See also

  • HAL PCI API
Information source: HAL.Tungsten.s.PCIasm in CVS
Revised on February 9, 2012 13:48:19 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