From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 8 Apr 2020 13:32:17 -0600 Subject: [PATCH v4 21/31] acpi: Add a central location for table version numbers In-Reply-To: <20200408172005.GQ3676135@smile.fi.intel.com> References: <20200408030107.168474-1-sjg@chromium.org> <20200407210023.v4.21.I19e38d6d49d8a7ac5fbe8a724e5ab3e71f857208@changeid> <20200408172005.GQ3676135@smile.fi.intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andy, On Wed, 8 Apr 2020 at 11:20, Andy Shevchenko wrote: > > On Tue, Apr 07, 2020 at 09:00:57PM -0600, Simon Glass wrote: > > Each ACPI table has its own version number. Add the version numbers in a > > single function so we can keep them consistent and easily see what > > versions are supported. > > > > Start a new acpi_table file in a generic directory to house this function. > > We can move things over to this file from x86 as needed. > > ... > > > +/* FADT TABLE Revision values */ > > Same comment? >From below? OK > > > +#define ACPI_FADT_REV_ACPI_1_0 1 > > +#define ACPI_FADT_REV_ACPI_2_0 3 > > +#define ACPI_FADT_REV_ACPI_3_0 4 > > +#define ACPI_FADT_REV_ACPI_4_0 4 > > +#define ACPI_FADT_REV_ACPI_5_0 5 > > +#define ACPI_FADT_REV_ACPI_6_0 6 > > + > > +/* MADT TABLE Revision values - note these do not match the ACPI revision */ > > +#define ACPI_MADT_REV_ACPI_3_0 2 > > +#define ACPI_MADT_REV_ACPI_4_0 3 > > +#define ACPI_MADT_REV_ACPI_5_0 3 > > +#define ACPI_MADT_REV_ACPI_6_0 5 > > + > > /* MCFG TABLE Revision values */ > > > +#define ACPI_MCFG_REV_ACPI_3_0 1 > > ... > > > +enum acpi_tables { > > + ACPITAB_BERT, > > + ACPITAB_DBG2, > > + ACPITAB_DMAR, > > + ACPITAB_DSDT, > > + ACPITAB_ECDT, > > + ACPITAB_FACS, > > + ACPITAB_FADT, > > + ACPITAB_HEST, > > + ACPITAB_HPET, > > + ACPITAB_IVRS, > > + ACPITAB_MADT, > > + ACPITAB_MCFG, > > + ACPITAB_RSDP, > > + ACPITAB_RSDT, > > + ACPITAB_SLIT, > > + ACPITAB_SPCR, > > + ACPITAB_SRAT, > > + ACPITAB_SSDT, > > + ACPITAB_TCPA, > > + ACPITAB_TPM2, > > + ACPITAB_XSDT, > > + > > + /* Additional proprietary tables */ > > > + ACPITAB_NHLT, > > I didn't get the division. What proprietary means? For example NHLT spec is > public now AFAIK. But SPCR, for instance, is an extension by Microsoft. > > Perhaps the division can be > 1st group: ACPI spec defined > 2nd: PCI SIG defined > 3rd: UEFI ACPI extensions > This seems silly. Let's just have them in alpha order. > ? > > > + ACPITAB_SPMI, > > + ACPITAB_VFCT, > > + > > > + ACPITAB_COUNT, > > Comma at the end, if it is a terminator line, is redundant. Indeed, but it is the typical style in U-Boot. I can change it. Regards, Simon