1 .. SPDX-License-Identifier: GPL-2.0
2 .. include:: <isonum.txt>
4 ===================================
5 Referencing hierarchical data nodes
6 ===================================
8 :Copyright: |copy| 2018, 2021 Intel Corporation
9 :Author: Sakari Ailus <sakari.ailus@linux.intel.com>
11 ACPI in general allows referring to device objects in the tree only.
12 Hierarchical data extension nodes may not be referred to directly, hence this
13 document defines a scheme to implement such references.
15 A reference consist of the device object name followed by one or more
16 hierarchical data extension [1] keys. Specifically, the hierarchical data
17 extension node which is referred to by the key shall lie directly under the
18 parent object i.e. either the device object or another hierarchical data
21 The keys in the hierarchical data nodes shall consist of the name of the node,
22 "@" character and the number of the node in hexadecimal notation (without pre-
23 or postfixes). The same ACPI object shall include the _DSD property extension
24 with a property "reg" that shall have the same numerical value as the number of
27 In case a hierarchical data extensions node has no numerical value, then the
28 "reg" property shall be omitted from the ACPI object's _DSD properties and the
29 "@" character and the number shall be omitted from the hierarchical data
36 In the ASL snippet below, the "reference" _DSD property [2] contains a
37 device object reference to DEV0 and under that device object, a
38 hierarchical data extension key "node@1" referring to the NOD1 object
39 and lastly, a hierarchical data extension key "anothernode" referring to
40 the ANOD object which is also the final target node of the reference.
45 Name (_DSD, Package () {
46 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
48 Package () { "node@0", "NOD0" },
49 Package () { "node@1", "NOD1" },
52 Name (NOD0, Package() {
53 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
55 Package () { "reg", 0 },
56 Package () { "random-property", 3 },
59 Name (NOD1, Package() {
60 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
62 Package () { "reg", 1 },
63 Package () { "anothernode", "ANOD" },
66 Name (ANOD, Package() {
67 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
69 Package () { "random-property", 0 },
76 Name (_DSD, Package () {
77 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
80 "reference", Package () {
81 ^DEV0, "node@1", "anothernode"
88 Please also see a graph example in :doc:`graph`.
93 [1] Hierarchical Data Extension UUID For _DSD.
94 <https://www.uefi.org/sites/default/files/resources/_DSD-hierarchical-data-extension-UUID-v1.1.pdf>,
95 referenced 2018-07-17.
97 [2] Device Properties UUID For _DSD.
98 <https://www.uefi.org/sites/default/files/resources/_DSD-device-properties-UUID.pdf>,
99 referenced 2016-10-04.