diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /include/linux/apm_bios.h | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'include/linux/apm_bios.h')
-rw-r--r-- | include/linux/apm_bios.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/apm_bios.h b/include/linux/apm_bios.h index 326445110..f0b7a5793 100644 --- a/include/linux/apm_bios.h +++ b/include/linux/apm_bios.h @@ -19,13 +19,12 @@ */ typedef unsigned short apm_event_t; +typedef unsigned short apm_eventinfo_t; #ifdef __KERNEL__ -#include <linux/tasks.h> /* for NR_TASKS */ -#include <linux/sched.h> /* for _TSS */ - -#define APM_CS _TSS(NR_TASKS) +#define APM_40 0x40 +#define APM_CS (APM_40 + 8) #define APM_CS_16 (APM_CS + 8) #define APM_DS (APM_CS_16 + 8) @@ -37,6 +36,7 @@ struct apm_bios_info { unsigned short dseg; unsigned short flags; unsigned short cseg_len; + unsigned short cseg_16_len; unsigned short dseg_len; }; @@ -113,6 +113,7 @@ extern int apm_display_unblank(void); #define APM_USER_STANDBY 0x0009 #define APM_USER_SUSPEND 0x000a #define APM_STANDBY_RESUME 0x000b +#define APM_CAPABILITY_CHANGE 0x000c /* * Error codes @@ -128,6 +129,8 @@ extern int apm_display_unblank(void); #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_BAD_STATE 0x60 #define APM_NO_EVENTS 0x80 #define APM_NOT_PRESENT 0x86 |