sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget1/translations/zh_CN/firmware-guide/acpi/namespacemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/zh_TW/firmware-guide/acpi/namespacemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/it_IT/firmware-guide/acpi/namespacemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/ja_JP/firmware-guide/acpi/namespacemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/ko_KR/firmware-guide/acpi/namespacemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/sp_SP/firmware-guide/acpi/namespacemodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhK/var/lib/git/docbuild/linux/Documentation/firmware-guide/acpi/namespace.rsthKubh)}(h4This data file has been placed in the public domain.h]h4This data file has been placed in the public domain.}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhho/srv/docbuild/lib/venvs/build-kernel-docs/lib64/python3.9/site-packages/docutils/parsers/rst/include/isonum.txthKubh)}(hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .h]hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhhhhKubhsubstitution_definition)}(h*.. |amp| unicode:: U+00026 .. AMPERSANDh]h&}hhsbah}(h]h ]h"]ampah$]h&]uh1hhhhKhhhhubh)}(h+.. |apos| unicode:: U+00027 .. APOSTROPHEh]h'}hhsbah}(h]h ]h"]aposah$]h&]uh1hhhhKhhhhubh)}(h).. |ast| unicode:: U+0002A .. ASTERISKh]h*}hhsbah}(h]h ]h"]astah$]h&]uh1hhhhK hhhhubh)}(h+.. |brvbar| unicode:: U+000A6 .. BROKEN BARh]h¦}hjsbah}(h]h ]h"]brvbarah$]h&]uh1hhhhK hhhhubh)}(h0.. |bsol| unicode:: U+0005C .. REVERSE SOLIDUSh]h\}hjsbah}(h]h ]h"]bsolah$]h&]uh1hhhhK hhhhubh)}(h*.. |cent| unicode:: U+000A2 .. CENT SIGNh]h¢}hjsbah}(h]h ]h"]centah$]h&]uh1hhhhK hhhhubh)}(h&.. |colon| unicode:: U+0003A .. COLONh]h:}hj-sbah}(h]h ]h"]colonah$]h&]uh1hhhhK hhhhubh)}(h&.. |comma| unicode:: U+0002C .. COMMAh]h,}hj<sbah}(h]h ]h"]commaah$]h&]uh1hhhhKhhhhubh)}(h... |commat| unicode:: U+00040 .. COMMERCIAL ATh]h@}hjKsbah}(h]h ]h"]commatah$]h&]uh1hhhhKhhhhubh)}(h/.. |copy| unicode:: U+000A9 .. COPYRIGHT SIGNh]h©}hjZsbah}(h]h ]h"]copyah$]h&]uh1hhhhKhhhhubh)}(h... |curren| unicode:: U+000A4 .. CURRENCY SIGNh]h¤}hjisbah}(h]h ]h"]currenah$]h&]uh1hhhhKhhhhubh)}(h0.. |darr| unicode:: U+02193 .. DOWNWARDS ARROWh]h↓}hjxsbah}(h]h ]h"]darrah$]h&]uh1hhhhKhhhhubh)}(h,.. |deg| unicode:: U+000B0 .. DEGREE SIGNh]h°}hjsbah}(h]h ]h"]degah$]h&]uh1hhhhKhhhhubh)}(h... |divide| unicode:: U+000F7 .. DIVISION SIGNh]h÷}hjsbah}(h]h ]h"]divideah$]h&]uh1hhhhKhhhhubh)}(h,.. |dollar| unicode:: U+00024 .. DOLLAR SIGNh]h$}hjsbah}(h]h ]h"]dollarah$]h&]uh1hhhhKhhhhubh)}(h,.. |equals| unicode:: U+0003D .. EQUALS SIGNh]h=}hjsbah}(h]h ]h"]equalsah$]h&]uh1hhhhKhhhhubh)}(h1.. |excl| unicode:: U+00021 .. EXCLAMATION MARKh]h!}hjsbah}(h]h ]h"]exclah$]h&]uh1hhhhKhhhhubh)}(h9.. |frac12| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjsbah}(h]h ]h"]frac12ah$]h&]uh1hhhhKhhhhubh)}(h<.. |frac14| unicode:: U+000BC .. VULGAR FRACTION ONE QUARTERh]h¼}hjsbah}(h]h ]h"]frac14ah$]h&]uh1hhhhKhhhhubh)}(h;.. |frac18| unicode:: U+0215B .. VULGAR FRACTION ONE EIGHTHh]h⅛}hjsbah}(h]h ]h"]frac18ah$]h&]uh1hhhhKhhhhubh)}(h?.. |frac34| unicode:: U+000BE .. VULGAR FRACTION THREE QUARTERSh]h¾}hjsbah}(h]h ]h"]frac34ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac38| unicode:: U+0215C .. VULGAR FRACTION THREE EIGHTHSh]h⅜}hjsbah}(h]h ]h"]frac38ah$]h&]uh1hhhhKhhhhubh)}(h=.. |frac58| unicode:: U+0215D .. VULGAR FRACTION FIVE EIGHTHSh]h⅝}hjsbah}(h]h ]h"]frac58ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac78| unicode:: U+0215E .. VULGAR FRACTION SEVEN EIGHTHSh]h⅞}hj,sbah}(h]h ]h"]frac78ah$]h&]uh1hhhhKhhhhubh)}(h2.. |gt| unicode:: U+0003E .. GREATER-THAN SIGNh]h>}hj;sbah}(h]h ]h"]gtah$]h&]uh1hhhhKhhhhubh)}(h9.. |half| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjJsbah}(h]h ]h"]halfah$]h&]uh1hhhhK hhhhubh)}(h/.. |horbar| unicode:: U+02015 .. HORIZONTAL BARh]h―}hjYsbah}(h]h ]h"]horbarah$]h&]uh1hhhhK!hhhhubh)}(h'.. |hyphen| unicode:: U+02010 .. HYPHENh]h‐}hjhsbah}(h]h ]h"]hyphenah$]h&]uh1hhhhK"hhhhubh)}(h:.. |iexcl| unicode:: U+000A1 .. INVERTED EXCLAMATION MARKh]h¡}hjwsbah}(h]h ]h"]iexclah$]h&]uh1hhhhK#hhhhubh)}(h7.. |iquest| unicode:: U+000BF .. INVERTED QUESTION MARKh]h¿}hjsbah}(h]h ]h"]iquestah$]h&]uh1hhhhK$hhhhubh)}(hJ.. |laquo| unicode:: U+000AB .. LEFT-POINTING DOUBLE ANGLE QUOTATION MARKh]h«}hjsbah}(h]h ]h"]laquoah$]h&]uh1hhhhK%hhhhubh)}(h0.. |larr| unicode:: U+02190 .. LEFTWARDS ARROWh]h←}hjsbah}(h]h ]h"]larrah$]h&]uh1hhhhK&hhhhubh)}(h3.. |lcub| unicode:: U+0007B .. LEFT CURLY BRACKETh]h{}hjsbah}(h]h ]h"]lcubah$]h&]uh1hhhhK'hhhhubh)}(h;.. |ldquo| unicode:: U+0201C .. LEFT DOUBLE QUOTATION MARKh]h“}hjsbah}(h]h ]h"]ldquoah$]h&]uh1hhhhK(hhhhubh)}(h).. |lowbar| unicode:: U+0005F .. LOW LINEh]h_}hjsbah}(h]h ]h"]lowbarah$]h&]uh1hhhhK)hhhhubh)}(h1.. |lpar| unicode:: U+00028 .. LEFT PARENTHESISh]h(}hjsbah}(h]h ]h"]lparah$]h&]uh1hhhhK*hhhhubh)}(h4.. |lsqb| unicode:: U+0005B .. LEFT SQUARE BRACKETh]h[}hjsbah}(h]h ]h"]lsqbah$]h&]uh1hhhhK+hhhhubh)}(h;.. |lsquo| unicode:: U+02018 .. LEFT SINGLE QUOTATION MARKh]h‘}hjsbah}(h]h ]h"]lsquoah$]h&]uh1hhhhK,hhhhubh)}(h/.. |lt| unicode:: U+0003C .. LESS-THAN SIGNh]h<}hj sbah}(h]h ]h"]ltah$]h&]uh1hhhhK-hhhhubh)}(h+.. |micro| unicode:: U+000B5 .. MICRO SIGNh]hµ}hjsbah}(h]h ]h"]microah$]h&]uh1hhhhK.hhhhubh)}(h+.. |middot| unicode:: U+000B7 .. MIDDLE DOTh]h·}hj+sbah}(h]h ]h"]middotah$]h&]uh1hhhhK/hhhhubh)}(h/.. |nbsp| unicode:: U+000A0 .. NO-BREAK SPACEh]h }hj:sbah}(h]h ]h"]nbspah$]h&]uh1hhhhK0hhhhubh)}(h).. |not| unicode:: U+000AC .. NOT SIGNh]h¬}hjIsbah}(h]h ]h"]notah$]h&]uh1hhhhK1hhhhubh)}(h,.. |num| unicode:: U+00023 .. NUMBER SIGNh]h#}hjXsbah}(h]h ]h"]numah$]h&]uh1hhhhK2hhhhubh)}(h).. |ohm| unicode:: U+02126 .. OHM SIGNh]hΩ}hjgsbah}(h]h ]h"]ohmah$]h&]uh1hhhhK3hhhhubh)}(h;.. |ordf| unicode:: U+000AA .. FEMININE ORDINAL INDICATORh]hª}hjvsbah}(h]h ]h"]ordfah$]h&]uh1hhhhK4hhhhubh)}(h<.. |ordm| unicode:: U+000BA .. MASCULINE ORDINAL INDICATORh]hº}hjsbah}(h]h ]h"]ordmah$]h&]uh1hhhhK5hhhhubh)}(h-.. |para| unicode:: U+000B6 .. PILCROW SIGNh]h¶}hjsbah}(h]h ]h"]paraah$]h&]uh1hhhhK6hhhhubh)}(h-.. |percnt| unicode:: U+00025 .. PERCENT SIGNh]h%}hjsbah}(h]h ]h"]percntah$]h&]uh1hhhhK7hhhhubh)}(h*.. |period| unicode:: U+0002E .. FULL STOPh]h.}hjsbah}(h]h ]h"]periodah$]h&]uh1hhhhK8hhhhubh)}(h*.. |plus| unicode:: U+0002B .. PLUS SIGNh]h+}hjsbah}(h]h ]h"]plusah$]h&]uh1hhhhK9hhhhubh)}(h0.. |plusmn| unicode:: U+000B1 .. PLUS-MINUS SIGNh]h±}hjsbah}(h]h ]h"]plusmnah$]h&]uh1hhhhK:hhhhubh)}(h+.. |pound| unicode:: U+000A3 .. POUND SIGNh]h£}hjsbah}(h]h ]h"]poundah$]h&]uh1hhhhK;hhhhubh)}(h... |quest| unicode:: U+0003F .. QUESTION MARKh]h?}hjsbah}(h]h ]h"]questah$]h&]uh1hhhhKhhhhubh)}(h1.. |rarr| unicode:: U+02192 .. RIGHTWARDS ARROWh]h→}hjsbah}(h]h ]h"]rarrah$]h&]uh1hhhhK?hhhhubh)}(h4.. |rcub| unicode:: U+0007D .. RIGHT CURLY BRACKETh]h}}hj*sbah}(h]h ]h"]rcubah$]h&]uh1hhhhK@hhhhubh)}(h<.. |rdquo| unicode:: U+0201D .. RIGHT DOUBLE QUOTATION MARKh]h”}hj9sbah}(h]h ]h"]rdquoah$]h&]uh1hhhhKAhhhhubh)}(h0.. |reg| unicode:: U+000AE .. REGISTERED SIGNh]h®}hjHsbah}(h]h ]h"]regah$]h&]uh1hhhhKBhhhhubh)}(h2.. |rpar| unicode:: U+00029 .. RIGHT PARENTHESISh]h)}hjWsbah}(h]h ]h"]rparah$]h&]uh1hhhhKChhhhubh)}(h5.. |rsqb| unicode:: U+0005D .. RIGHT SQUARE BRACKETh]h]}hjfsbah}(h]h ]h"]rsqbah$]h&]uh1hhhhKDhhhhubh)}(h<.. |rsquo| unicode:: U+02019 .. RIGHT SINGLE QUOTATION MARKh]h’}hjusbah}(h]h ]h"]rsquoah$]h&]uh1hhhhKEhhhhubh)}(h-.. |sect| unicode:: U+000A7 .. SECTION SIGNh]h§}hjsbah}(h]h ]h"]sectah$]h&]uh1hhhhKFhhhhubh)}(h*.. |semi| unicode:: U+0003B .. SEMICOLONh]h;}hjsbah}(h]h ]h"]semiah$]h&]uh1hhhhKGhhhhubh)}(h,.. |shy| unicode:: U+000AD .. SOFT HYPHENh]h­}hjsbah}(h]h ]h"]shyah$]h&]uh1hhhhKHhhhhubh)}(h(.. |sol| unicode:: U+0002F .. SOLIDUSh]h/}hjsbah}(h]h ]h"]solah$]h&]uh1hhhhKIhhhhubh)}(h,.. |sung| unicode:: U+0266A .. EIGHTH NOTEh]h♪}hjsbah}(h]h ]h"]sungah$]h&]uh1hhhhKJhhhhubh)}(h0.. |sup1| unicode:: U+000B9 .. SUPERSCRIPT ONEh]h¹}hjsbah}(h]h ]h"]sup1ah$]h&]uh1hhhhKKhhhhubh)}(h0.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWOh]h²}hjsbah}(h]h ]h"]sup2ah$]h&]uh1hhhhKLhhhhubh)}(h2.. |sup3| unicode:: U+000B3 .. SUPERSCRIPT THREEh]h³}hjsbah}(h]h ]h"]sup3ah$]h&]uh1hhhhKMhhhhubh)}(h4.. |times| unicode:: U+000D7 .. MULTIPLICATION SIGNh]h×}hjsbah}(h]h ]h"]timesah$]h&]uh1hhhhKNhhhhubh)}(h0.. |trade| unicode:: U+02122 .. TRADE MARK SIGNh]h™}hj sbah}(h]h ]h"]tradeah$]h&]uh1hhhhKOhhhhubh)}(h... |uarr| unicode:: U+02191 .. UPWARDS ARROWh]h↑}hjsbah}(h]h ]h"]uarrah$]h&]uh1hhhhKPhhhhubh)}(h... |verbar| unicode:: U+0007C .. VERTICAL LINEh]h|}hj)sbah}(h]h ]h"]verbarah$]h&]uh1hhhhKQhhhhubh)}(h*.. |yen| unicode:: U+000A5 .. YEN SIGN h]h¥}hj8sbah}(h]h ]h"]yenah$]h&]uh1hhhhKRhhhhubhsection)}(hhh](htitle)}(h3ACPI Device Tree - Representation of ACPI Namespaceh]h3ACPI Device Tree - Representation of ACPI Namespace}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhhhhhKubh field_list)}(hhh](hfield)}(hhh](h field_name)}(h Copyrighth]h Copyright}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjchhhKubh field_body)}(h|copy| 2013, Intel Corporation h]h paragraph)}(h|copy| 2013, Intel Corporationh](h©}(hj~hhhNhNubh 2013, Intel Corporation}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhjxubah}(h]h ]h"]h$]h&]uh1jvhjcubeh}(h]h ]h"]h$]h&]uh1jahhhKhj^hhubjb)}(hhh](jg)}(hAuthorh]hAuthor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjhhhKubjw)}(hLv Zheng h]j})}(hLv Zheng h](h Lv Zheng <}(hjhhhNhNubh reference)}(hlv.zheng@intel.comh]hlv.zheng@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:lv.zheng@intel.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK hjubah}(h]h ]h"]h$]h&]uh1jvhjubeh}(h]h ]h"]h$]h&]uh1jahhhK hj^hhubjb)}(hhh](jg)}(hCredith]hCredit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjhhhKubjw)}(hlThanks for the help from Zhang Rui and Rafael J.Wysocki . h]j})}(hkThanks for the help from Zhang Rui and Rafael J.Wysocki .h](h$Thanks for the help from Zhang Rui <}(hjhhhNhNubj)}(hrui.zhang@intel.comh]hrui.zhang@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:rui.zhang@intel.comuh1jhjubh> and Rafael J.Wysocki <}(hjhhhNhNubj)}(hrafael.j.wysocki@intel.comh]hrafael.j.wysocki@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refuri!mailto:rafael.j.wysocki@intel.comuh1jhjubh>.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK hjubah}(h]h ]h"]h$]h&]uh1jvhjubeh}(h]h ]h"]h$]h&]uh1jahhhK hj^hhubeh}(h]h ]h"]h$]h&]uh1j\hjIhhhhhKubjH)}(hhh](jM)}(hAbstracth]hAbstract}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>hhhhhKubj})}(hX#The Linux ACPI subsystem converts ACPI namespace objects into a Linux device tree under the /sys/devices/LNXSYSTM:00 and updates it upon receiving ACPI hotplug notification events. For each device object in this hierarchy there is a corresponding symbolic link in the /sys/bus/acpi/devices.h]hX#The Linux ACPI subsystem converts ACPI namespace objects into a Linux device tree under the /sys/devices/LNXSYSTM:00 and updates it upon receiving ACPI hotplug notification events. For each device object in this hierarchy there is a corresponding symbolic link in the /sys/bus/acpi/devices.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj>hhubj})}(h@This document illustrates the structure of the ACPI device tree.h]h@This document illustrates the structure of the ACPI device tree.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj>hhubeh}(h]abstractah ]h"]abstractah$]h&]uh1jGhjIhhhhhKubjH)}(hhh](jM)}(hACPI Definition Blocksh]hACPI Definition Blocks}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjshhhhhKubj})}(hX'The ACPI firmware sets up RSDP (Root System Description Pointer) in the system memory address space pointing to the XSDT (Extended System Description Table). The XSDT always points to the FADT (Fixed ACPI Description Table) using its first entry, the data within the FADT includes various fixed-length entries that describe fixed ACPI features of the hardware. The FADT contains a pointer to the DSDT (Differentiated System Description Table). The XSDT also contains entries pointing to possibly multiple SSDTs (Secondary System Description Table).h]hX'The ACPI firmware sets up RSDP (Root System Description Pointer) in the system memory address space pointing to the XSDT (Extended System Description Table). The XSDT always points to the FADT (Fixed ACPI Description Table) using its first entry, the data within the FADT includes various fixed-length entries that describe fixed ACPI features of the hardware. The FADT contains a pointer to the DSDT (Differentiated System Description Table). The XSDT also contains entries pointing to possibly multiple SSDTs (Secondary System Description Table).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjshhubj})}(hXThe DSDT and SSDT data is organized in data structures called definition blocks that contain definitions of various objects, including ACPI control methods, encoded in AML (ACPI Machine Language). The data block of the DSDT along with the contents of SSDTs represents a hierarchical data structure called the ACPI namespace whose topology reflects the structure of the underlying hardware platform.h]hXThe DSDT and SSDT data is organized in data structures called definition blocks that contain definitions of various objects, including ACPI control methods, encoded in AML (ACPI Machine Language). The data block of the DSDT along with the contents of SSDTs represents a hierarchical data structure called the ACPI namespace whose topology reflects the structure of the underlying hardware platform.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK&hjshhubj})}(hrThe relationships between ACPI System Definition Tables described above are illustrated in the following diagram::h]hqThe relationships between ACPI System Definition Tables described above are illustrated in the following diagram:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK-hjshhubh literal_block)}(hX:+---------+ +-------+ +--------+ +------------------------+ | RSDP | +->| XSDT | +->| FADT | | +-------------------+ | +---------+ | +-------+ | +--------+ +-|->| DSDT | | | Pointer | | | Entry |-+ | ...... | | | +-------------------+ | +---------+ | +-------+ | X_DSDT |--+ | | Definition Blocks | | | Pointer |-+ | ..... | | ...... | | +-------------------+ | +---------+ +-------+ +--------+ | +-------------------+ | | Entry |------------------|->| SSDT | | +- - - -+ | +-------------------| | | Entry | - - - - - - - -+ | | Definition Blocks | | +- - - -+ | | +-------------------+ | | | +- - - - - - - - - -+ | +-|->| SSDT | | | +-------------------+ | | | Definition Blocks | | | +- - - - - - - - - -+ | +------------------------+ | OSPM Loading | \|/ +----------------+ | ACPI Namespace | +----------------+ Figure 1. ACPI Definition Blocksh]hX:+---------+ +-------+ +--------+ +------------------------+ | RSDP | +->| XSDT | +->| FADT | | +-------------------+ | +---------+ | +-------+ | +--------+ +-|->| DSDT | | | Pointer | | | Entry |-+ | ...... | | | +-------------------+ | +---------+ | +-------+ | X_DSDT |--+ | | Definition Blocks | | | Pointer |-+ | ..... | | ...... | | +-------------------+ | +---------+ +-------+ +--------+ | +-------------------+ | | Entry |------------------|->| SSDT | | +- - - -+ | +-------------------| | | Entry | - - - - - - - -+ | | Definition Blocks | | +- - - -+ | | +-------------------+ | | | +- - - - - - - - - -+ | +-|->| SSDT | | | +-------------------+ | | | Definition Blocks | | | +- - - - - - - - - -+ | +------------------------+ | OSPM Loading | \|/ +----------------+ | ACPI Namespace | +----------------+ Figure 1. ACPI Definition Blocks}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhK0hjshhubhnote)}(hRSDP can also contain a pointer to the RSDT (Root System Description Table). Platforms provide RSDT to enable compatibility with ACPI 1.0 operating systems. The OS is expected to use XSDT, if present.h]j})}(hRSDP can also contain a pointer to the RSDT (Root System Description Table). Platforms provide RSDT to enable compatibility with ACPI 1.0 operating systems. The OS is expected to use XSDT, if present.h]hRSDP can also contain a pointer to the RSDT (Root System Description Table). Platforms provide RSDT to enable compatibility with ACPI 1.0 operating systems. The OS is expected to use XSDT, if present.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKJhjubah}(h]h ]h"]h$]h&]uh1jhjshhhhhNubeh}(h]acpi-definition-blocksah ]h"]acpi definition blocksah$]h&]uh1jGhjIhhhhhKubjH)}(hhh](jM)}(hExample ACPI Namespaceh]hExample ACPI Namespace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhKQubj})}(hAll definition blocks are loaded into a single namespace. The namespace is a hierarchy of objects identified by names and paths. The following naming conventions apply to object names in the ACPI namespace:h]hAll definition blocks are loaded into a single namespace. The namespace is a hierarchy of objects identified by names and paths. The following naming conventions apply to object names in the ACPI namespace:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKShjhhubh block_quote)}(hX1. All names are 32 bits long. 2. The first byte of a name must be one of 'A' - 'Z', '_'. 3. Each of the remaining bytes of a name must be one of 'A' - 'Z', '0' - '9', '_'. 4. Names starting with '_' are reserved by the ACPI specification. 5. The '\' symbol represents the root of the namespace (i.e. names prepended with '\' are relative to the namespace root). 6. The '^' symbol represents the parent of the current namespace node (i.e. names prepended with '^' are relative to the parent of the current namespace node). h]henumerated_list)}(hhh](h list_item)}(hAll names are 32 bits long.h]j})}(hjh]hAll names are 32 bits long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKXhj ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h7The first byte of a name must be one of 'A' - 'Z', '_'.h]j})}(hj%h]hCThe first byte of a name must be one of ‘A’ - ‘Z’, ‘_’.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKYhj#ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hOEach of the remaining bytes of a name must be one of 'A' - 'Z', '0' - '9', '_'.h]j})}(hOEach of the remaining bytes of a name must be one of 'A' - 'Z', '0' - '9', '_'.h]hcEach of the remaining bytes of a name must be one of ‘A’ - ‘Z’, ‘0’ - ‘9’, ‘_’.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKZhj:ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h?Names starting with '_' are reserved by the ACPI specification.h]j})}(hjTh]hCNames starting with ‘_’ are reserved by the ACPI specification.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK\hjRubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hwThe '\' symbol represents the root of the namespace (i.e. names prepended with '\' are relative to the namespace root).h]j})}(hwThe '\' symbol represents the root of the namespace (i.e. names prepended with '\' are relative to the namespace root).h]h{The ‘' symbol represents the root of the namespace (i.e. names prepended with ‘' are relative to the namespace root).}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK]hjiubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hThe '^' symbol represents the parent of the current namespace node (i.e. names prepended with '^' are relative to the parent of the current namespace node). h]j})}(hThe '^' symbol represents the parent of the current namespace node (i.e. names prepended with '^' are relative to the parent of the current namespace node).h]hThe ‘^’ symbol represents the parent of the current namespace node (i.e. names prepended with ‘^’ are relative to the parent of the current namespace node).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK_hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKXhjhhubj})}(h2The figure below shows an example ACPI namespace::h]h1The figure below shows an example ACPI namespace:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKchjhhubj)}(hX +------+ | \ | Root +------+ | | +------+ +-| _PR | Scope(_PR): the processor namespace | +------+ | | | | +------+ | +-| CPU0 | Processor(CPU0): the first processor | +------+ | | +------+ +-| _SB | Scope(_SB): the system bus namespace | +------+ | | | | +------+ | +-| LID0 | Device(LID0); the lid device | | +------+ | | | | | | +------+ | | +-| _HID | Name(_HID, "PNP0C0D"): the hardware ID | | | +------+ | | | | | | +------+ | | +-| _STA | Method(_STA): the status control method | | +------+ | | | | +------+ | +-| PCI0 | Device(PCI0); the PCI root bridge | +------+ | | | | +------+ | +-| _HID | Name(_HID, "PNP0A08"): the hardware ID | | +------+ | | | | +------+ | +-| _CID | Name(_CID, "PNP0A03"): the compatible ID | | +------+ | | | | +------+ | +-| RP03 | Scope(RP03): the PCI0 power scope | | +------+ | | | | | | +------+ | | +-| PXP3 | PowerResource(PXP3): the PCI0 power resource | | +------+ | | | | +------+ | +-| GFX0 | Device(GFX0): the graphics adapter | +------+ | | | | +------+ | +-| _ADR | Name(_ADR, 0x00020000): the PCI bus address | | +------+ | | | | +------+ | +-| DD01 | Device(DD01): the LCD output device | +------+ | | | | +------+ | +-| _BCL | Method(_BCL): the backlight control method | +------+ | | +------+ +-| _TZ | Scope(_TZ): the thermal zone namespace | +------+ | | | | +------+ | +-| FN00 | PowerResource(FN00): the FAN0 power resource | | +------+ | | | | +------+ | +-| FAN0 | Device(FAN0): the FAN0 cooling device | | +------+ | | | | | | +------+ | | +-| _HID | Name(_HID, "PNP0A0B"): the hardware ID | | +------+ | | | | +------+ | +-| TZ00 | ThermalZone(TZ00); the FAN thermal zone | +------+ | | +------+ +-| _GPE | Scope(_GPE): the GPE namespace +------+ Figure 2. Example ACPI Namespaceh]hX +------+ | \ | Root +------+ | | +------+ +-| _PR | Scope(_PR): the processor namespace | +------+ | | | | +------+ | +-| CPU0 | Processor(CPU0): the first processor | +------+ | | +------+ +-| _SB | Scope(_SB): the system bus namespace | +------+ | | | | +------+ | +-| LID0 | Device(LID0); the lid device | | +------+ | | | | | | +------+ | | +-| _HID | Name(_HID, "PNP0C0D"): the hardware ID | | | +------+ | | | | | | +------+ | | +-| _STA | Method(_STA): the status control method | | +------+ | | | | +------+ | +-| PCI0 | Device(PCI0); the PCI root bridge | +------+ | | | | +------+ | +-| _HID | Name(_HID, "PNP0A08"): the hardware ID | | +------+ | | | | +------+ | +-| _CID | Name(_CID, "PNP0A03"): the compatible ID | | +------+ | | | | +------+ | +-| RP03 | Scope(RP03): the PCI0 power scope | | +------+ | | | | | | +------+ | | +-| PXP3 | PowerResource(PXP3): the PCI0 power resource | | +------+ | | | | +------+ | +-| GFX0 | Device(GFX0): the graphics adapter | +------+ | | | | +------+ | +-| _ADR | Name(_ADR, 0x00020000): the PCI bus address | | +------+ | | | | +------+ | +-| DD01 | Device(DD01): the LCD output device | +------+ | | | | +------+ | +-| _BCL | Method(_BCL): the backlight control method | +------+ | | +------+ +-| _TZ | Scope(_TZ): the thermal zone namespace | +------+ | | | | +------+ | +-| FN00 | PowerResource(FN00): the FAN0 power resource | | +------+ | | | | +------+ | +-| FAN0 | Device(FAN0): the FAN0 cooling device | | +------+ | | | | | | +------+ | | +-| _HID | Name(_HID, "PNP0A0B"): the hardware ID | | +------+ | | | | +------+ | +-| TZ00 | ThermalZone(TZ00); the FAN thermal zone | +------+ | | +------+ +-| _GPE | Scope(_GPE): the GPE namespace +------+ Figure 2. Example ACPI Namespace}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKehjhhubeh}(h]example-acpi-namespaceah ]h"]example acpi namespaceah$]h&]uh1jGhjIhhhhhKQubjH)}(hhh](jM)}(hLinux ACPI Device Objectsh]hLinux ACPI Device Objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhKubj})}(hX(The Linux kernel's core ACPI subsystem creates struct acpi_device objects for ACPI namespace objects representing devices, power resources processors, thermal zones. Those objects are exported to user space via sysfs as directories in the subtree under /sys/devices/LNXSYSTM:00. The format of their names is , where 'bus_id' refers to the ACPI namespace representation of the given object and 'instance' is used for distinguishing different object of the same 'bus_id' (it is two-digit decimal representation of an unsigned integer).h]hX6The Linux kernel’s core ACPI subsystem creates struct acpi_device objects for ACPI namespace objects representing devices, power resources processors, thermal zones. Those objects are exported to user space via sysfs as directories in the subtree under /sys/devices/LNXSYSTM:00. The format of their names is , where ‘bus_id’ refers to the ACPI namespace representation of the given object and ‘instance’ is used for distinguishing different object of the same ‘bus_id’ (it is two-digit decimal representation of an unsigned integer).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubj})}(hoThe value of 'bus_id' depends on the type of the object whose name it is part of as listed in the table below::h]hrThe value of ‘bus_id’ depends on the type of the object whose name it is part of as listed in the table below:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubj)}(hX\+---+-----------------+-------+----------+ | | Object/Feature | Table | bus_id | +---+-----------------+-------+----------+ | N | Root | xSDT | LNXSYSTM | +---+-----------------+-------+----------+ | N | Device | xSDT | _HID | +---+-----------------+-------+----------+ | N | Processor | xSDT | LNXCPU | +---+-----------------+-------+----------+ | N | ThermalZone | xSDT | LNXTHERM | +---+-----------------+-------+----------+ | N | PowerResource | xSDT | LNXPOWER | +---+-----------------+-------+----------+ | N | Other Devices | xSDT | device | +---+-----------------+-------+----------+ | F | PWR_BUTTON | FADT | LNXPWRBN | +---+-----------------+-------+----------+ | F | SLP_BUTTON | FADT | LNXSLPBN | +---+-----------------+-------+----------+ | M | Video Extension | xSDT | LNXVIDEO | +---+-----------------+-------+----------+ | M | ATA Controller | xSDT | LNXIOBAY | +---+-----------------+-------+----------+ | M | Docking Station | xSDT | LNXDOCK | +---+-----------------+-------+----------+ Table 1. ACPI Namespace Objects Mappingh]hX\+---+-----------------+-------+----------+ | | Object/Feature | Table | bus_id | +---+-----------------+-------+----------+ | N | Root | xSDT | LNXSYSTM | +---+-----------------+-------+----------+ | N | Device | xSDT | _HID | +---+-----------------+-------+----------+ | N | Processor | xSDT | LNXCPU | +---+-----------------+-------+----------+ | N | ThermalZone | xSDT | LNXTHERM | +---+-----------------+-------+----------+ | N | PowerResource | xSDT | LNXPOWER | +---+-----------------+-------+----------+ | N | Other Devices | xSDT | device | +---+-----------------+-------+----------+ | F | PWR_BUTTON | FADT | LNXPWRBN | +---+-----------------+-------+----------+ | F | SLP_BUTTON | FADT | LNXSLPBN | +---+-----------------+-------+----------+ | M | Video Extension | xSDT | LNXVIDEO | +---+-----------------+-------+----------+ | M | ATA Controller | xSDT | LNXIOBAY | +---+-----------------+-------+----------+ | M | Docking Station | xSDT | LNXDOCK | +---+-----------------+-------+----------+ Table 1. ACPI Namespace Objects Mapping}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubj})}(hThe following rules apply when creating struct acpi_device objects on the basis of the contents of ACPI System Description Tables (as indicated by the letter in the first column and the notation in the second column of the table above):h]hThe following rules apply when creating struct acpi_device objects on the basis of the contents of ACPI System Description Tables (as indicated by the letter in the first column and the notation in the second column of the table above):}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubj)}(hXN: The object's source is an ACPI namespace node (as indicated by the named object's type in the second column). In that case the object's directory in sysfs will contain the 'path' attribute whose value is the full path to the node from the namespace root. F: The struct acpi_device object is created for a fixed hardware feature (as indicated by the fixed feature flag's name in the second column), so its sysfs directory will not contain the 'path' attribute. M: The struct acpi_device object is created for an ACPI namespace node with specific control methods (as indicated by the ACPI defined device's type in the second column). The 'path' attribute containing its namespace path will be present in its sysfs directory. For example, if the _BCL method is present for an ACPI namespace node, a struct acpi_device object with LNXVIDEO 'bus_id' will be created for it. h]hdefinition_list)}(hhh](hdefinition_list_item)}(hXN: The object's source is an ACPI namespace node (as indicated by the named object's type in the second column). In that case the object's directory in sysfs will contain the 'path' attribute whose value is the full path to the node from the namespace root.h](hterm)}(hN:h]hN:}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j&hhhKhj"ubh definition)}(hhh]j})}(hThe object's source is an ACPI namespace node (as indicated by the named object's type in the second column). In that case the object's directory in sysfs will contain the 'path' attribute whose value is the full path to the node from the namespace root.h]hX The object’s source is an ACPI namespace node (as indicated by the named object’s type in the second column). In that case the object’s directory in sysfs will contain the ‘path’ attribute whose value is the full path to the node from the namespace root.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj8ubah}(h]h ]h"]h$]h&]uh1j6hj"ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj!)}(hF: The struct acpi_device object is created for a fixed hardware feature (as indicated by the fixed feature flag's name in the second column), so its sysfs directory will not contain the 'path' attribute.h](j')}(hF:h]hF:}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j&hhhKhjUubj7)}(hhh]j})}(hThe struct acpi_device object is created for a fixed hardware feature (as indicated by the fixed feature flag's name in the second column), so its sysfs directory will not contain the 'path' attribute.h]hThe struct acpi_device object is created for a fixed hardware feature (as indicated by the fixed feature flag’s name in the second column), so its sysfs directory will not contain the ‘path’ attribute.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjgubah}(h]h ]h"]h$]h&]uh1j6hjUubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj!)}(hXM: The struct acpi_device object is created for an ACPI namespace node with specific control methods (as indicated by the ACPI defined device's type in the second column). The 'path' attribute containing its namespace path will be present in its sysfs directory. For example, if the _BCL method is present for an ACPI namespace node, a struct acpi_device object with LNXVIDEO 'bus_id' will be created for it. h](j')}(hM:h]hM:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j&hhhMhjubj7)}(hhh]j})}(hXThe struct acpi_device object is created for an ACPI namespace node with specific control methods (as indicated by the ACPI defined device's type in the second column). The 'path' attribute containing its namespace path will be present in its sysfs directory. For example, if the _BCL method is present for an ACPI namespace node, a struct acpi_device object with LNXVIDEO 'bus_id' will be created for it.h]hXThe struct acpi_device object is created for an ACPI namespace node with specific control methods (as indicated by the ACPI defined device’s type in the second column). The ‘path’ attribute containing its namespace path will be present in its sysfs directory. For example, if the _BCL method is present for an ACPI namespace node, a struct acpi_device object with LNXVIDEO ‘bus_id’ will be created for it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj})}(hThe third column of the above table indicates which ACPI System Description Tables contain information used for the creation of the struct acpi_device objects represented by the given row (xSDT means DSDT or SSDT).h]hThe third column of the above table indicates which ACPI System Description Tables contain information used for the creation of the struct acpi_device objects represented by the given row (xSDT means DSDT or SSDT).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hmThe fourth column of the above table indicates the 'bus_id' generation rule of the struct acpi_device object:h]hqThe fourth column of the above table indicates the ‘bus_id’ generation rule of the struct acpi_device object:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(hX_HID: _HID in the last column of the table means that the object's bus_id is derived from the _HID/_CID identification objects present under the corresponding ACPI namespace node. The object's sysfs directory will then contain the 'hid' and 'modalias' attributes that can be used to retrieve the _HID and _CIDs of that object. LNXxxxxx: The 'modalias' attribute is also present for struct acpi_device objects having bus_id of the "LNXxxxxx" form (pseudo devices), in which cases it contains the bus_id string itself. device: 'device' in the last column of the table indicates that the object's bus_id cannot be determined from _HID/_CID of the corresponding ACPI namespace node, although that object represents a device (for example, it may be a PCI device with _ADR defined and without _HID or _CID). In that case the string 'device' will be used as the object's bus_id. h]j)}(hhh](j!)}(hXF_HID: _HID in the last column of the table means that the object's bus_id is derived from the _HID/_CID identification objects present under the corresponding ACPI namespace node. The object's sysfs directory will then contain the 'hid' and 'modalias' attributes that can be used to retrieve the _HID and _CIDs of that object.h](j')}(h_HID:h]h_HID:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j&hhhMhjubj7)}(hhh]j})}(hX@_HID in the last column of the table means that the object's bus_id is derived from the _HID/_CID identification objects present under the corresponding ACPI namespace node. The object's sysfs directory will then contain the 'hid' and 'modalias' attributes that can be used to retrieve the _HID and _CIDs of that object.h]hXL_HID in the last column of the table means that the object’s bus_id is derived from the _HID/_CID identification objects present under the corresponding ACPI namespace node. The object’s sysfs directory will then contain the ‘hid’ and ‘modalias’ attributes that can be used to retrieve the _HID and _CIDs of that object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM hjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj!)}(hLNXxxxxx: The 'modalias' attribute is also present for struct acpi_device objects having bus_id of the "LNXxxxxx" form (pseudo devices), in which cases it contains the bus_id string itself.h](j')}(h LNXxxxxx:h]h LNXxxxxx:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j&hhhMhj ubj7)}(hhh]j})}(hThe 'modalias' attribute is also present for struct acpi_device objects having bus_id of the "LNXxxxxx" form (pseudo devices), in which cases it contains the bus_id string itself.h]hThe ‘modalias’ attribute is also present for struct acpi_device objects having bus_id of the “LNXxxxxx” form (pseudo devices), in which cases it contains the bus_id string itself.}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj# ubah}(h]h ]h"]h$]h&]uh1j6hj ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj!)}(hXedevice: 'device' in the last column of the table indicates that the object's bus_id cannot be determined from _HID/_CID of the corresponding ACPI namespace node, although that object represents a device (for example, it may be a PCI device with _ADR defined and without _HID or _CID). In that case the string 'device' will be used as the object's bus_id. h](j')}(hdevice:h]hdevice:}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1j&hhhMhj@ ubj7)}(hhh]j})}(hX['device' in the last column of the table indicates that the object's bus_id cannot be determined from _HID/_CID of the corresponding ACPI namespace node, although that object represents a device (for example, it may be a PCI device with _ADR defined and without _HID or _CID). In that case the string 'device' will be used as the object's bus_id.h]hXg‘device’ in the last column of the table indicates that the object’s bus_id cannot be determined from _HID/_CID of the corresponding ACPI namespace node, although that object represents a device (for example, it may be a PCI device with _ADR defined and without _HID or _CID). In that case the string ‘device’ will be used as the object’s bus_id.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjR ubah}(h]h ]h"]h$]h&]uh1j6hj@ ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhM hjhhubeh}(h]linux-acpi-device-objectsah ]h"]linux acpi device objectsah$]h&]uh1jGhjIhhhhhKubjH)}(hhh](jM)}(hLinux ACPI Physical Device Glueh]hLinux ACPI Physical Device Glue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhMubj})}(hXCACPI device (i.e. struct acpi_device) objects may be linked to other objects in the Linux' device hierarchy that represent "physical" devices (for example, devices on the PCI bus). If that happens, it means that the ACPI device object is a "companion" of a device otherwise represented in a different way and is used (1) to provide configuration information on that device which cannot be obtained by other means and (2) to do specific things to the device with the help of its ACPI control methods. One ACPI device object may be linked this way to multiple "physical" devices.h]hXQACPI device (i.e. struct acpi_device) objects may be linked to other objects in the Linux’ device hierarchy that represent “physical” devices (for example, devices on the PCI bus). If that happens, it means that the ACPI device object is a “companion” of a device otherwise represented in a different way and is used (1) to provide configuration information on that device which cannot be obtained by other means and (2) to do specific things to the device with the help of its ACPI control methods. One ACPI device object may be linked this way to multiple “physical” devices.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM!hj hhubj})}(hXIf an ACPI device object is linked to a "physical" device, its sysfs directory contains the "physical_node" symbolic link to the sysfs directory of the target device object. In turn, the target device's sysfs directory will then contain the "firmware_node" symbolic link to the sysfs directory of the companion ACPI device object. The linking mechanism relies on device identification provided by the ACPI namespace. For example, if there's an ACPI namespace object representing a PCI device (i.e. a device object under an ACPI namespace object representing a PCI bridge) whose _ADR returns 0x00020000 and the bus number of the parent PCI bridge is 0, the sysfs directory representing the struct acpi_device object created for that ACPI namespace object will contain the 'physical_node' symbolic link to the /sys/devices/pci0000:00/0000:00:02:0/ sysfs directory of the corresponding PCI device.h]hXIf an ACPI device object is linked to a “physical” device, its sysfs directory contains the “physical_node” symbolic link to the sysfs directory of the target device object. In turn, the target device’s sysfs directory will then contain the “firmware_node” symbolic link to the sysfs directory of the companion ACPI device object. The linking mechanism relies on device identification provided by the ACPI namespace. For example, if there’s an ACPI namespace object representing a PCI device (i.e. a device object under an ACPI namespace object representing a PCI bridge) whose _ADR returns 0x00020000 and the bus number of the parent PCI bridge is 0, the sysfs directory representing the struct acpi_device object created for that ACPI namespace object will contain the ‘physical_node’ symbolic link to the /sys/devices/pci0000:00/0000:00:02:0/ sysfs directory of the corresponding PCI device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM+hj hhubj})}(hX(The linking mechanism is generally bus-specific. The core of its implementation is located in the drivers/acpi/glue.c file, but there are complementary parts depending on the bus types in question located elsewhere. For example, the PCI-specific part of it is located in drivers/pci/pci-acpi.c.h]hX(The linking mechanism is generally bus-specific. The core of its implementation is located in the drivers/acpi/glue.c file, but there are complementary parts depending on the bus types in question located elsewhere. For example, the PCI-specific part of it is located in drivers/pci/pci-acpi.c.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM:hj hhubeh}(h]linux-acpi-physical-device-glueah ]h"]linux acpi physical device glueah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(hExample Linux ACPI Device Treeh]hExample Linux ACPI Device Tree}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhMBubj})}(hThe sysfs hierarchy of struct acpi_device objects corresponding to the example ACPI namespace illustrated in Figure 2 with the addition of fixed PWR_BUTTON/SLP_BUTTON devices is shown below::h]hThe sysfs hierarchy of struct acpi_device objects corresponding to the example ACPI namespace illustrated in Figure 2 with the addition of fixed PWR_BUTTON/SLP_BUTTON devices is shown below:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMDhj hhubj)}(hX +--------------+---+-----------------+ | LNXSYSTM:00 | \ | acpi:LNXSYSTM: | +--------------+---+-----------------+ | | +-------------+-----+----------------+ +-| LNXPWRBN:00 | N/A | acpi:LNXPWRBN: | | +-------------+-----+----------------+ | | +-------------+-----+----------------+ +-| LNXSLPBN:00 | N/A | acpi:LNXSLPBN: | | +-------------+-----+----------------+ | | +-----------+------------+--------------+ +-| LNXCPU:00 | \_PR_.CPU0 | acpi:LNXCPU: | | +-----------+------------+--------------+ | | +-------------+-------+----------------+ +-| LNXSYBUS:00 | \_SB_ | acpi:LNXSYBUS: | | +-------------+-------+----------------+ | | | | +- - - - - - - +- - - - - - +- - - - - - - -+ | +-| PNP0C0D:00 | \_SB_.LID0 | acpi:PNP0C0D: | | | +- - - - - - - +- - - - - - +- - - - - - - -+ | | | | +------------+------------+-----------------------+ | +-| PNP0A08:00 | \_SB_.PCI0 | acpi:PNP0A08:PNP0A03: | | +------------+------------+-----------------------+ | | | | +-----------+-----------------+-----+ | +-| device:00 | \_SB_.PCI0.RP03 | N/A | | | +-----------+-----------------+-----+ | | | | | | +-------------+----------------------+----------------+ | | +-| LNXPOWER:00 | \_SB_.PCI0.RP03.PXP3 | acpi:LNXPOWER: | | | +-------------+----------------------+----------------+ | | | | +-------------+-----------------+----------------+ | +-| LNXVIDEO:00 | \_SB_.PCI0.GFX0 | acpi:LNXVIDEO: | | +-------------+-----------------+----------------+ | | | | +-----------+-----------------+-----+ | +-| device:01 | \_SB_.PCI0.DD01 | N/A | | +-----------+-----------------+-----+ | | +-------------+-------+----------------+ +-| LNXSYBUS:01 | \_TZ_ | acpi:LNXSYBUS: | +-------------+-------+----------------+ | | +-------------+------------+----------------+ +-| LNXPOWER:0a | \_TZ_.FN00 | acpi:LNXPOWER: | | +-------------+------------+----------------+ | | +------------+------------+---------------+ +-| PNP0C0B:00 | \_TZ_.FAN0 | acpi:PNP0C0B: | | +------------+------------+---------------+ | | +-------------+------------+----------------+ +-| LNXTHERM:00 | \_TZ_.TZ00 | acpi:LNXTHERM: | +-------------+------------+----------------+ Figure 3. Example Linux ACPI Device Treeh]hX +--------------+---+-----------------+ | LNXSYSTM:00 | \ | acpi:LNXSYSTM: | +--------------+---+-----------------+ | | +-------------+-----+----------------+ +-| LNXPWRBN:00 | N/A | acpi:LNXPWRBN: | | +-------------+-----+----------------+ | | +-------------+-----+----------------+ +-| LNXSLPBN:00 | N/A | acpi:LNXSLPBN: | | +-------------+-----+----------------+ | | +-----------+------------+--------------+ +-| LNXCPU:00 | \_PR_.CPU0 | acpi:LNXCPU: | | +-----------+------------+--------------+ | | +-------------+-------+----------------+ +-| LNXSYBUS:00 | \_SB_ | acpi:LNXSYBUS: | | +-------------+-------+----------------+ | | | | +- - - - - - - +- - - - - - +- - - - - - - -+ | +-| PNP0C0D:00 | \_SB_.LID0 | acpi:PNP0C0D: | | | +- - - - - - - +- - - - - - +- - - - - - - -+ | | | | +------------+------------+-----------------------+ | +-| PNP0A08:00 | \_SB_.PCI0 | acpi:PNP0A08:PNP0A03: | | +------------+------------+-----------------------+ | | | | +-----------+-----------------+-----+ | +-| device:00 | \_SB_.PCI0.RP03 | N/A | | | +-----------+-----------------+-----+ | | | | | | +-------------+----------------------+----------------+ | | +-| LNXPOWER:00 | \_SB_.PCI0.RP03.PXP3 | acpi:LNXPOWER: | | | +-------------+----------------------+----------------+ | | | | +-------------+-----------------+----------------+ | +-| LNXVIDEO:00 | \_SB_.PCI0.GFX0 | acpi:LNXVIDEO: | | +-------------+-----------------+----------------+ | | | | +-----------+-----------------+-----+ | +-| device:01 | \_SB_.PCI0.DD01 | N/A | | +-----------+-----------------+-----+ | | +-------------+-------+----------------+ +-| LNXSYBUS:01 | \_TZ_ | acpi:LNXSYBUS: | +-------------+-------+----------------+ | | +-------------+------------+----------------+ +-| LNXPOWER:0a | \_TZ_.FN00 | acpi:LNXPOWER: | | +-------------+------------+----------------+ | | +------------+------------+---------------+ +-| PNP0C0B:00 | \_TZ_.FAN0 | acpi:PNP0C0B: | | +------------+------------+---------------+ | | +-------------+------------+----------------+ +-| LNXTHERM:00 | \_TZ_.TZ00 | acpi:LNXTHERM: | +-------------+------------+----------------+ Figure 3. Example Linux ACPI Device Tree}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhMHhj hhubj)}(hXtEach node is represented as "object/path/modalias", where: 1. 'object' is the name of the object's directory in sysfs. 2. 'path' is the ACPI namespace path of the corresponding ACPI namespace object, as returned by the object's 'path' sysfs attribute. 3. 'modalias' is the value of the object's 'modalias' sysfs attribute (as described earlier in this document).h](j})}(h:Each node is represented as "object/path/modalias", where:h]h>Each node is represented as “object/path/modalias”, where:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj ubj)}(hhh](j )}(h8'object' is the name of the object's directory in sysfs.h]j})}(hj h]h>‘object’ is the name of the object’s directory in sysfs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(h'path' is the ACPI namespace path of the corresponding ACPI namespace object, as returned by the object's 'path' sysfs attribute.h]j})}(h'path' is the ACPI namespace path of the corresponding ACPI namespace object, as returned by the object's 'path' sysfs attribute.h]h‘path’ is the ACPI namespace path of the corresponding ACPI namespace object, as returned by the object’s ‘path’ sysfs attribute.}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hk'modalias' is the value of the object's 'modalias' sysfs attribute (as described earlier in this document).h]j})}(hk'modalias' is the value of the object's 'modalias' sysfs attribute (as described earlier in this document).h]hu‘modalias’ is the value of the object’s ‘modalias’ sysfs attribute (as described earlier in this document).}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj7 ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hhhNhNubj)}(hUN/A indicates the device object does not have the 'path' or the 'modalias' attribute.h]j})}(hUN/A indicates the device object does not have the 'path' or the 'modalias' attribute.h]h]N/A indicates the device object does not have the ‘path’ or the ‘modalias’ attribute.}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj[ ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubeh}(h]example-linux-acpi-device-treeah ]h"]example linux acpi device treeah$]h&]uh1jGhjIhhhhhMBubeh}(h]1acpi-device-tree-representation-of-acpi-namespaceah ]h"]3acpi device tree - representation of acpi namespaceah$]h&]uh1jGhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(jLN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}(hhhhhhj jjjj*jj9j-jHj<jWjKjfjZjujijjxjjjjjjjjjjjjjjjjj jjjj)jj8j,jGj;jVjJjejYjtjhjjwjjjjjjjjjjjjjjjjj jjj j(jj7j+jFj:jUjIjdjXjsjgjjvjjjjjjjjjjjjjjjjj jjj j'jj6j*jEj9jTjHjcjWjrjfjjujjjjjjjjjjjjjjjjjjjj j&jj5j)jDj8usubstitution_names}(amphߌaposhasthbrvbarj bsoljcentj*colonj9commajHcommatjWcopyjfcurrenjudarrjdegjdividejdollarjequalsjexcljfrac12jfrac14jfrac18jfrac34j frac38jfrac58j)frac78j8gtjGhalfjVhorbarjehyphenjtiexcljiquestjlaquojlarrjlcubjldquojlowbarjlparjlsqbjlsquoj ltjmicroj(middotj7nbspjFnotjUnumjdohmjsordfjordmjparajpercntjperiodjplusjplusmnjpoundjquestjquotj raquojrarrj'rcubj6rdquojEregjTrparjcrsqbjrrsquojsectjsemijshyjsoljsungjsup1jsup2jsup3jtimesjtradejuarrj&verbarj5yenjDurefnames}refids}nameids}(j j} jpjmjjjjj j} j j jx ju u nametypes}(j jpjjj j jx uh}(j} jIjmj>jjsjjj} jj j ju j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log]/Documentation/firmware-guide/acpi/namespace.rst(NNNNta decorationNhhub.