PP1000_STATUS PP1000CloseDMAChannel(
PP1000_CHANNEL Channel);
Arguments | |
Channel | DMA Channel. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_CHANNEL |
Channel is not a valid DMA channel handle. |
PP1000_TIMEOUT |
Operation timed out before banks were granted. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
Description | |
|
PP1000_STATUS PP1000DoDMA(
PP1000_CHANNEL Channel);
Arguments | |
Channel | DMA Channel. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_HANDLE |
Card is not a valid card handle. |
PP1000_INVALID_CHANNEL |
Channel is not a valid DMA channel handle. |
PP1000_TIMEOUT |
Operation timed out before banks were granted. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
PP1000_CARD_BUSY |
Error while talking to driver. |
Description | |
|
PP1000_STATUS PP1000GetBankStatus(
PP1000_HANDLE Card,
short * MaskHost
short * MaskFPGA);
Arguments | |
Card | Handle of card. |
MaskHost |
Mask of banks currently owned by host. |
MaskFPGA | Mask of banks currently owned by FPGA. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_HANDLE |
Card is not a valid card handle. |
PP1000_TIMEOUT |
Operation timed out before banks were granted. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
Description | |
|
PP1000_STATUS PP1000ReleaseMemoryBank(
PP1000_HANDLE Card
short Mask);
Arguments | |
Card | Handle of card. |
Mask | Mask of banks to release. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_HANDLE |
Card is not a valid card handle. |
PP1000_TIMEOUT |
Operation timed out before banks were granted. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
Description | |
|
PP1000_STATUS PP1000RequestMemoryBank(
PP1000_HANDLE Card
short Mask);
Arguments | |
Card | Handle of card. |
Mask | Mask of banks to request. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_HANDLE |
Card is not a valid card handle. |
PP1000_TIMEOUT |
Operation timed out before banks were granted. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
PP1000_CARD_BUSY |
Error while talking to driver. |
Description | |
|
PP1000_STATUS PP1000Setup2DDMAChannel(
PP1000_HANDLE Card,
void * HostAddress,
unsigned long HostPitch,
unsigned long HostSpace,
unsigned long CardOffset,
unsigned long CardPitch,
unsigned long Width,
unsigned long Height,
PP1000_DMA_DIRECTION Direction,
PP1000_Channel * Channel);
Arguments | |
Card | Handle of card. |
HostAddress | Pointer to buffer on host to DMA to/from. |
HostPitch | Number of bytes between line start points in host buffer. |
HostSpace | Flag specifying whether HostAddress is a virtual or physical address. |
CardOffset | Offset into RC1000-PP RAM to DMA to/from. |
CardPitch | Number of bytes between line start points in card and memory. |
Width | Width of 2D transfer in bytes. |
Height | Height of 2D transfer. |
Direction | Direction of transfer. |
Channel | Pointer to location to receive DMA channel handle. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_HANDLE |
Card is not a valid card handle. |
PP1000_INVALID_ALIGNMENT |
Host or card address is not 4 byte aligned. |
PP1000_INVALID_DIRECTION |
Direction is not PP1000_LOCAL2PC I or PP1000_PCI2LOCAL . |
PP1000_INVALID_ADDRESS_SPACE |
HostSpace is not PP1000_VIRTUAL
or PP1000_PHYSICAL . |
PP1000_NULL_POINTER |
Channel is a NULL pointer. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
PP1000_NO_MEMORY |
Not enough physical memory to create channel handle. |
PP1000_LOCK_FAILED |
Not enough physical memory to lock buffer. |
Description | |
|
PP1000_STATUS PP1000SetupDMAChannel(
PP1000_HANDLE Card,
void * HostAddress,
unsigned long CardOffset,
unsigned long Length,
PP1000_DMA_DIRECTION Direction,
PP1000_Channel * Channel);
Arguments | |
Card | Handle of card. |
HostAddress | Pointer to buffer on host to DMA to/from. |
CardOffset | Offset into RC1000-PP RAM to DMA to/from. |
Length | Number of bytes to transfer. |
Direction | Direction of transfer. |
Channel | Pointer to location to receive DMA channel handle. |
Return Values | |
PP1000_SUCCESS |
Success. |
PP1000_INVALID_HANDLE |
Card is not a valid card handle. |
PP1000_INVALID_ALIGNMENT |
Host or card address is not 4 byte aligned. |
PP1000_INVALID_DIRECTION |
Direction is not PP1000_LOCAL2PCI or PP1000_PCI2LOCAL . |
PP1000_NULL_POINTER |
Channel is a NULL pointer. |
PP1000_INTERNAL_ERROR |
Error while talking to driver. |
PP1000_NO_MEMORY |
Not enough physical memory to create channel handle. |
PP1000_LOCK_FAILED |
Not enough physical memory to lock buffer. |
Description | |
|