fix: wrong acpi files added
This commit is contained in:
parent
1f61f21def
commit
db16cd0c5f
10 changed files with 0 additions and 183 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
BIN
EFI/.DS_Store
vendored
BIN
EFI/.DS_Store
vendored
Binary file not shown.
BIN
EFI/OC/.DS_Store
vendored
BIN
EFI/OC/.DS_Store
vendored
Binary file not shown.
BIN
EFI/OC/ACPI/.DS_Store
vendored
Normal file
BIN
EFI/OC/ACPI/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
EFI/OC/ACPI/SSDT-HPET.aml
Executable file
BIN
EFI/OC/ACPI/SSDT-HPET.aml
Executable file
Binary file not shown.
|
|
@ -1,50 +0,0 @@
|
|||
//
|
||||
// Supplementary HPET _CRS from Goldfish64
|
||||
// Requires at least the HPET's _CRS to XCRS rename
|
||||
//
|
||||
DefinitionBlock ("", "SSDT", 2, "CORP", "HPET", 0x00000000)
|
||||
{
|
||||
External (\_SB.PCI0.LPC0.HPET, DeviceObj)
|
||||
External (\_SB.PCI0.LPC0.HPET.XCRS, MethodObj)
|
||||
External (\_SB.PCI0.LPC0.HPET.XSTA, MethodObj)
|
||||
|
||||
Scope (\_SB.PCI0.LPC0.HPET)
|
||||
{
|
||||
Name (BUFX, ResourceTemplate ()
|
||||
{
|
||||
// Only choose 0, and 8 to mimic a real mac's DSDT.
|
||||
// You may optionally want to add 11 and/or 12 here if
|
||||
// it does not work as expected - though those may have
|
||||
// other side effects (broken trackpad or otherwise).
|
||||
IRQNoFlags ()
|
||||
{0,8}
|
||||
// AccessType/Base/Length pulled from DSDT
|
||||
Memory32Fixed (ReadWrite, // Access Type
|
||||
0xFED00000, // Address Base
|
||||
0x00000400, // Address Length
|
||||
)
|
||||
})
|
||||
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
|
||||
{
|
||||
// Return our buffer if booting macOS or the XCRS method
|
||||
// no longer exists for some reason
|
||||
If (LOr (_OSI ("Darwin"), LNot(CondRefOf (\_SB.PCI0.LPC0.HPET.XCRS))))
|
||||
{
|
||||
Return (BUFX)
|
||||
}
|
||||
// Not macOS and XCRS exists - return its result
|
||||
Return (\_SB.PCI0.LPC0.HPET.XCRS ())
|
||||
}
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
// Return 0x0F if booting macOS or the XSTA method
|
||||
// no longer exists for some reason
|
||||
If (LOr (_OSI ("Darwin"), LNot (CondRefOf (\_SB.PCI0.LPC0.HPET.XSTA))))
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
// Not macOS and XSTA exists - return its result
|
||||
Return (\_SB.PCI0.LPC0.HPET.XSTA ())
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
EFI/OC/ACPI/SSDT-RTCAWAC.aml
Executable file
BIN
EFI/OC/ACPI/SSDT-RTCAWAC.aml
Executable file
Binary file not shown.
|
|
@ -1,47 +0,0 @@
|
|||
//
|
||||
// Original sources from Acidanthera:
|
||||
// - https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-AWAC.dsl
|
||||
// - https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-RTC0.dsl
|
||||
//
|
||||
// Uses the CORP name to denote where this was created for troubleshooting purposes.
|
||||
//
|
||||
DefinitionBlock ("", "SSDT", 2, "CORP", "RTCAWAC", 0x00000000)
|
||||
{
|
||||
External (\_SB.PCI0.LPC0.RTC, DeviceObj)
|
||||
External (\_SB.PCI0.LPC0.RTC.XCRS, BuffObj)
|
||||
Scope (\_SB.PCI0.LPC0.RTC)
|
||||
{
|
||||
// Adjusted and renamed _CRS buffer ripped from DSDT with corrected range
|
||||
Name (BUFX, ResourceTemplate ()
|
||||
{
|
||||
IO (Decode16,
|
||||
0x0070, // Range Minimum
|
||||
0x0070, // Range Maximum
|
||||
0x01, // Alignment
|
||||
0x04, // Length
|
||||
)
|
||||
IO (Decode16,
|
||||
0x0074, // Range Minimum
|
||||
0x0074, // Range Maximum
|
||||
0x01, // Alignment
|
||||
0x04, // Length
|
||||
)
|
||||
IRQNoFlags ()
|
||||
{8}
|
||||
})
|
||||
// End of adjusted _CRS and renamed buffer
|
||||
|
||||
// Create a new _CRS method that returns the result of the renamed XCRS
|
||||
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
|
||||
{
|
||||
If (LOr (_OSI ("Darwin"), LNot (CondRefOf (\_SB.PCI0.LPC0.RTC.XCRS))))
|
||||
{
|
||||
// Return our buffer if booting macOS or the XCRS method
|
||||
// no longer exists for some reason
|
||||
Return (BUFX)
|
||||
}
|
||||
// Not macOS and XCRS exists - return its result
|
||||
Return (\_SB.PCI0.LPC0.RTC.XCRS)
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
EFI/OC/ACPI/SSDT-SBUS-MCHC.aml
Executable file
BIN
EFI/OC/ACPI/SSDT-SBUS-MCHC.aml
Executable file
Binary file not shown.
|
|
@ -1,86 +0,0 @@
|
|||
/*
|
||||
* SMBus compatibility table.
|
||||
* Original from: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/Source/SSDT-SBUS-MCHC.dsl
|
||||
*/
|
||||
DefinitionBlock ("", "SSDT", 2, "CORP", "SBUSMCHC", 0x00000000)
|
||||
{
|
||||
External (\_SB.PCI0, DeviceObj)
|
||||
External (\_SB.PCI0.MCHC, DeviceObj)
|
||||
External (\_SB.PCI0.SMBS, DeviceObj)
|
||||
|
||||
// Only create MCHC if it doesn't already exist
|
||||
If (LNot (CondRefOf (\_SB.PCI0.MCHC)))
|
||||
{
|
||||
Scope (\_SB.PCI0)
|
||||
{
|
||||
Device (MCHC)
|
||||
{
|
||||
Name (_ADR, Zero) // _ADR: Address
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Device (\_SB.PCI0.SMBS.BUS0)
|
||||
{
|
||||
Name (_CID, "smbus") // _CID: Compatible ID
|
||||
Name (_ADR, Zero) // _ADR: Address
|
||||
|
||||
/*
|
||||
* Uncomment replacing 0x57 with your own value which might be found
|
||||
* in SMBus section of Intel datasheet for your motherboard.
|
||||
*
|
||||
* The "diagsvault" is the diagnostic vault where messages are stored.
|
||||
* It's located at address 87 (0x57) on the SMBus controller.
|
||||
* While "diagsvault" may refer to diags, a hardware diagnosis program via EFI for Macs
|
||||
* that communicates with the SMBus controller, the effect is really unknown for hacks.
|
||||
* Uncomment this with caution.
|
||||
*/
|
||||
|
||||
/**
|
||||
Device (DVL0)
|
||||
{
|
||||
Name (_ADR, 0x57) // _ADR: Address
|
||||
Name (_CID, "diagsvault") // _CID: Compatible ID
|
||||
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
|
||||
{
|
||||
If (!Arg2)
|
||||
{
|
||||
Return (Buffer (One)
|
||||
{
|
||||
0x57 // W
|
||||
})
|
||||
}
|
||||
|
||||
Return (Package (0x02)
|
||||
{
|
||||
"address",
|
||||
0x57
|
||||
})
|
||||
}
|
||||
}
|
||||
**/
|
||||
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue