diff options
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r-- | src/acpi/acpigen.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 8d25114e13..6bc587577f 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -2251,6 +2251,20 @@ void acpigen_resource_bus_number(u16 bus_base, u16 bus_limit) bus_limit - bus_base + 1); /* length */ } +void acpigen_resource_io(u16 io_base, u16 io_limit) +{ + acpigen_resource_word(RSRC_TYPE_IO, /* res_type */ + ADDR_SPACE_GENERAL_FLAG_MAX_FIXED + | ADDR_SPACE_GENERAL_FLAG_MIN_FIXED + | ADDR_SPACE_GENERAL_FLAG_DEC_POS, /* gen_flags */ + IO_RSRC_FLAG_ENTIRE_RANGE, /* type_flags */ + 0, /* gran */ + io_base, /* range_min */ + io_limit, /* range_max */ + 0x0, /* translation */ + io_limit - io_base + 1); /* length */ +} + void acpigen_write_ADR(uint64_t adr) { acpigen_write_name_qword("_ADR", adr); |