[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/2] hw/acpi: add indication for i8042 in IA-PC boot flags
|
From: |
Ani Sinha |
|
Subject: |
Re: [PATCH v2 2/2] hw/acpi: add indication for i8042 in IA-PC boot flags of the FADT table |
|
Date: |
Tue, 22 Feb 2022 12:42:54 +0530 (IST) |
|
User-agent: |
Alpine 2.22 (DEB 394 2020-01-19) |
> };
> + if (isa_check_device_existence("i8042")) {
> + /* Indicates if i8042 is present or not */
> + fadt.iapc_boot_arch = (1 << 1);
> + }
> +
> *data = fadt;
> }
>
We do these things slightly differently. how about
/*
* second bit of 16 but IAPC_BOOT_ARCH indicates presence of 8042 or
equivalent
micro controller. See table 5-10 of APCI spec version 2.0 (the earliest
acpi revision that supports this).
*/
fadt.iapc_boot_arch = isa_check_device_existence("i8042")? 0x0002:0x0000;
> diff --git a/hw/i386/acpi-microvm.c b/hw/i386/acpi-microvm.c
> index 68ca7e7fc2..756c69b3b0 100644
> --- a/hw/i386/acpi-microvm.c
> +++ b/hw/i386/acpi-microvm.c
> @@ -189,6 +189,11 @@ static void acpi_build_microvm(AcpiBuildTables *tables,
> .reset_val = ACPI_GED_RESET_VALUE,
> };
>
> + if (isa_check_device_existence("i8042")) {
> + /* Indicates if i8042 is present or not */
> + pmfadt.iapc_boot_arch = (1 << 1);
> + }
> +
Ditto.