IoPort Module
The IoPort Module is part of the Kithara »RealTime Suite«.
Functions
The IoPort Module contains the following functions:
I/O port access functions
- KS_enableIoRange (enables an I/O port range for direct access)
- KS_readIoPort (direct and indirect read access from I/O ports (8/16/32 bit))
- KS_writeIoPort (direct and indirect write access to I/O ports (8/16/32 bit))
- KS_inpb (direct and indirect read access from I/O ports (8 bit))
- KS_inpw (direct and indirect read access from I/O ports (16 bit))
- KS_inpd (direct and indirect read access from I/O ports (32 bit))
- KS_outpb (direct and indirect write access to I/O ports (8 bit))
- KS_outpw (direct and indirect write access to I/O ports (16 bit))
- KS_outpd (direct and indirect write access to I/O ports (32 bit))
Bus data & resource info
- KS_getBusData (enquires the PCI configuration space data)
- KS_setBusData (allows to set parts of the PCI configuration space)
- KS_getResourceInfo (retrieves resource information of devices (obsolete))
- KS_getResourceInfoEx (retrieves resource information of devices)
Quiet section (obsolete)
- KS_enterQuietSection (starts execution of ring-3 code on ring-0)
- KS_releaseQuietSection (ends execution of ring-3 code on ring-0)
Structures
The IoPort Module defines the following structures:
- KSPciBusData (contains the PCI configuration space data)
- KSRangeResourceItem (describes a range of memory or I/O addresses)
- KSInterruptResourceItem (describes an interrupt resource)
- KSResourceInfoEx (complete resource information of a device)