Help: ICE_ICELIB_PIC_FILE

Deprecated use PIC_MAPFILE

Function PIC_FILE - Deprecated use PIC_MAPFILE

PIC	p	Handle to Device 
HEADER	hcb	Header Control Block of a Midas file
int	*paddr	Physical PCI Address of DMA buffer (returned)
int	*bytes	Number of bytes in DMA buffer (returned)
int	mode	Access mode (1=allocate, -1=deallocate)

Prepares a Midas file for DMA transfers.  It the file is on a RAMDISK the 
start and count map to the actual disk address.  If not, a memory buffer
matching the file size is allocated and mapped to DMA address space.  
If memory is not mappable (or mode=2,-2) paddr is set to zero and a
virtual buffer is allocated but not mapped.  This buffer is usable for 
non-DMA access which limits speeds to ~10Mby/sec.

The start and count pointers are inputs to the PIC_DMA routine.  These numbers
are checked by the driver to ensure the addresses are valid before the DMA is
started.