// Inject bogus class-code for NVMe SSD to prevent IONVMeFamily.kext from loading
DefinitionBlock("", "SSDT", 2, "hack", "NVMe-Pcc", 0)
{
External(_SB.PCI0, DeviceObj)
// create identities for the bridge @1d and SSD0 @0
Device(_SB.PCI0.PB1D)
{
Name(_ADR, 0x001d0000) // corresponds to pci-bridge@1D
Device(SSD0) { Name(_ADR, 0) } // corresponds to pci144d,a802@0
}
// now we can inject the _DSM at the newly created ACPI path
Method(_SB.PCI0.PB1D.SSD0._DSM, 4)
{
If (!Arg2) { Return (Buffer() { 0x03 } ) }
Return(Package()
{
"class-code", Buffer() { 0xff, 0x08, 0x01, 0x00 },
"built-in", Buffer() { 0 },
})
}
}
//EOF