@@ -13,6 +13,8 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+External(\_SB.FOBR, IntObj)
+
/* Common legacy ISA style devices. */
Scope(\_SB.PCI0.ISA) {
@@ -20,7 +22,13 @@ Scope(\_SB.PCI0.ISA) {
Name(_HID, EisaId("APP0001"))
/* _STA will be patched to 0x0B if AppleSMC is present */
ACPI_EXTRACT_NAME_BYTE_CONST DSDT_APPLESMC_STA
- Name(_STA, 0xF0)
+ Name(_STF, 0xF0) /* get this out of the way temporarily */
+ Method(_STA, 0, NotSerialized) {
+ If (LGreater(\_SB.FOBR, Zero)) {
+ Return (0x0)
+ }
+ Return (0x0B)
+ }
Name(_CRS, ResourceTemplate () {
IO (Decode16, 0x0300, 0x0300, 0x01, 0x20)
IRQNoFlags() { 6 }
@@ -22,6 +22,10 @@ DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
* PCI memory ranges
****************************************************************/
+ Scope(\_SB) {
+ Name(FOBR, Zero)
+ }
+
Scope(\) {
ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_start
Name(P0S, 0x12345678)