diff options
author | Bob Moore <robert.moore@intel.com> | 2012-08-17 01:08:33 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-09-21 00:26:17 -0400 |
commit | 84be5d687f8060ad96d5a4a060e207a0ec5cc016 (patch) | |
tree | cda2c7dc5b6e5848515d3101ee9994f3ae2c3082 /include/acpi | |
parent | be030a576854238250d70135644cde6a0ba34b0d (diff) |
ACPICA: Add struct header support for _FDE, _GRT, _GTM, and _SRT names.
Added structs for the buffers related to these predefined names,
in acbuffer.h
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acbuffer.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/acpi/acbuffer.h b/include/acpi/acbuffer.h index 2c3b44789f95..a1e45cdd729a 100644 --- a/include/acpi/acbuffer.h +++ b/include/acpi/acbuffer.h | |||
@@ -45,6 +45,11 @@ | |||
45 | #define __ACBUFFER_H__ | 45 | #define __ACBUFFER_H__ |
46 | 46 | ||
47 | /* | 47 | /* |
48 | * Contains buffer structures for these predefined names: | ||
49 | * _FDE, _GRT, _GTM, _PLD, _SRT | ||
50 | */ | ||
51 | |||
52 | /* | ||
48 | * Note: C bitfields are not used for this reason: | 53 | * Note: C bitfields are not used for this reason: |
49 | * | 54 | * |
50 | * "Bitfields are great and easy to read, but unfortunately the C language | 55 | * "Bitfields are great and easy to read, but unfortunately the C language |
@@ -56,6 +61,44 @@ | |||
56 | * See http://stackoverflow.com/a/1053662/41661 | 61 | * See http://stackoverflow.com/a/1053662/41661 |
57 | */ | 62 | */ |
58 | 63 | ||
64 | /* _FDE return value */ | ||
65 | |||
66 | struct acpi_fde_info { | ||
67 | u32 floppy0; | ||
68 | u32 floppy1; | ||
69 | u32 floppy2; | ||
70 | u32 floppy3; | ||
71 | u32 tape; | ||
72 | }; | ||
73 | |||
74 | /* | ||
75 | * _GRT return value | ||
76 | * _SRT input value | ||
77 | */ | ||
78 | struct acpi_grt_info { | ||
79 | u16 year; | ||
80 | u8 month; | ||
81 | u8 day; | ||
82 | u8 hour; | ||
83 | u8 minute; | ||
84 | u8 second; | ||
85 | u8 valid; | ||
86 | u16 milliseconds; | ||
87 | u16 timezone; | ||
88 | u8 daylight; | ||
89 | u8 reserved[3]; | ||
90 | }; | ||
91 | |||
92 | /* _GTM return value */ | ||
93 | |||
94 | struct acpi_gtm_info { | ||
95 | u32 pio_speed0; | ||
96 | u32 dma_speed0; | ||
97 | u32 pio_speed1; | ||
98 | u32 dma_speed1; | ||
99 | u32 flags; | ||
100 | }; | ||
101 | |||
59 | /* | 102 | /* |
60 | * Formatted _PLD return value. The minimum size is a package containing | 103 | * Formatted _PLD return value. The minimum size is a package containing |
61 | * one buffer. | 104 | * one buffer. |