summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaket Dumbre <saket.dumbre@intel.com>2023-04-25 10:52:21 -0700
committerSaket Dumbre <saket.dumbre@intel.com>2023-04-25 10:52:21 -0700
commita597e3b247df72aec0f6e056c95abe2d973ac10c (patch)
tree4d3488ca72feabc16a08de3c853d8f3ea62c3e63
parent884f2848ee9be849e01579bf149682605d56e31b (diff)
downloadacpica-a597e3b247df72aec0f6e056c95abe2d973ac10c.tar.gz
Add support for _DSC as per ACPI 6.5
-rw-r--r--source/common/ahpredef.c1
-rw-r--r--source/include/acpredef.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/source/common/ahpredef.c b/source/common/ahpredef.c
index f4080587f..a1f3a1252 100644
--- a/source/common/ahpredef.c
+++ b/source/common/ahpredef.c
@@ -234,6 +234,7 @@ const AH_PREDEFINED_NAME AslPredefinedInfo[] =
AH_PREDEF ("_DMA", "Direct Memory Access", "Returns device current resources for DMA transactions, and resource field"),
AH_PREDEF ("_DOD", "Display Output Devices", "Enumerate all devices attached to the display adapter"),
AH_PREDEF ("_DOS", "Disable Output Switching", "Sets the display output switching mode"),
+ AH_PREDEF ("_DSC", "Deepest State for Configuration", "Returns the deepest D-state of the device to the OSPM"),
AH_PREDEF ("_DPL", "Device Selection Polarity", "Polarity of Device Selection signal, Resource Descriptor field"),
AH_PREDEF ("_DRS", "Drive Strength", "Drive Strength setting for GPIO connection, Resource Descriptor field"),
AH_PREDEF ("_DSD", "Device-Specific Data", "Returns a list of device property information"),
diff --git a/source/include/acpredef.h b/source/include/acpredef.h
index ca47e7cc0..303dfaec9 100644
--- a/source/include/acpredef.h
+++ b/source/include/acpredef.h
@@ -579,6 +579,9 @@ const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[] =
{{"_DOS", METHOD_1ARGS (ACPI_TYPE_INTEGER),
METHOD_NO_RETURN_VALUE}},
+
+ { {"_DSC", METHOD_0ARGS,
+ METHOD_RETURNS (ACPI_RTYPE_INTEGER)}},
{{"_DSD", METHOD_0ARGS, /* ACPI 6.0 */
METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: 1 Buf, 1 Pkg */