General Info | |
Interface: IOPortManager Files: ioportmanager.h Last Change: 30/07/2002 Author: Luiz Henrique Shigunov | Description |
System Functions | |
0x00 - Alloc - Allocate IO ports 0x01 - Free - Free IO ports |
0x02 - IsInUse - Check if an IO port is in use |
This page describes the IOPortManager interface which provides IO port allocation control to avoiding conflicts (two modules want to use the same port).
Registering an IO port doesn't inhibits other modules from using the IO port.
int IOPortManager_Alloc(SysModManager_Module *modID, unsigned int start, unsigned int end, int prop);
This function registers that modID is using IO ports start - end, including.
prop must be 0 or the sum of:
int IOPortManager_Free(SysModManager_Module *modID, unsigned int start);
This function unregisters that modID is using IO port interval that starts at start.
int IOPortManager_IsInUse(unsigned int portN);
This function checks if portN is in use.