Kernel Functions for Drivers ddimemput8(9F)
NAME
ddimemput8, ddimemput16, ddimemput32, ddimemput64,
ddimemputb, ddimemputw, ddimemputl, ddimemputll -
write data to mapped device in the memory space or allocated
DMA memory
SYNOPSIS
#include
#include
void ddimemput8(ddiacchandlet handle, uint8t *devaddr,
uint8t value);
void ddimemput16(ddiacchandlet handle, uint16t *devaddr,
uint16t value);
void ddimemput32(ddiacchandlet handle, uint32t *devaddr,
uint32t value);
void ddimemput64(ddiacchandlet handle, uint64t *devaddr,
uint64t value);
PARAMETERS
handle The data access handle returned from setup
calls, such as ddiregsmapsetup(9F).
devaddr Base device address.
value The data to be written to the device.
INTERFACE LEVEL
Solaris DI specific (Solaris DI). The ddimemput8(),
ddimemput16(), ddimemput32(), ddimemput64(),
ddimemputb(), ddimemputl(), ddimemputll(), and
ddimemputw() functions are obsolete. The ddiput8(9F)
function replaces ddimemput8(). The ddiput16(9F) function
replaces ddimemput16(). The ddiput32(9F) function
replaces ddimemput32(). The ddiput64(9F) function
replaces ddimemput64(). The ddiput8(9F) function replaces
ddimemputb(). The ddiput32(9F) function replaces
ddimemputl(). The ddiput64(9F) function replaces
ddimemputll(). The ddiput16(9F) function replaces
ddimemputw().
SunOS 5.11 Last change: 1 Nov 2005 1
Kernel Functions for Drivers ddimemput8(9F)
DESCRIPTION
These routines generate a write of various sizes to memory
space or allocated DMA memory. The ddimemput8(),
ddimemput16(), ddimemput32(), and ddimemput64() func-
tions write 8 bits, 16 bits, 32 bits and 64 bits of data,
respectively, to the device address, devaddr, in memory
space.
Each individual datum will automatically be translated to
maintain a consistent view between the host and the device
based on the encoded information in the data access handle.
The translation may involve byte-swapping if the host and
the device have incompatible endian characteristics.
CONTEXT
These functions can be called from user, kernel, or inter-
rupt context.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Obsolete
SEE ALSO
ddimemget8(9F), ddimemrepget8(9F), ddiput8(9F),
ddiput16(9F), ddiput32(9F), ddiput64(9F),
ddimemget8(9F), ddiregsmapsetup(9F),
ddideviceaccattr(9S)
SunOS 5.11 Last change: 1 Nov 2005 2
|