diff mbox

[edk2] EmbeddedPkg: Add GICD table init macro for ACPI 6.0

Message ID 1459992735-12248-1-git-send-email-heyi.guo@linaro.org
State Accepted
Commit d354963f0dc350771167fa5d3c28b9de8d632d9c
Headers show

Commit Message

gary guo April 7, 2016, 1:32 a.m. UTC
Add macro to help initialize GICD structure in MADT table according to
ACPI 6.0.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 EmbeddedPkg/Include/Library/AcpiLib.h | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.7.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

gary guo April 11, 2016, 12:31 p.m. UTC | #1
Hello,

Any comments on this patch?

Regards.

Heyi

On 04/07/2016 09:32 AM, Heyi Guo wrote:
> Add macro to help initialize GICD structure in MADT table according to

> ACPI 6.0.

>

> Contributed-under: TianoCore Contribution Agreement 1.0

> Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

> Cc: Leif Lindholm <leif.lindholm@linaro.org>

> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---

>   EmbeddedPkg/Include/Library/AcpiLib.h | 7 +++++++

>   1 file changed, 7 insertions(+)

>

> diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h

> index 74a929c..e5bcf56 100644

> --- a/EmbeddedPkg/Include/Library/AcpiLib.h

> +++ b/EmbeddedPkg/Include/Library/AcpiLib.h

> @@ -38,6 +38,13 @@

>       GicDistHwId, GicDistBase, GicDistVector, EFI_ACPI_RESERVED_DWORD \

>     }

>   

> +#define EFI_ACPI_6_0_GIC_DISTRIBUTOR_INIT(GicDistHwId, GicDistBase, GicDistVector, GicVersion) \

> +  { \

> +    EFI_ACPI_6_0_GICD, sizeof (EFI_ACPI_6_0_GIC_DISTRIBUTOR_STRUCTURE), EFI_ACPI_RESERVED_WORD, \

> +    GicDistHwId, GicDistBase, GicDistVector, GicVersion, \

> +    {EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE} \

> +  }

> +

>   // Note the parking protocol is configured by UEFI if required

>   #define EFI_ACPI_5_0_GIC_STRUCTURE_INIT(GicId, AcpiCpuId, Flags, PmuIrq, GicBase) \

>     { \


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ard Biesheuvel April 11, 2016, 4:53 p.m. UTC | #2
On 11 April 2016 at 14:31, Heyi Guo <heyi.guo@linaro.org> wrote:
> Hello,

>

> Any comments on this patch?

>


I think it looks fine. Leif?

> On 04/07/2016 09:32 AM, Heyi Guo wrote:

>>

>> Add macro to help initialize GICD structure in MADT table according to

>> ACPI 6.0.

>>

>> Contributed-under: TianoCore Contribution Agreement 1.0

>> Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

>> Cc: Leif Lindholm <leif.lindholm@linaro.org>

>> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>

>> ---

>>   EmbeddedPkg/Include/Library/AcpiLib.h | 7 +++++++

>>   1 file changed, 7 insertions(+)

>>

>> diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h

>> b/EmbeddedPkg/Include/Library/AcpiLib.h

>> index 74a929c..e5bcf56 100644

>> --- a/EmbeddedPkg/Include/Library/AcpiLib.h

>> +++ b/EmbeddedPkg/Include/Library/AcpiLib.h

>> @@ -38,6 +38,13 @@

>>       GicDistHwId, GicDistBase, GicDistVector, EFI_ACPI_RESERVED_DWORD \

>>     }

>>   +#define EFI_ACPI_6_0_GIC_DISTRIBUTOR_INIT(GicDistHwId, GicDistBase,

>> GicDistVector, GicVersion) \

>> +  { \

>> +    EFI_ACPI_6_0_GICD, sizeof (EFI_ACPI_6_0_GIC_DISTRIBUTOR_STRUCTURE),

>> EFI_ACPI_RESERVED_WORD, \

>> +    GicDistHwId, GicDistBase, GicDistVector, GicVersion, \

>> +    {EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE,

>> EFI_ACPI_RESERVED_BYTE} \

>> +  }

>> +

>>   // Note the parking protocol is configured by UEFI if required

>>   #define EFI_ACPI_5_0_GIC_STRUCTURE_INIT(GicId, AcpiCpuId, Flags, PmuIrq,

>> GicBase) \

>>     { \

>

>

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ard Biesheuvel April 14, 2016, 10:58 a.m. UTC | #3
On 11 April 2016 at 18:53, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
> On 11 April 2016 at 14:31, Heyi Guo <heyi.guo@linaro.org> wrote:

>> Hello,

>>

>> Any comments on this patch?

>>

>

> I think it looks fine. Leif?

>


Pushed as d354963f0dc3

Thanks,
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Library/AcpiLib.h
index 74a929c..e5bcf56 100644
--- a/EmbeddedPkg/Include/Library/AcpiLib.h
+++ b/EmbeddedPkg/Include/Library/AcpiLib.h
@@ -38,6 +38,13 @@ 
     GicDistHwId, GicDistBase, GicDistVector, EFI_ACPI_RESERVED_DWORD \
   }
 
+#define EFI_ACPI_6_0_GIC_DISTRIBUTOR_INIT(GicDistHwId, GicDistBase, GicDistVector, GicVersion) \
+  { \
+    EFI_ACPI_6_0_GICD, sizeof (EFI_ACPI_6_0_GIC_DISTRIBUTOR_STRUCTURE), EFI_ACPI_RESERVED_WORD, \
+    GicDistHwId, GicDistBase, GicDistVector, GicVersion, \
+    {EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE} \
+  }
+
 // Note the parking protocol is configured by UEFI if required
 #define EFI_ACPI_5_0_GIC_STRUCTURE_INIT(GicId, AcpiCpuId, Flags, PmuIrq, GicBase) \
   { \