summaryrefslogtreecommitdiff
path: root/src/include/acpi/acpigen_ps2_keybd.h
diff options
context:
space:
mode:
authorCliff Huang <cliff.huang@intel.com>2023-02-18 00:17:26 -0800
committerLean Sheng Tan <sheng.tan@9elements.com>2023-05-16 12:22:32 +0000
commit063a1b83f88bdfc090c60ebdfc111bc942958a1d (patch)
treebc9cc5f9d7b1651d2c98079bcaaf9e8f7e1f16bb /src/include/acpi/acpigen_ps2_keybd.h
parent688350f33d49b1021d9762c82e4df26359e8e5c9 (diff)
acpigen: Add printf-like function for debug string
Generate formatted string and ACPI code to print debug string. For example (with pcie_rp = 1): acpigen_write_debug_sprintf("calling _ON for RP: %u", pcie_rp); generates the following ACPI code: Debug = "calling _ON for RP: 1" With this new function, the following functions are not needed anymore and therefore are removed by this patch. - acpigen_concatenate_string_string() - acpigen_concatenate_string_int() - acpigen_write_debug_concatenate_string_string() - acpigen_write_debug_concatenate_string_int() BRANCH=firmware-brya-14505.B TEST=Add above functions in the acpigen code and check the generated SSDT table after OS boot. Check the debug messages is in the kernel log when /sys/modules/acpi/parameters/aml_debug_output is set to '1'. Change-Id: Id4a42e5854516a22b7bc4559c2ed08680722c5ba Signed-off-by: Cliff Huang <cliff.huang@intel.com> Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73113 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Bora Guvendik <bora.guvendik@intel.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Zhixing Ma <zhixing.ma@intel.com> Reviewed-by: Musse Abdullahi <musse.abdullahi@intel.corp-partner.google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src/include/acpi/acpigen_ps2_keybd.h')
0 files changed, 0 insertions, 0 deletions