Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
apm_bios.h File Reference
#include <linux/types.h>
#include <linux/ioctl.h>

Go to the source code of this file.

Data Structures

struct  apm_bios_info
 

Macros

#define APM_STATE_READY   0x0000
 
#define APM_STATE_STANDBY   0x0001
 
#define APM_STATE_SUSPEND   0x0002
 
#define APM_STATE_OFF   0x0003
 
#define APM_STATE_BUSY   0x0004
 
#define APM_STATE_REJECT   0x0005
 
#define APM_STATE_OEM_SYS   0x0020
 
#define APM_STATE_OEM_DEV   0x0040
 
#define APM_STATE_DISABLE   0x0000
 
#define APM_STATE_ENABLE   0x0001
 
#define APM_STATE_DISENGAGE   0x0000
 
#define APM_STATE_ENGAGE   0x0001
 
#define APM_SYS_STANDBY   0x0001
 
#define APM_SYS_SUSPEND   0x0002
 
#define APM_NORMAL_RESUME   0x0003
 
#define APM_CRITICAL_RESUME   0x0004
 
#define APM_LOW_BATTERY   0x0005
 
#define APM_POWER_STATUS_CHANGE   0x0006
 
#define APM_UPDATE_TIME   0x0007
 
#define APM_CRITICAL_SUSPEND   0x0008
 
#define APM_USER_STANDBY   0x0009
 
#define APM_USER_SUSPEND   0x000a
 
#define APM_STANDBY_RESUME   0x000b
 
#define APM_CAPABILITY_CHANGE   0x000c
 
#define APM_SUCCESS   0x00
 
#define APM_DISABLED   0x01
 
#define APM_CONNECTED   0x02
 
#define APM_NOT_CONNECTED   0x03
 
#define APM_16_CONNECTED   0x05
 
#define APM_16_UNSUPPORTED   0x06
 
#define APM_32_CONNECTED   0x07
 
#define APM_32_UNSUPPORTED   0x08
 
#define APM_BAD_DEVICE   0x09
 
#define APM_BAD_PARAM   0x0a
 
#define APM_NOT_ENGAGED   0x0b
 
#define APM_BAD_FUNCTION   0x0c
 
#define APM_RESUME_DISABLED   0x0d
 
#define APM_NO_ERROR   0x53
 
#define APM_BAD_STATE   0x60
 
#define APM_NO_EVENTS   0x80
 
#define APM_NOT_PRESENT   0x86
 
#define APM_DEVICE_BIOS   0x0000
 
#define APM_DEVICE_ALL   0x0001
 
#define APM_DEVICE_DISPLAY   0x0100
 
#define APM_DEVICE_STORAGE   0x0200
 
#define APM_DEVICE_PARALLEL   0x0300
 
#define APM_DEVICE_SERIAL   0x0400
 
#define APM_DEVICE_NETWORK   0x0500
 
#define APM_DEVICE_PCMCIA   0x0600
 
#define APM_DEVICE_BATTERY   0x8000
 
#define APM_DEVICE_OEM   0xe000
 
#define APM_DEVICE_OLD_ALL   0xffff
 
#define APM_DEVICE_CLASS   0x00ff
 
#define APM_DEVICE_MASK   0xff00
 
#define APM_MAX_BATTERIES   2
 
#define APM_CAP_GLOBAL_STANDBY   0x0001
 
#define APM_CAP_GLOBAL_SUSPEND   0x0002
 
#define APM_CAP_RESUME_STANDBY_TIMER   0x0004 /* Timer resume from standby */
 
#define APM_CAP_RESUME_SUSPEND_TIMER   0x0008 /* Timer resume from suspend */
 
#define APM_CAP_RESUME_STANDBY_RING   0x0010 /* Resume on Ring fr standby */
 
#define APM_CAP_RESUME_SUSPEND_RING   0x0020 /* Resume on Ring fr suspend */
 
#define APM_CAP_RESUME_STANDBY_PCMCIA   0x0040 /* Resume on PCMCIA Ring */
 
#define APM_CAP_RESUME_SUSPEND_PCMCIA   0x0080 /* Resume on PCMCIA Ring */
 
#define APM_IOC_STANDBY   _IO('A', 1)
 
#define APM_IOC_SUSPEND   _IO('A', 2)
 

Typedefs

typedef unsigned short apm_event_t
 
typedef unsigned short apm_eventinfo_t
 

Macro Definition Documentation

#define APM_16_CONNECTED   0x05

Definition at line 78 of file apm_bios.h.

#define APM_16_UNSUPPORTED   0x06

Definition at line 79 of file apm_bios.h.

#define APM_32_CONNECTED   0x07

Definition at line 80 of file apm_bios.h.

#define APM_32_UNSUPPORTED   0x08

Definition at line 81 of file apm_bios.h.

#define APM_BAD_DEVICE   0x09

Definition at line 82 of file apm_bios.h.

#define APM_BAD_FUNCTION   0x0c

Definition at line 85 of file apm_bios.h.

#define APM_BAD_PARAM   0x0a

Definition at line 83 of file apm_bios.h.

#define APM_BAD_STATE   0x60

Definition at line 88 of file apm_bios.h.

#define APM_CAP_GLOBAL_STANDBY   0x0001

Definition at line 118 of file apm_bios.h.

#define APM_CAP_GLOBAL_SUSPEND   0x0002

Definition at line 119 of file apm_bios.h.

#define APM_CAP_RESUME_STANDBY_PCMCIA   0x0040 /* Resume on PCMCIA Ring */

Definition at line 124 of file apm_bios.h.

#define APM_CAP_RESUME_STANDBY_RING   0x0010 /* Resume on Ring fr standby */

Definition at line 122 of file apm_bios.h.

