Showing changes from revision #1 to #2:
Added | Removed | Changed
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. |
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 |