OLD | NEW |
1 #ifndef _DRIVERS_PLATFORM_X86_CHROMEOS_ACPI_H | 1 #ifndef _DRIVERS_PLATFORM_X86_CHROMEOS_ACPI_H |
2 #define _DRIVERS_PLATFORM_X86_CHROMEOS_ACPI_H | 2 #define _DRIVERS_PLATFORM_X86_CHROMEOS_ACPI_H |
3 | 3 |
4 #include <linux/types.h> | 4 #include <linux/types.h> |
5 | 5 |
6 #define NVRAM_BYTES (128 - NVRAM_FIRST_BYTE) /* from drivers/char/nvram.c */ | 6 #define NVRAM_BYTES (128 - NVRAM_FIRST_BYTE) /* from drivers/char/nvram.c */ |
7 | 7 |
8 #define CHNV_DEBUG_RESET_FLAG 0x40 /* flag for S3 reboot */ | 8 #define CHNV_DEBUG_RESET_FLAG 0x40 /* flag for S3 reboot */ |
9 #define CHNV_RECOVERY_FLAG 0x80 /* flag for recovery reboot */ | 9 #define CHNV_RECOVERY_FLAG 0x80 /* flag for recovery reboot */ |
10 | 10 |
11 #define CHSW_RECOVERY_FW 0x00000002 /* recovery button depressed */ | 11 #define CHSW_RECOVERY_FW 0x00000002 /* recovery button depressed */ |
12 #define CHSW_RECOVERY_EC 0x00000004 /* recovery button depressed */ | 12 #define CHSW_RECOVERY_EC 0x00000004 /* recovery button depressed */ |
13 #define CHSW_DEVELOPER_MODE 0x00000020 /* developer switch set */ | 13 #define CHSW_DEVELOPER_MODE 0x00000020 /* developer switch set */ |
14 #define CHSW_WP 0x00000200 /* write-protect (optional) */ | 14 #define CHSW_WP 0x00000200 /* write-protect (optional) */ |
15 | 15 |
16 /* | 16 /* |
17 * Structure containing one ACPi exported integer along with the validity | 17 * Structure containing one ACPI exported integer along with the validity |
18 * flag. | 18 * flag. |
19 */ | 19 */ |
20 struct chromeos_acpi_datum { | 20 struct chromeos_acpi_datum { |
21 unsigned cad_value; | 21 unsigned cad_value; |
22 bool cad_is_set; | 22 bool cad_is_set; |
23 }; | 23 }; |
24 | 24 |
25 /* | 25 /* |
26 * Structure containg the set of ACPI exported integers required by chromeos | 26 * Structure containing the set of ACPI exported integers required by chromeos |
27 * wrapper. | 27 * wrapper. |
28 */ | 28 */ |
29 struct chromeos_acpi_if { | 29 struct chromeos_acpi_if { |
30 struct chromeos_acpi_datum switch_state; | 30 struct chromeos_acpi_datum switch_state; |
31 struct chromeos_acpi_datum nv_base; | 31 struct chromeos_acpi_datum nv_base; |
32 struct chromeos_acpi_datum nv_size; | 32 struct chromeos_acpi_datum nv_size; |
33 }; | 33 }; |
34 | 34 |
35 | 35 |
36 extern struct chromeos_acpi_if chromeos_acpi_if_data; | 36 extern struct chromeos_acpi_if chromeos_acpi_if_data; |
37 | 37 |
38 #endif /* _DRIVERS_PLATFORM_X86_CHROMEOS_ACPI_H */ | 38 #endif /* _DRIVERS_PLATFORM_X86_CHROMEOS_ACPI_H */ |
OLD | NEW |