[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 3/7] hw/acpi: extract standard table headers
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] [PATCH v4 3/7] hw/acpi: extract standard table headers as a standalone structure |
Date: |
Fri, 26 Apr 2013 11:32:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
On 04/25/13 20:47, Anthony Liguori wrote:
> Laszlo Ersek <address@hidden> writes:
>> +typedef struct acpi_table_std_header {
>> + char sig[4]; /* ACPI signature (4 ASCII characters) */
>> + uint32_t length; /* Length of table, in bytes, including
>> header */
>> + uint8_t revision; /* ACPI Specification minor version # */
>> + uint8_t checksum; /* To make sum of entire table == 0 */
>> + char oem_id[6]; /* OEM identification */
>> + char oem_table_id[8]; /* OEM table identification */
>> + uint32_t oem_revision; /* OEM revision number */
>> + char asl_compiler_id[4]; /* ASL compiler vendor ID */
>> + uint32_t asl_compiler_revision; /* ASL compiler revision number */
>> +} QEMU_PACKED AcpiTableStdHdr;
>
> Since you're giving it a CamelCaseName why don't you do the same for the
> struct. After that:
This was on purpose. The original "struct acpi_table_header" that I was
extracting from had lower_case_underscore_separated name. My impression
was that structure tags were named_like_this, while ordinary identifiers
denoting types were NamedLikeThis. I was trying to follow that.
However I can see now that in general that observation was wrong. I'll
fix it.
Thanks,
Laszlo
- [Qemu-devel] [PATCH v4 0/7] publish etc/acpi/APIC in fw_cfg, Laszlo Ersek, 2013/04/18
- [Qemu-devel] [PATCH v4 3/7] hw/acpi: extract standard table headers as a standalone structure, Laszlo Ersek, 2013/04/18
- [Qemu-devel] [PATCH v4 1/7] refer to FWCfgState explicitly, Laszlo Ersek, 2013/04/18
- [Qemu-devel] [PATCH v4 2/7] acpi_table_install(): fix funcparam formatting in leading comment, Laszlo Ersek, 2013/04/18
- [Qemu-devel] [PATCH v4 4/7] hw/acpi: export default ACPI headers using the type just introduced, Laszlo Ersek, 2013/04/18
- [Qemu-devel] [PATCH v4 5/7] hw/acpi: export acpi_checksum(), Laszlo Ersek, 2013/04/18