diff mbox

[1/3] lib: acpi: add supports for WPBT

Message ID 1471580770-28637-1-git-send-email-alex.hung@canonical.com
State Accepted
Headers show

Commit Message

Alex Hung Aug. 19, 2016, 4:26 a.m. UTC
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/lib/include/fwts_acpi.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Colin Ian King Aug. 19, 2016, 8:05 a.m. UTC | #1
On 19/08/16 05:26, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/lib/include/fwts_acpi.h | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
> index 77ed616..b2116fb 100644
> --- a/src/lib/include/fwts_acpi.h
> +++ b/src/lib/include/fwts_acpi.h
> @@ -1757,6 +1757,23 @@ typedef struct {
>  } __attribute__ ((packed)) fwts_acpi_table_wdat;
>  
>  /*
> + * ACPI WPDT (Windows Platform Binary Table)
> + *  https://msdn.microsoft.com/en-US/library/windows/hardware/dn550976
> + */
> +typedef struct {
> +	uint16_t	arguments_length;
> +	uint8_t		arguments[];
> +} __attribute__ ((packed)) fwts_acpi_table_wpbt_type1;
> +
> +typedef struct {
> +	fwts_acpi_table_header  header;
> +	uint32_t	handoff_size;
> +	uint64_t	handoff_address;
> +	uint8_t		layout;
> +	uint8_t		type;
> +} __attribute__ ((packed)) fwts_acpi_table_wpbt;
> +
> +/*
>   *  ACPI ASPT
>   *	determined by reverse engineering
>   */
> 
Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu Aug. 29, 2016, 2:38 a.m. UTC | #2
On 2016年08月19日 12:26, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/lib/include/fwts_acpi.h | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
> index 77ed616..b2116fb 100644
> --- a/src/lib/include/fwts_acpi.h
> +++ b/src/lib/include/fwts_acpi.h
> @@ -1757,6 +1757,23 @@ typedef struct {
>  } __attribute__ ((packed)) fwts_acpi_table_wdat;
>
>  /*
> + * ACPI WPDT (Windows Platform Binary Table)
> + *  https://msdn.microsoft.com/en-US/library/windows/hardware/dn550976
> + */
> +typedef struct {
> +	uint16_t	arguments_length;
> +	uint8_t		arguments[];
> +} __attribute__ ((packed)) fwts_acpi_table_wpbt_type1;
> +
> +typedef struct {
> +	fwts_acpi_table_header  header;
> +	uint32_t	handoff_size;
> +	uint64_t	handoff_address;
> +	uint8_t		layout;
> +	uint8_t		type;
> +} __attribute__ ((packed)) fwts_acpi_table_wpbt;
> +
> +/*
>   *  ACPI ASPT
>   *	determined by reverse engineering
>   */
>

Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox

Patch

diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
index 77ed616..b2116fb 100644
--- a/src/lib/include/fwts_acpi.h
+++ b/src/lib/include/fwts_acpi.h
@@ -1757,6 +1757,23 @@  typedef struct {
 } __attribute__ ((packed)) fwts_acpi_table_wdat;
 
 /*
+ * ACPI WPDT (Windows Platform Binary Table)
+ *  https://msdn.microsoft.com/en-US/library/windows/hardware/dn550976
+ */
+typedef struct {
+	uint16_t	arguments_length;
+	uint8_t		arguments[];
+} __attribute__ ((packed)) fwts_acpi_table_wpbt_type1;
+
+typedef struct {
+	fwts_acpi_table_header  header;
+	uint32_t	handoff_size;
+	uint64_t	handoff_address;
+	uint8_t		layout;
+	uint8_t		type;
+} __attribute__ ((packed)) fwts_acpi_table_wpbt;
+
+/*
  *  ACPI ASPT
  *	determined by reverse engineering
  */