This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Power management support structure for device drivers
typedef struct pmd_attr pmd_attr_t; struct pmd_attr { pm_hdl_t hdl; unsigned pmm_flags; /* flags set by pmd_attach() */ const pmd_mode_attr_t *cur_attr; /* current device power attr */ unsigned cur_flags; /* flags used to set cur_mode */ const pmd_mode_attr_t *new_attr; /* new attr if in transition */ unsigned new_flags; /* flags used to set new_mode */ pm_power_mode_t last_active; /* last active mode device was in*/ const pmd_mode_attr_t *modes; /* device power modes */ int nmodes; void *data; /* driver specific data pointer */ pmd_setpower_t setpower; /* driver mode change function */ short setpower_flags; /* driver flags for setpower() use B */ short lock_flag; short want_ex; short lock_sh; struct sigevent event; _Uint32t seqno; Uint32t reserved[7]; };
The pmd_attr_t structure contains driver level power management information used by the libpm library functions.
Other fields within the pmd_attr_t structure are intended only for internal use by the libpm library.
pmd_mode_attr_t, pmd_attr_init(), pmd_attr_setmodes(), pmd_attr_setpower(), pmd_attach()