From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH RFC 06/35] ACPI: Add Generic Interrupt and Distributor struct Date: Wed, 04 Feb 2015 21:16:33 +0000 Message-ID: <54D28C31.5010800@linaro.org> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> <1423058539-26403-7-git-send-email-parth.dixit@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1423058539-26403-7-git-send-email-parth.dixit@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: parth.dixit@linaro.org, xen-devel@lists.xen.org Cc: ian.campbell@citrix.com, Naresh Bhat , tim@xen.org, stefano.stabellini@citrix.com, jbeulich@suse.com, christoffer.dall@linaro.org List-Id: xen-devel@lists.xenproject.org Hi Parth, On 04/02/2015 14:01, parth.dixit@linaro.org wrote: > From: Naresh Bhat > > Add Generic Interrupt and Distributor (ACPI 5.0) structure. > > Signed-off-by: Naresh Bhat > --- > xen/include/acpi/actbl1.h | 29 ++++++++++++++++++++++++++++- > 1 file changed, 28 insertions(+), 1 deletion(-) > > diff --git a/xen/include/acpi/actbl1.h b/xen/include/acpi/actbl1.h > index 9311e3a..dd6dc27 100644 > --- a/xen/include/acpi/actbl1.h > +++ b/xen/include/acpi/actbl1.h > @@ -639,7 +639,9 @@ enum acpi_madt_type { > ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8, > ACPI_MADT_TYPE_LOCAL_X2APIC = 9, > ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10, > - ACPI_MADT_TYPE_RESERVED = 11 /* 11 and greater are reserved */ > + ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11, > + ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, > + ACPI_MADT_TYPE_RESERVED = 13 /* 13 and greater are reserved */ > }; > > /* > @@ -760,6 +762,31 @@ struct acpi_madt_local_x2apic_nmi { > u8 reserved[3]; > }; > > +/* 11: Generic Interrupt (ACPI 5.0) */ > + > +struct acpi_madt_generic_interrupt { > + struct acpi_subtable_header header; > + u16 reserved; /* reserved - must be zero */ > + u32 gic_id; > + u32 uid; > + u32 flags; > + u32 parking_version; > + u32 performance_interrupt; > + u64 parked_address; > + u64 base_address; > +}; > + > +/* 12: Generic Distributor (ACPI 5.0) */ > + > +struct acpi_madt_generic_distributor { > + struct acpi_subtable_header header; > + u16 reserved; /* reserved - must be zero */ > + u32 gic_id; > + u64 base_address; > + u32 global_irq_base; > + u32 reserved2; /* reserved - must be zero */ > +}; > + This file is using tablutation rather than space for indent > /* > * Common flags fields for MADT subtables > */ > -- Julien Grall