diff options
author | Bob Moore <robert.moore@intel.com> | 2012-01-11 22:09:58 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-01-17 03:38:49 -0500 |
commit | ecafe6faa294697305453b5a6af7760b94622787 (patch) | |
tree | e80091f3f59013dc80f1afd89e8f3be9315d1f6b /drivers | |
parent | 240c320c59aba93605bff761ceb698df3ee90761 (diff) |
ACPICA: Update for larger ACPI 5 FADT size
FADT is now larger than 256 bytes, so all FADT offsets must be
changed from 8 bits to 16 bits.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/acpica/tbfadt.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c index 1e1a7de34439..ff1f7f041f59 100644 --- a/drivers/acpi/acpica/tbfadt.c +++ b/drivers/acpi/acpica/tbfadt.c | |||
@@ -63,14 +63,15 @@ static void acpi_tb_setup_fadt_registers(void); | |||
63 | 63 | ||
64 | typedef struct acpi_fadt_info { | 64 | typedef struct acpi_fadt_info { |
65 | char *name; | 65 | char *name; |
66 | u8 address64; | 66 | u16 address64; |
67 | u8 address32; | 67 | u16 address32; |
68 | u8 length; | 68 | u16 length; |
69 | u8 default_length; | 69 | u8 default_length; |
70 | u8 type; | 70 | u8 type; |
71 | 71 | ||
72 | } acpi_fadt_info; | 72 | } acpi_fadt_info; |
73 | 73 | ||
74 | #define ACPI_FADT_OPTIONAL 0 | ||
74 | #define ACPI_FADT_REQUIRED 1 | 75 | #define ACPI_FADT_REQUIRED 1 |
75 | #define ACPI_FADT_SEPARATE_LENGTH 2 | 76 | #define ACPI_FADT_SEPARATE_LENGTH 2 |
76 | 77 | ||
@@ -87,7 +88,7 @@ static struct acpi_fadt_info fadt_info_table[] = { | |||
87 | ACPI_FADT_OFFSET(pm1b_event_block), | 88 | ACPI_FADT_OFFSET(pm1b_event_block), |
88 | ACPI_FADT_OFFSET(pm1_event_length), | 89 | ACPI_FADT_OFFSET(pm1_event_length), |
89 | ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ | 90 | ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ |
90 | 0}, | 91 | ACPI_FADT_OPTIONAL}, |
91 | 92 | ||
92 | {"Pm1aControlBlock", | 93 | {"Pm1aControlBlock", |
93 | ACPI_FADT_OFFSET(xpm1a_control_block), | 94 | ACPI_FADT_OFFSET(xpm1a_control_block), |
@@ -101,7 +102,7 @@ static struct acpi_fadt_info fadt_info_table[] = { | |||
101 | ACPI_FADT_OFFSET(pm1b_control_block), | 102 | ACPI_FADT_OFFSET(pm1b_control_block), |
102 | ACPI_FADT_OFFSET(pm1_control_length), | 103 | ACPI_FADT_OFFSET(pm1_control_length), |
103 | ACPI_PM1_REGISTER_WIDTH, | 104 | ACPI_PM1_REGISTER_WIDTH, |
104 | 0}, | 105 | ACPI_FADT_OPTIONAL}, |
105 | 106 | ||
106 | {"Pm2ControlBlock", | 107 | {"Pm2ControlBlock", |
107 | ACPI_FADT_OFFSET(xpm2_control_block), | 108 | ACPI_FADT_OFFSET(xpm2_control_block), |
@@ -139,7 +140,7 @@ static struct acpi_fadt_info fadt_info_table[] = { | |||
139 | 140 | ||
140 | typedef struct acpi_fadt_pm_info { | 141 | typedef struct acpi_fadt_pm_info { |
141 | struct acpi_generic_address *target; | 142 | struct acpi_generic_address *target; |
142 | u8 source; | 143 | u16 source; |
143 | u8 register_num; | 144 | u8 register_num; |
144 | 145 | ||
145 | } acpi_fadt_pm_info; | 146 | } acpi_fadt_pm_info; |