
Go to the source code of this file.
Classes | |
| struct | board_status_t |
| struct | pwrQ_item_t |
| struct | lnode_rec |
Defines | |
| #define | CF_ID "CF" |
| #define | SD_ID "SD" |
| #define | USB_ID "USB" |
| #define | POWERMGMTIFACE "/dev/battery" |
| #define | DEVEVTIFACE "/dev/buttons" |
| #define | BATTERY_LOW_WARNING 12 |
| #define | BATTERY_LOW_SHUTDOWN 10 |
| #define | BATTERY_LOW_EMERGENCY 8 |
| #define | BATTERY_TIMELEFT_MAX 0xFFFF |
| #define | BATTERY_CHARGING 0 |
| #define | BUTTON_IOCTL_BASE 'b' |
| #define | BUTTON_IOCTL_READ_STATE _IOR( BUTTON_IOCTL_BASE,4,unsigned int) |
| #define | BUTTON_IOCTL_ENABLE_WACOM _IOW( BUTTON_IOCTL_BASE,5,unsigned int) |
| #define | BUTTON_IOCTL_DISABLE_WACOM _IOW( BUTTON_IOCTL_BASE,6,unsigned int) |
| #define | BUTTON_IOCTL_GET_STATUS _IOR( BUTTON_IOCTL_BASE,7,unsigned int) |
| #define | BATTERY_IOCTL_BASE 'b' |
| #define | BATTERY_IOCTL_READ_CHARGE _IOR( BATTERY_IOCTL_BASE,1,unsigned int) |
| #define | BATTERY_IOCTL_READ_TIME _IOR( BATTERY_IOCTL_BASE,2,unsigned int) |
| #define | BATTERY_IOCTL_READ_TEMPERATURE _IOR( BATTERY_IOCTL_BASE,3,unsigned int) |
| #define | BATTERY_IOCTL_ENABLE_ETHERNET _IOR( BATTERY_IOCTL_BASE,5,unsigned int) |
| #define | BATTERY_IOCTL_DISABLE_ETHERNET _IOR( BATTERY_IOCTL_BASE,6,unsigned int) |
| #define | BATTERY_GET_TURBO_MODE _IOR( BATTERY_IOCTL_BASE,7,unsigned int) |
| #define | BATTERY_SET_TURBO_MODE _IOW( BATTERY_IOCTL_BASE,8,unsigned int) |
| #define | BATTERY_IOCTL_ENABLE_WACOM _IOR( BATTERY_IOCTL_BASE,9,unsigned int) |
| #define | BATTERY_IOCTL_DISABLE_WACOM _IOR( BATTERY_IOCTL_BASE,10,unsigned int) |
| #define | BATTERY_IOCTL_ENABLE_CF _IOR( BATTERY_IOCTL_BASE,11,unsigned int) |
| #define | BATTERY_IOCTL_DISABLE_CF _IOR( BATTERY_IOCTL_BASE,12,unsigned int) |
| #define | BATTERY_IOCTL_ENABLE_MMC _IOR( BATTERY_IOCTL_BASE,13,unsigned int) |
| #define | BATTERY_IOCTL_DISABLE_MMC _IOR( BATTERY_IOCTL_BASE,14,unsigned int) |
| #define | BATTERY_IOCTL_READ_STATUS _IOR( BATTERY_IOCTL_BASE,15,unsigned int) |
| #define | BATTERY_IOCTL_READ_CURRENT _IOR( BATTERY_IOCTL_BASE,16,unsigned int) |
| #define | SNDCTL_POWER_OFF _SIO('P', 99) |
| #define | SNDCTL_POWER_ON _SIO('P', 100) |
| #define | GETEVENT(x) (x&0xFF) |
| #define | GETPENDETECT(x) ((x&0x100)>>8) |
| #define | GETLEDSTATUS(x) ((x&0x200)>>9) |
| #define | GETCFDETECT(x) ((x&0x400)>>10) |
| #define | GETMMCDETECT(x) ((x&0x800)>>11) |
| #define | SIOCIWFIRSTPRIV 0x8BE0 |
| #define | WLANIOCTL SIOCIWFIRSTPRIV |
| #define | WLANDEEPSLEEP (WLANIOCTL + 27) |
| #define | SERVER_BUFFER_SIZE 1024 |
Typedefs | |
| typedef struct lnode_rec | lnode |
Enumerations | |
| enum | dev_state { GONE = 0, INSERTED, DEV_STATE_LAST } |
| enum | power_state { UNPOWERED = 0, POWERED, POWER_STATE_LAST } |
Functions | |
| void | llist_insert (lnode **head, pwrQ_item_t *data) |
| void | llist_pop (lnode **head) |
| void | llist_delete (lnode **head) |
| void | llist_print (lnode **head) |
| #define BATTERY_CHARGING 0 |
Definition at line 90 of file powerMgr.h.
| #define BATTERY_GET_TURBO_MODE _IOR( BATTERY_IOCTL_BASE,7,unsigned int) |
Definition at line 106 of file powerMgr.h.
| #define BATTERY_IOCTL_BASE 'b' |
Definition at line 100 of file powerMgr.h.
| #define BATTERY_IOCTL_DISABLE_CF _IOR( BATTERY_IOCTL_BASE,12,unsigned int) |
Definition at line 111 of file powerMgr.h.
| #define BATTERY_IOCTL_DISABLE_ETHERNET _IOR( BATTERY_IOCTL_BASE,6,unsigned int) |
Definition at line 105 of file powerMgr.h.
| #define BATTERY_IOCTL_DISABLE_MMC _IOR( BATTERY_IOCTL_BASE,14,unsigned int) |
Definition at line 113 of file powerMgr.h.
| #define BATTERY_IOCTL_DISABLE_WACOM _IOR( BATTERY_IOCTL_BASE,10,unsigned int) |
Definition at line 109 of file powerMgr.h.
| #define BATTERY_IOCTL_ENABLE_CF _IOR( BATTERY_IOCTL_BASE,11,unsigned int) |
Definition at line 110 of file powerMgr.h.
| #define BATTERY_IOCTL_ENABLE_ETHERNET _IOR( BATTERY_IOCTL_BASE,5,unsigned int) |
Definition at line 104 of file powerMgr.h.
| #define BATTERY_IOCTL_ENABLE_MMC _IOR( BATTERY_IOCTL_BASE,13,unsigned int) |
Definition at line 112 of file powerMgr.h.
| #define BATTERY_IOCTL_ENABLE_WACOM _IOR( BATTERY_IOCTL_BASE,9,unsigned int) |
Definition at line 108 of file powerMgr.h.
| #define BATTERY_IOCTL_READ_CHARGE _IOR( BATTERY_IOCTL_BASE,1,unsigned int) |
Definition at line 101 of file powerMgr.h.
| #define BATTERY_IOCTL_READ_CURRENT _IOR( BATTERY_IOCTL_BASE,16,unsigned int) |
Definition at line 115 of file powerMgr.h.
| #define BATTERY_IOCTL_READ_STATUS _IOR( BATTERY_IOCTL_BASE,15,unsigned int) |
Definition at line 114 of file powerMgr.h.
| #define BATTERY_IOCTL_READ_TEMPERATURE _IOR( BATTERY_IOCTL_BASE,3,unsigned int) |
Definition at line 103 of file powerMgr.h.
| #define BATTERY_IOCTL_READ_TIME _IOR( BATTERY_IOCTL_BASE,2,unsigned int) |
Definition at line 102 of file powerMgr.h.
| #define BATTERY_LOW_EMERGENCY 8 |
Definition at line 84 of file powerMgr.h.
| #define BATTERY_LOW_SHUTDOWN 10 |
Definition at line 83 of file powerMgr.h.
| #define BATTERY_LOW_WARNING 12 |
Definition at line 82 of file powerMgr.h.
| #define BATTERY_SET_TURBO_MODE _IOW( BATTERY_IOCTL_BASE,8,unsigned int) |
Definition at line 107 of file powerMgr.h.
| #define BATTERY_TIMELEFT_MAX 0xFFFF |
Definition at line 87 of file powerMgr.h.
| #define BUTTON_IOCTL_BASE 'b' |
Definition at line 93 of file powerMgr.h.
| #define BUTTON_IOCTL_DISABLE_WACOM _IOW( BUTTON_IOCTL_BASE,6,unsigned int) |
Definition at line 97 of file powerMgr.h.
| #define BUTTON_IOCTL_ENABLE_WACOM _IOW( BUTTON_IOCTL_BASE,5,unsigned int) |
Definition at line 96 of file powerMgr.h.
| #define BUTTON_IOCTL_GET_STATUS _IOR( BUTTON_IOCTL_BASE,7,unsigned int) |
Definition at line 98 of file powerMgr.h.
| #define BUTTON_IOCTL_READ_STATE _IOR( BUTTON_IOCTL_BASE,4,unsigned int) |
Definition at line 95 of file powerMgr.h.
| #define CF_ID "CF" |
Definition at line 73 of file powerMgr.h.
| #define DEVEVTIFACE "/dev/buttons" |
Definition at line 79 of file powerMgr.h.
| #define GETCFDETECT | ( | x | ) | ((x&0x400)>>10) |
Definition at line 125 of file powerMgr.h.
| #define GETEVENT | ( | x | ) | (x&0xFF) |
Definition at line 122 of file powerMgr.h.
| #define GETLEDSTATUS | ( | x | ) | ((x&0x200)>>9) |
Definition at line 124 of file powerMgr.h.
| #define GETMMCDETECT | ( | x | ) | ((x&0x800)>>11) |
Definition at line 126 of file powerMgr.h.
| #define GETPENDETECT | ( | x | ) | ((x&0x100)>>8) |
Definition at line 123 of file powerMgr.h.
| #define POWERMGMTIFACE "/dev/battery" |
Definition at line 78 of file powerMgr.h.
| #define SD_ID "SD" |
Definition at line 74 of file powerMgr.h.
| #define SERVER_BUFFER_SIZE 1024 |
Definition at line 132 of file powerMgr.h.
| #define SIOCIWFIRSTPRIV 0x8BE0 |
Definition at line 128 of file powerMgr.h.
| #define SNDCTL_POWER_OFF _SIO('P', 99) |
Definition at line 118 of file powerMgr.h.
| #define SNDCTL_POWER_ON _SIO('P', 100) |
Definition at line 119 of file powerMgr.h.
| #define USB_ID "USB" |
Definition at line 75 of file powerMgr.h.
| #define WLANDEEPSLEEP (WLANIOCTL + 27) |
Definition at line 130 of file powerMgr.h.
| #define WLANIOCTL SIOCIWFIRSTPRIV |
Definition at line 129 of file powerMgr.h.
| enum dev_state |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved. eReader Power Management daemon
Definition at line 30 of file powerMgr.h.
00030 { 00031 GONE=0, 00032 INSERTED, 00033 DEV_STATE_LAST 00034 } dev_state;
| enum power_state |
Definition at line 36 of file powerMgr.h.
00036 { 00037 UNPOWERED=0, 00038 POWERED, 00039 POWER_STATE_LAST 00040 } power_state;
| void llist_delete | ( | lnode ** | head | ) |
| void llist_insert | ( | lnode ** | head, | |
| pwrQ_item_t * | data | |||
| ) |
| void llist_pop | ( | lnode ** | head | ) |
| void llist_print | ( | lnode ** | head | ) |
1.5.6