Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46351
b: refs/heads/master
c: 4bf2739
h: refs/heads/master
i:
  46349: 32f925d
  46347: b316941
  46343: 642a9e1
  46335: 42a2349
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Feb 3, 2007
1 parent c39c4a7 commit c99b49f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f34890dce60f7df6dd23a0d04977c6572adaab8
refs/heads/master: 4bf273939c99fae5bae399f51c417a552d74b97f
21 changes: 14 additions & 7 deletions trunk/drivers/acpi/tables/tbutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ acpi_tb_print_table_header(acpi_physical_address address,
((struct acpi_table_rsdp *)header)->revision,
((struct acpi_table_rsdp *)header)->oem_id));
} else {
/* Standard ACPI table with full common header */

ACPI_INFO((AE_INFO,
"%4.4s @ 0x%p/0x%04X (v%3.3d %6.6s %8.8s 0x%08X %4.4s 0x%08X)",
header->signature, ACPI_CAST_PTR(void, address),
Expand Down Expand Up @@ -160,7 +162,7 @@ acpi_tb_init_generic_address(struct acpi_generic_address *new_gas_struct,
u8 bit_width, u64 address)
{

ACPI_STORE_ADDRESS(new_gas_struct->address, address);
ACPI_MOVE_64_TO_64(&new_gas_struct->address, &address);
new_gas_struct->space_id = ACPI_ADR_SPACE_SYSTEM_IO;
new_gas_struct->bit_width = bit_width;
new_gas_struct->bit_offset = 0;
Expand Down Expand Up @@ -284,13 +286,15 @@ static void acpi_tb_convert_fadt(void)
ACPI_ADD_PTR(struct acpi_generic_address, &acpi_gbl_FADT,
fadt_conversion_table[i].target);

/* Expand only if the X target is null */

if (!target->address) {
acpi_tb_init_generic_address(target,
*ACPI_ADD_PTR(u8,
&acpi_gbl_FADT,
fadt_conversion_table
[i].length),
*ACPI_ADD_PTR(u64,
*ACPI_ADD_PTR(u32,
&acpi_gbl_FADT,
fadt_conversion_table
[i].source));
Expand All @@ -301,24 +305,27 @@ static void acpi_tb_convert_fadt(void)
* Calculate separate GAS structs for the PM1 Enable registers.
* These addresses do not appear (directly) in the FADT, so it is
* useful to calculate them once, here.
*
* The PM event blocks are split into two register blocks, first is the
* PM Status Register block, followed immediately by the PM Enable Register
* block. Each is of length (pm1_event_length/2)
*/
pm1_register_length = (u8) ACPI_DIV_2(acpi_gbl_FADT.pm1_event_length);

/* PM1A is required */

acpi_tb_init_generic_address(&acpi_gbl_xpm1a_enable,
pm1_register_length,
(u64) (acpi_gbl_FADT.xpm1a_event_block.
address + pm1_register_length));
(acpi_gbl_FADT.xpm1a_event_block.address +
pm1_register_length));

/* PM1B is optional; leave null if not present */

if (acpi_gbl_FADT.xpm1b_event_block.address) {
acpi_tb_init_generic_address(&acpi_gbl_xpm1b_enable,
pm1_register_length,
(u64) (acpi_gbl_FADT.
xpm1b_event_block.address +
pm1_register_length));
(acpi_gbl_FADT.xpm1b_event_block.
address + pm1_register_length));
}

/* Global FADT is the new common V2.0 FADT */
Expand Down

0 comments on commit c99b49f

Please sign in to comment.