ddi_device_zero - zero fill the device
#include <sys/ddi.h> #include <sys/sunddi.h> int ddi_device_zero(ddi_acc_handle_t handle, caddr_t dev_addr, size_t bytecount, ssize_t dev_advcnt, uint_t dev_datasz);
Solaris DDI specific (Solaris DDI).
handle
dev_addr
bytecount
dev_advcnt
dev_datasz
DDI_DATA_SZ01_ACC
DDI_DATA_SZ02_ACC
DDI_DATA_SZ04_ACC
DDI_DATA_SZ08_ACC
ddi_device_zero() function fills the given, bytecount, number of byte of zeroes to the device register or memory.
The dev_advcnt argument determines the value of the device address, dev_addr, on each access. A value of 0 will use the same device address, dev_addr, on every access. A positive value increments the device address in the next access while a negative value decrements the address. The device address is incremented and decremented in dev_datasz units.
The dev_datasz argument determines the size of data word on each access.
ddi_device_zero() returns:
DDI_SUCCESS
DDI_FAILURE
ddi_device_zero() can be called from user, kernel, or interrupt context.
ddi_regs_map_free(9F), ddi_regs_map_setup(9F)
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |