Patchwork [RESEND] acpi: acpidump: add extra ACPI 5.0 fields to FACP

login
register
mail settings
Submitter Colin King
Date July 17, 2012, 12:34 a.m.
Message ID <1342485267-7651-1-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/171299/
State Accepted
Headers show

Comments

Colin King - July 17, 2012, 12:34 a.m.
From: Colin Ian King <colin.king@canonical.com>

Newer ACPI 5.0 FACP tables may now have the SLEEP_CONTROL_REG
and SLEEP_STATUS_REG fields

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpi/acpidump/acpidump.c |    2 ++
 src/lib/include/fwts_acpi.h  |    2 ++
 2 files changed, 4 insertions(+)
Alex Hung - July 18, 2012, 2:31 a.m.
On 07/17/2012 08:34 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Newer ACPI 5.0 FACP tables may now have the SLEEP_CONTROL_REG
> and SLEEP_STATUS_REG fields
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/acpi/acpidump/acpidump.c |    2 ++
>   src/lib/include/fwts_acpi.h  |    2 ++
>   2 files changed, 4 insertions(+)
>
> diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
> index 505418d..e2eeb43 100644
> --- a/src/acpi/acpidump/acpidump.c
> +++ b/src/acpi/acpidump/acpidump.c
> @@ -657,6 +657,8 @@ static void acpidump_fadt(fwts_framework *fw, fwts_acpi_table_info *table)
>   		FIELD_GAS ("X_PM_TMR_BLK", 	fwts_acpi_table_fadt, x_pm_tmr_blk),
>   		FIELD_GAS ("X_GPE0_BLK", 	fwts_acpi_table_fadt, x_gpe0_blk),
>   		FIELD_GAS ("X_GPE1_BLK", 	fwts_acpi_table_fadt, x_gpe1_blk),
> +		FIELD_GAS ("SLEEP_CONTROL_REG", fwts_acpi_table_fadt, sleep_control_reg),
> +		FIELD_GAS ("SLEEP_STATUS_REG", 	fwts_acpi_table_fadt, sleep_status_reg),
>   		FIELD_END
>   	};
>
> diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
> index 3ae77d4..26bbf13 100644
> --- a/src/lib/include/fwts_acpi.h
> +++ b/src/lib/include/fwts_acpi.h
> @@ -215,6 +215,8 @@ typedef struct {
>   	fwts_acpi_gas	x_pm_tmr_blk;
>   	fwts_acpi_gas	x_gpe0_blk;
>   	fwts_acpi_gas	x_gpe1_blk;
> +	fwts_acpi_gas	sleep_control_reg;
> +	fwts_acpi_gas	sleep_status_reg;
>   } __attribute__ ((packed)) fwts_acpi_table_fadt;
>
>   typedef struct {
>

Acked-by: Alex Hung <alex.hung@canonical.com>
Ivan Hu - July 18, 2012, 3:05 a.m.
On 07/17/2012 08:34 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Newer ACPI 5.0 FACP tables may now have the SLEEP_CONTROL_REG
> and SLEEP_STATUS_REG fields
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/acpi/acpidump/acpidump.c |    2 ++
>   src/lib/include/fwts_acpi.h  |    2 ++
>   2 files changed, 4 insertions(+)
>
> diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
> index 505418d..e2eeb43 100644
> --- a/src/acpi/acpidump/acpidump.c
> +++ b/src/acpi/acpidump/acpidump.c
> @@ -657,6 +657,8 @@ static void acpidump_fadt(fwts_framework *fw, fwts_acpi_table_info *table)
>   		FIELD_GAS ("X_PM_TMR_BLK", 	fwts_acpi_table_fadt, x_pm_tmr_blk),
>   		FIELD_GAS ("X_GPE0_BLK", 	fwts_acpi_table_fadt, x_gpe0_blk),
>   		FIELD_GAS ("X_GPE1_BLK", 	fwts_acpi_table_fadt, x_gpe1_blk),
> +		FIELD_GAS ("SLEEP_CONTROL_REG", fwts_acpi_table_fadt, sleep_control_reg),
> +		FIELD_GAS ("SLEEP_STATUS_REG", 	fwts_acpi_table_fadt, sleep_status_reg),
>   		FIELD_END
>   	};
>
> diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
> index 3ae77d4..26bbf13 100644
> --- a/src/lib/include/fwts_acpi.h
> +++ b/src/lib/include/fwts_acpi.h
> @@ -215,6 +215,8 @@ typedef struct {
>   	fwts_acpi_gas	x_pm_tmr_blk;
>   	fwts_acpi_gas	x_gpe0_blk;
>   	fwts_acpi_gas	x_gpe1_blk;
> +	fwts_acpi_gas	sleep_control_reg;
> +	fwts_acpi_gas	sleep_status_reg;
>   } __attribute__ ((packed)) fwts_acpi_table_fadt;
>
>   typedef struct {
>
Acked-by: Ivan Hu<ivan.hu@canonical.com>

Patch

diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
index 505418d..e2eeb43 100644
--- a/src/acpi/acpidump/acpidump.c
+++ b/src/acpi/acpidump/acpidump.c
@@ -657,6 +657,8 @@  static void acpidump_fadt(fwts_framework *fw, fwts_acpi_table_info *table)
 		FIELD_GAS ("X_PM_TMR_BLK", 	fwts_acpi_table_fadt, x_pm_tmr_blk),
 		FIELD_GAS ("X_GPE0_BLK", 	fwts_acpi_table_fadt, x_gpe0_blk),
 		FIELD_GAS ("X_GPE1_BLK", 	fwts_acpi_table_fadt, x_gpe1_blk),
+		FIELD_GAS ("SLEEP_CONTROL_REG", fwts_acpi_table_fadt, sleep_control_reg),
+		FIELD_GAS ("SLEEP_STATUS_REG", 	fwts_acpi_table_fadt, sleep_status_reg),
 		FIELD_END
 	};
 
diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
index 3ae77d4..26bbf13 100644
--- a/src/lib/include/fwts_acpi.h
+++ b/src/lib/include/fwts_acpi.h
@@ -215,6 +215,8 @@  typedef struct {
 	fwts_acpi_gas	x_pm_tmr_blk;
 	fwts_acpi_gas	x_gpe0_blk;
 	fwts_acpi_gas	x_gpe1_blk;
+	fwts_acpi_gas	sleep_control_reg;
+	fwts_acpi_gas	sleep_status_reg;
 } __attribute__ ((packed)) fwts_acpi_table_fadt;
 
 typedef struct {