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

Description

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.

0x00 - Alloc

Syntax

int IOPortManager_Alloc(SysModManager_Module *modID, unsigned int start, unsigned int end, int prop);

Properties

Description

This function registers that modID is using IO ports start - end, including.

prop must be 0 or the sum of:

Return value

0x01 - Free

Syntax

int IOPortManager_Free(SysModManager_Module *modID, unsigned int start);

Properties

Description

This function unregisters that modID is using IO port interval that starts at start.

Return value

0x02 - IsInUse

Syntax

int IOPortManager_IsInUse(unsigned int portN);

Properties

Description

This function checks if portN is in use.

Return value