DDI_PUT8(9F) | Kernel Functions for Drivers | DDI_PUT8(9F) |
#include <sys/ddi.h> #include <sys/sunddi.h> void ddi_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value);
void ddi_put16(ddi_acc_handle_t handle, uint16_t *dev_addr, uint16_t value);
void ddi_put32(ddi_acc_handle_t handle, uint32_t *dev_addr, uint32_t value);
void ddi_put64(ddi_acc_handle_t handle, uint64_t *dev_addr, uint64_t value);
value
dev_addr
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.
For certain bus types, you can call these DDI functions from a high-interrupt context. These types include ISA and SBus buses. See sysbus(5), isa(5), and sbus(5) for details. For the PCI bus, you can, under certain conditions, call these DDI functions from a high-interrupt context. See pci(5).
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
November 1, 2005 | OmniOS |