#include <sys/conf.h> #include <sys/ddi.h> #include <sys/sunddi.h>
Solaris DDI specific (Solaris DDI).
The function ddi_dev_nregs() returns the number of sets of registers the device has.
ddi_dev_nregs() returns:
ddi_dev_nregs() can be called from user or interrupt context.
ddi_dev_nintrs(9F), ddi_dev_regsize(9F)
Writing Device Drivers