driver inclusion category: feature bugzilla: https://atomgit.com/openeuler/kernel/issues/9163 ---------------------------------------------------------------------- CPPC v4 (ACPI 6.6, Section 8.4.6.1.2.7) introduces the Resource Priority entry, which is a Package of sub-packages rather than a plain Integer or Buffer register. The existing cpc_register_resource union only accommodates Integer and Buffer (register descriptor) fields. Add a Package variant to the cpc_entry union so that nested structures such as RESOURCE_PRIORITY can store their element count and a dynamically allocated array of child cpc_register_resource descriptors. No functional change intended; the new Package fields are not yet consumed by any caller. Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com> Signed-off-by: Hongye Lin <linhongye@h-partners.com> --- include/acpi/cppc_acpi.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h index b9787f77fe54..cf5f3780f229 100644 --- a/include/acpi/cppc_acpi.h +++ b/include/acpi/cppc_acpi.h @@ -56,6 +56,14 @@ struct cpc_register_resource { union { struct cpc_reg reg; u64 int_value; + /* + * CPPC v4: nested Package (e.g. RESOURCE_PRIORITY), + * elements dynamically allocated + */ + struct { + u32 count; + struct cpc_register_resource *elements; + } package; } cpc_entry; }; -- 2.33.0