Provide the AML root in ACPI's softc so that drivers that need access
authorpatrick <patrick@openbsd.org>
Wed, 10 Aug 2022 16:58:16 +0000 (16:58 +0000)
committerpatrick <patrick@openbsd.org>
Wed, 10 Aug 2022 16:58:16 +0000 (16:58 +0000)
commit9108e412bd3927bbb0cb663c132f152da551254b
treee83a46911bdd2c182fb19723ccf19d9121db2385
parentfe0b96fe181cafaecd2fac193301da2ba5b7ad3b
Provide the AML root in ACPI's softc so that drivers that need access
don't have to declare it using extern.

Suggested by and with feedback from kettenis@
Tested by deraadt@ on arm64, amd64 and i386
Tested by bluhm@ on amd64 and i386
sys/dev/acpi/acpi.c
sys/dev/acpi/acpidebug.c
sys/dev/acpi/acpidock.c
sys/dev/acpi/acpiec.c
sys/dev/acpi/acpipwrres.c
sys/dev/acpi/acpitz.c
sys/dev/acpi/acpivar.h