/* SPDX-License-Identifier: GPL-2.0-only */ Device (AC) { Name (_HID, "ACPI0003" /* Power Source Device */) // _HID: Hardware ID Name (_PCL, Package (0x01) // _PCL: Power Consumer List { _SB }) Name (ACEX, One) Method (_PSR, 0, NotSerialized) // _PSR: Power Source { Printf ("AC: _PSR: %o", ACEX) Return (ACEX) } Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0F) } }