diff options
author | Changbin Du <changbin.du@gmail.com> | 2019-04-24 13:52:57 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-04-25 17:07:20 -0400 |
commit | 05000042f33dd8b2afbeedc1d8fd499486d14b0d (patch) | |
tree | b66fba5b24c34f14286ea341503e0790894e33d8 /Documentation/firmware-guide | |
parent | f2dde1ed0f2818405b371c2b65a98fece221b7a0 (diff) |
Documentation: ACPI: move dsd/data-node-references.txt to firmware-guide/acpi and convert to reST
This converts the plain text documentation to reStructuredText format
and adds it to Sphinx TOC tree.
No essential content change.
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/firmware-guide')
-rw-r--r-- | Documentation/firmware-guide/acpi/dsd/data-node-references.rst | 93 | ||||
-rw-r--r-- | Documentation/firmware-guide/acpi/index.rst | 1 |
2 files changed, 94 insertions, 0 deletions
diff --git a/Documentation/firmware-guide/acpi/dsd/data-node-references.rst b/Documentation/firmware-guide/acpi/dsd/data-node-references.rst new file mode 100644 index 000000000000..1351984e767c --- /dev/null +++ b/Documentation/firmware-guide/acpi/dsd/data-node-references.rst | |||
@@ -0,0 +1,93 @@ | |||
1 | .. SPDX-License-Identifier: GPL-2.0 | ||
2 | .. include:: <isonum.txt> | ||
3 | |||
4 | =================================== | ||
5 | Referencing hierarchical data nodes | ||
6 | =================================== | ||
7 | |||
8 | :Copyright: |copy| 2018 Intel Corporation | ||
9 | :Author: Sakari Ailus <sakari.ailus@linux.intel.com> | ||
10 | |||
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. | ||
14 | |||
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 | ||
19 | extension node. | ||
20 | |||
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 | ||
25 | the node. | ||
26 | |||
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 | ||
30 | extension key. | ||
31 | |||
32 | |||
33 | Example | ||
34 | ======= | ||
35 | |||
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. | ||
41 | :: | ||
42 | |||
43 | Device (DEV0) | ||
44 | { | ||
45 | Name (_DSD, Package () { | ||
46 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | ||
47 | Package () { | ||
48 | Package () { "node@0", NOD0 }, | ||
49 | Package () { "node@1", NOD1 }, | ||
50 | } | ||
51 | }) | ||
52 | Name (NOD0, Package() { | ||
53 | ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
54 | Package () { | ||
55 | Package () { "random-property", 3 }, | ||
56 | } | ||
57 | }) | ||
58 | Name (NOD1, Package() { | ||
59 | ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), | ||
60 | Package () { | ||
61 | Package () { "anothernode", ANOD }, | ||
62 | } | ||
63 | }) | ||
64 | Name (ANOD, Package() { | ||
65 | ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
66 | Package () { | ||
67 | Package () { "random-property", 0 }, | ||
68 | } | ||
69 | }) | ||
70 | } | ||
71 | |||
72 | Device (DEV1) | ||
73 | { | ||
74 | Name (_DSD, Package () { | ||
75 | ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
76 | Package () { | ||
77 | Package () { "reference", ^DEV0, "node@1", "anothernode" }, | ||
78 | } | ||
79 | }) | ||
80 | } | ||
81 | |||
82 | Please also see a graph example in :doc:`graph`. | ||
83 | |||
84 | References | ||
85 | ========== | ||
86 | |||
87 | [1] Hierarchical Data Extension UUID For _DSD. | ||
88 | <http://www.uefi.org/sites/default/files/resources/_DSD-hierarchical-data-extension-UUID-v1.1.pdf>, | ||
89 | referenced 2018-07-17. | ||
90 | |||
91 | [2] Device Properties UUID For _DSD. | ||
92 | <http://www.uefi.org/sites/default/files/resources/_DSD-device-properties-UUID.pdf>, | ||
93 | referenced 2016-10-04. | ||
diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/firmware-guide/acpi/index.rst index f81cfbcb6878..6d4e0df4f063 100644 --- a/Documentation/firmware-guide/acpi/index.rst +++ b/Documentation/firmware-guide/acpi/index.rst | |||
@@ -9,6 +9,7 @@ ACPI Support | |||
9 | 9 | ||
10 | namespace | 10 | namespace |
11 | dsd/graph | 11 | dsd/graph |
12 | dsd/data-node-references | ||
12 | enumeration | 13 | enumeration |
13 | osi | 14 | osi |
14 | method-customizing | 15 | method-customizing |