#define APM_CAP_RESUME_STANDBY_TIMER   0x0004 /* Timer resume from standby */

Definition at line 120 of file apm_bios.h.

#define APM_CAP_RESUME_SUSPEND_PCMCIA   0x0080 /* Resume on PCMCIA Ring */

Definition at line 125 of file apm_bios.h.

#define APM_CAP_RESUME_SUSPEND_RING   0x0020 /* Resume on Ring fr suspend */

Definition at line 123 of file apm_bios.h.

#define APM_CAP_RESUME_SUSPEND_TIMER   0x0008 /* Timer resume from suspend */

Definition at line 121 of file apm_bios.h.

#define APM_CAPABILITY_CHANGE   0x000c

Definition at line 69 of file apm_bios.h.

#define APM_CONNECTED   0x02

Definition at line 76 of file apm_bios.h.

#define APM_CRITICAL_RESUME   0x0004

Definition at line 61 of file apm_bios.h.

#define APM_CRITICAL_SUSPEND   0x0008

Definition at line 65 of file apm_bios.h.

#define APM_DEVICE_ALL   0x0001

Definition at line 96 of file apm_bios.h.

#define APM_DEVICE_BATTERY   0x8000

Definition at line 103 of file apm_bios.h.

#define APM_DEVICE_BIOS   0x0000

Definition at line 95 of file apm_bios.h.

#define APM_DEVICE_CLASS   0x00ff

Definition at line 106 of file apm_bios.h.

#define APM_DEVICE_DISPLAY   0x0100

Definition at line 97 of file apm_bios.h.

#define APM_DEVICE_MASK   0xff00

Definition at line 107 of file apm_bios.h.

#define APM_DEVICE_NETWORK   0x0500

Definition at line 101 of file apm_bios.h.

#define APM_DEVICE_OEM   0xe000

Definition at line 104 of file apm_bios.h.

#define APM_DEVICE_OLD_ALL   0xffff

Definition at line 105 of file apm_bios.h.

#define APM_DEVICE_PARALLEL   0x0300

Definition at line 99 of file apm_bios.h.

#define APM_DEVICE_PCMCIA   0x0600

Definition at line 102 of file apm_bios.h.

#define APM_DEVICE_SERIAL   0x0400

Definition at line 100 of file apm_bios.h.

#define APM_DEVICE_STORAGE   0x0200

Definition at line 98 of file apm_bios.h.

#define APM_DISABLED   0x01

Definition at line 75 of file apm_bios.h.

#define APM_IOC_STANDBY   _IO('A', 1)

Definition at line 132 of file apm_bios.h.

#define APM_IOC_SUSPEND   _IO('A', 2)

Definition at line 133 of file apm_bios.h.

#define APM_LOW_BATTERY   0x0005

Definition at line 62 of file apm_bios.h.

#define APM_MAX_BATTERIES   2

Definition at line 113 of file apm_bios.h.

#define APM_NO_ERROR   0x53

Definition at line 87 of file apm_bios.h.

#define APM_NO_EVENTS   0x80

Definition at line 89 of file apm_bios.h.

#define APM_NORMAL_RESUME   0x0003

Definition at line 60 of file apm_bios.h.

#define APM_NOT_CONNECTED   0x03

Definition at line 77 of file apm_bios.h.

#define APM_NOT_ENGAGED   0x0b

Definition at line 84 of file apm_bios.h.

#define APM_NOT_PRESENT   0x86

Definition at line 90 of file apm_bios.h.

#define APM_POWER_STATUS_CHANGE   0x0006

Definition at line 63 of file apm_bios.h.

#define APM_RESUME_DISABLED   0x0d

Definition at line 86 of file apm_bios.h.

#define APM_STANDBY_RESUME   0x000b

Definition at line 68 of file apm_bios.h.

#define APM_STATE_BUSY   0x0004

Definition at line 44 of file apm_bios.h.

#define APM_STATE_DISABLE   0x0000

Definition at line 49 of file apm_bios.h.

#define APM_STATE_DISENGAGE   0x0000

Definition at line 52 of file apm_bios.h.

#define APM_STATE_ENABLE   0x0001

Definition at line 50 of file apm_bios.h.

#define APM_STATE_ENGAGE   0x0001

Definition at line 53 of file apm_bios.h.

#define APM_STATE_OEM_DEV   0x0040

Definition at line 47 of file apm_bios.h.

#define APM_STATE_OEM_SYS   0x0020

Definition at line 46 of file apm_bios.h.

#define APM_STATE_OFF   0x0003

Definition at line 43 of file apm_bios.h.

#define APM_STATE_READY   0x0000

Definition at line 40 of file apm_bios.h.

#define APM_STATE_REJECT   0x0005

Definition at line 45 of file apm_bios.h.

#define APM_STATE_STANDBY   0x0001

Definition at line 41 of file apm_bios.h.

#define APM_STATE_SUSPEND   0x0002

Definition at line 42 of file apm_bios.h.

#define APM_SUCCESS   0x00

Definition at line 74 of file apm_bios.h.

#define APM_SYS_STANDBY   0x0001

Definition at line 58 of file apm_bios.h.

#define APM_SYS_SUSPEND   0x0002

Definition at line 59 of file apm_bios.h.

#define APM_UPDATE_TIME   0x0007

Definition at line 64 of file apm_bios.h.

#define APM_USER_STANDBY   0x0009

Definition at line 66 of file apm_bios.h.

#define APM_USER_SUSPEND   0x000a

Definition at line 67 of file apm_bios.h.

Typedef Documentation

typedef unsigned short apm_event_t

Definition at line 21 of file apm_bios.h.

typedef unsigned short apm_eventinfo_t

Definition at line 22 of file apm_bios.h.