[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 45/47] acpi: add acpi_iqr_no_flags() term
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v2 45/47] acpi: add acpi_iqr_no_flags() term |
Date: |
Wed, 28 Jan 2015 13:15:46 +0100 |
On Tue, 27 Jan 2015 16:37:45 +0100
Claudio Fontana <address@hidden> wrote:
> Hi,
>
> I think you have to replace "iqr" with "irq" in the function definition and
> in the commit message.
sure, I'll fix it.
>
> Ciao,
>
> Claudio
>
> On 22.01.2015 15:50, Igor Mammedov wrote:
> > Signed-off-by: Igor Mammedov <address@hidden>
> > ---
> > hw/acpi/acpi-build-utils.c | 18 ++++++++++++++++++
> > include/hw/acpi/acpi-build-utils.h | 1 +
> > 2 files changed, 19 insertions(+)
> >
> > diff --git a/hw/acpi/acpi-build-utils.c b/hw/acpi/acpi-build-utils.c
> > index 58f88cd..59873e3 100644
> > --- a/hw/acpi/acpi-build-utils.c
> > +++ b/hw/acpi/acpi-build-utils.c
> > @@ -511,6 +511,24 @@ AcpiAml acpi_io(acpiIODecode dec, uint16_t min_base,
> > uint16_t max_base,
> > return var;
> > }
> >
> > +/*
> > + * ACPI 5.0: 19.5.64 IRQNoFlags (Interrupt Resource Descriptor Macro)
> > + * 6.4.2.1 IRQ Descriptor
> > +*/
> > +AcpiAml acpi_iqr_no_flags(uint8_t irq)
> > +{
> > + uint16_t irq_mask;
> > + AcpiAml var = aml_allocate_internal(0, NON_BLOCK);
> > +
> > + assert(irq < 16);
> > + build_append_byte(var.buf, 0x22); /* IRQ descriptor 2 byte form */
> > +
> > + irq_mask = 1U << irq;
> > + build_append_byte(var.buf, irq_mask & 0xFF); /* IRQ mask bits[7:0] */
> > + build_append_byte(var.buf, irq_mask >> 8); /* IRQ mask bits[15:8] */
> > + return var;
> > +}
> > +
> > /* ACPI 5.0: 20.2.5.4 Type 2 Opcodes Encoding: DefLEqual */
> > AcpiAml acpi_equal(AcpiAml arg1, AcpiAml arg2)
> > {
> > diff --git a/include/hw/acpi/acpi-build-utils.h
> > b/include/hw/acpi/acpi-build-utils.h
> > index 868d439..d39b5b1 100644
> > --- a/include/hw/acpi/acpi-build-utils.h
> > +++ b/include/hw/acpi/acpi-build-utils.h
> > @@ -117,6 +117,7 @@ AcpiAml acpi_call4(const char *method, AcpiAml arg1,
> > AcpiAml arg2,
> > AcpiAml arg3, AcpiAml arg4);
> > AcpiAml acpi_io(acpiIODecode dec, uint16_t min_base, uint16_t max_base,
> > uint8_t aln, uint8_t len);
> > +AcpiAml acpi_iqr_no_flags(uint8_t irq);
> > AcpiAml acpi_operation_region(const char *name, acpiRegionSpace rs,
> > uint32_t offset, uint32_t len);
> > AcpiAml acpi_named_field(const char *name, unsigned length);
> >
>
>
>
- [Qemu-devel] [PATCH v2 37/47] pc: acpi-build: create memory hotplug IO region dynamically, (continued)
- [Qemu-devel] [PATCH v2 37/47] pc: acpi-build: create memory hotplug IO region dynamically, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 30/47] acpi: add acpi_equal() term, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 38/47] acpi: add acpi_word_bus_number(), acpi_word_io(), acpi_dword_memory(), acpi_qword_memory() terms, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 39/47] pc: pcihp: expose MMIO base and len as properties, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 42/47] acpi: add acpi_def_block() term, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 40/47] pc: acpi-build: reserve PCIHP MMIO resources, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 41/47] pc: acpi-build: create PCI0._CRS dynamically, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 44/47] pc: acpi-build: drop remaining ssdt_misc template and use acpi_def_block(), Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 45/47] acpi: add acpi_iqr_no_flags() term, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 46/47] pc: export applesmc IO port/len, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 43/47] pc: acpi-build: prepare to make ACPI tables blob opaque for table building functions, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 47/47] pc: acpi-build: drop template patching and create Device(SMC) dynamically, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 17/47] acpi: add acpi_package() term, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 06/47] acpi: add acpi_name() & acpi_name_decl() term, Igor Mammedov, 2015/01/22
- [Qemu-devel] [PATCH v2 11/47] acpi: add acpi_arg0(), acpi_arg1(), acpi_arg2(), acpi_arg3() terms, Igor Mammedov, 2015/01/22