From 5a82f0d3a9124c2c7603cb971f3d4e9eb4a74246 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 9 May 2023 16:10:35 +0200 Subject: acpi/acpigen: add acpigen_resource_bus_number to generate bus number Add the acpigen_resource_bus_number helper function to generate a bus number range resource. Signed-off-by: Felix Held Signed-off-by: Arthur Heymans Change-Id: Ib1f1da3dbe823c6bc4fc30c0622653410cfbf301 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75043 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/include/acpi/acpigen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/acpi') diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 1b60006656..efd26e4d84 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -693,6 +693,8 @@ void acpigen_resource_dword(u16 res_type, u16 gen_flags, u16 type_flags, void acpigen_resource_qword(u16 res_type, u16 gen_flags, u16 type_flags, u64 gran, u64 range_min, u64 range_max, u64 translation, u64 length); +void acpigen_resource_bus_number(u16 bus_base, u16 bus_limit); + /* Emits Notify(namestr, value) */ void acpigen_notify(const char *namestr, int value); -- cgit v1.2.3