diff options
Diffstat (limited to 'include/linux/apm_bios.h')
| -rw-r--r-- | include/linux/apm_bios.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/apm_bios.h b/include/linux/apm_bios.h index 5f921c84827a..9754baa14921 100644 --- a/include/linux/apm_bios.h +++ b/include/linux/apm_bios.h | |||
| @@ -16,29 +16,29 @@ | |||
| 16 | * General Public License for more details. | 16 | * General Public License for more details. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | typedef unsigned short apm_event_t; | 19 | #include <linux/types.h> |
| 20 | typedef unsigned short apm_eventinfo_t; | 20 | |
| 21 | struct apm_bios_info { | ||
| 22 | __u16 version; | ||
| 23 | __u16 cseg; | ||
| 24 | __u32 offset; | ||
| 25 | __u16 cseg_16; | ||
| 26 | __u16 dseg; | ||
| 27 | __u16 flags; | ||
| 28 | __u16 cseg_len; | ||
| 29 | __u16 cseg_16_len; | ||
| 30 | __u16 dseg_len; | ||
| 31 | }; | ||
| 21 | 32 | ||
| 22 | #ifdef __KERNEL__ | 33 | #ifdef __KERNEL__ |
| 23 | 34 | ||
| 24 | #include <linux/types.h> | 35 | typedef unsigned short apm_event_t; |
| 36 | typedef unsigned short apm_eventinfo_t; | ||
| 25 | 37 | ||
| 26 | #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8) | 38 | #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8) |
| 27 | #define APM_CS_16 (APM_CS + 8) | 39 | #define APM_CS_16 (APM_CS + 8) |
| 28 | #define APM_DS (APM_CS_16 + 8) | 40 | #define APM_DS (APM_CS_16 + 8) |
| 29 | 41 | ||
| 30 | struct apm_bios_info { | ||
| 31 | u16 version; | ||
| 32 | u16 cseg; | ||
| 33 | u32 offset; | ||
| 34 | u16 cseg_16; | ||
| 35 | u16 dseg; | ||
| 36 | u16 flags; | ||
| 37 | u16 cseg_len; | ||
| 38 | u16 cseg_16_len; | ||
| 39 | u16 dseg_len; | ||
| 40 | }; | ||
| 41 | |||
| 42 | /* Results of APM Installation Check */ | 42 | /* Results of APM Installation Check */ |
| 43 | #define APM_16_BIT_SUPPORT 0x0001 | 43 | #define APM_16_BIT_SUPPORT 0x0001 |
| 44 | #define APM_32_BIT_SUPPORT 0x0002 | 44 | #define APM_32_BIT_SUPPORT 0x0002 |
