summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/acpi/acpigen.c11
-rw-r--r--src/include/acpi/acpigen.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index 94a6f908a9..6f6e85a571 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -821,6 +821,17 @@ void acpigen_write_STA_ext(const char *namestring)
acpigen_pop_len();
}
+void acpigen_write_BBN(uint8_t base_bus_number)
+{
+ /*
+ * Method (_BBN, 0, NotSerialized) { Return (status) }
+ */
+ acpigen_write_method("_BBN", 0);
+ acpigen_emit_byte(RETURN_OP);
+ acpigen_write_byte(base_bus_number);
+ acpigen_pop_len();
+}
+
void acpigen_write_LPI_package(u64 level, const struct acpi_lpi_state *states, u16 nentries)
{
/*
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h
index fc1d01b4e3..1b60006656 100644
--- a/src/include/acpi/acpigen.h
+++ b/src/include/acpi/acpigen.h
@@ -435,6 +435,7 @@ void acpigen_write_PTC(uint8_t duty_width, uint8_t duty_offset, uint16_t p_cnt);
void acpigen_write_PRW(u32 wake, u32 level);
void acpigen_write_STA(uint8_t status);
void acpigen_write_STA_ext(const char *namestring);
+void acpigen_write_BBN(uint8_t base_bus_number);
void acpigen_write_TPC(const char *gnvs_tpc_limit);
void acpigen_write_PSS_package(u32 coreFreq, u32 power, u32 transLat,
u32 busmLat, u32 control, u32 status);