Prm_AllocDMABuffer()
Synopsis
APTR Prm_AllocDMABuffer(
ULONG size );
Function
Allocate memory region accessible by PCI DMA.
Result
A pointer to allocated region or NULL upon failure.
The region will always be LONG-aligned.
Prm_FindBoardTagList()
Synopsis
PCIBoard * Prm_FindBoardTagList(
PCIBoard * previous,
struct TagItem * tag_list );
PCIBoard * Prm_FindBoardTags(
PCIBoard * previous,
TAG tag, ... );
Function
Find the board whose properties match the given set
of attributes.
Result
A pointer to next matching board object or NULL if the search
has ended and there is no more match.
Notes
You can search for boards with some specific owner using
PRM_BoardOwner tag. However note that in AROS prometheus.library
is a wrapper on top of native object-oriented framework. This
framework uses different concept of device ownership, and
prometheus.library cannot determine correct owner value for devices
locked using those APIs. Those devices are treated as having the
same owner named "AROS", however in reality their owners will be
different.
Prm_FreeDMABuffer()
Synopsis
VOID Prm_FreeDMABuffer(
APTR buffer,
ULONG size );
Function
Free memory buffer allocated by Prm_AllocDMABuffer().
Prm_GetBoardAttrsTagList()
Synopsis
ULONG Prm_GetBoardAttrsTagList(
PCIBoard * board,
struct TagItem * tag_list );
ULONG Prm_GetBoardAttrsTags(
PCIBoard * board,
TAG tag, ... );
Function
Returns information about the board according to the
specified taglist.
Result
Number of successfully processed tags.
Notes
AROS implementation of prometheus.library is a wrapper on top of
object-oriented driver stack. Software can use either
prometheus.library, or some other wrapper API (like openpci.library)
or HIDD object-oriented API directly. Concept of device ownership
is different across different APIs, so this method returns correct
device owner only if the device was locked using prometheus.library's
Prm_SetBoardAttrsTagList() function. If device's owner uses another
API, prometheus.library will specify "AROS" default name.