hwcpin(D3X)hwcpin(D3X)NAMEhwcpin - copy data from I/O devices using 16-bit reads
SYNOPSIS
#include "sys/types.h"
#include <sys/systm.h>
hwcpin(volatile unsigned short *from, caddr_t to, int num_bytes);
DESCRIPTIONhwcpin efficiently copies data from device memory to main memory using
16-bit reads only.
hwcpin is similar to bcopy(D3) in that it does not verify the
accessibility of the memory before attempting the transfer. However,
bcopy attempts to optimize for speed, and can generate 32-bit and 64-bit
reads.
When the device is mapped using a PIO map created with pio_mapalloc(D3X),
use pio_bcopyin(D3X), which allows you to specify the transfer unit size.
Return Values
None
See Also
bcopy(D3), hwcpout(D3X), pio_bcopyin(D3X).
Page 1