- Joined
- Jun 9, 2013
- Messages
- 10,289
- Motherboard
- ASUS ROG STRIX Z390-F GAMING
- CPU
- i5 8500
- Graphics
- RTX 570
- Mac
- Mobile Phone
Hi Rehabman. So im wanting to put the SSDTs i created into one SSDT calling it SSDT-HACK. However i looked at the SSDT-4x40s and it has external now I'm wondering do i need External at the start of the SSDT or not? These are the SSDTs I've made they work fine but just need to put them all in one SSDT.
So this is what I've started working on but i think I've gone wrong with this already.
Code:
DefinitionBlock ("", "SSDT", 1, "hack", "XOSI", 0x00000000)
{
Method (XOSI, 1, NotSerialized)
{
Name (WINV, Package (0x06)
{
"Windows",
"Windows 2001",
"Windows 2001 SP2",
"Windows 2006",
"Windows 2006 SP1",
"Windows 2009"
})
Return (LNotEqual (Ones, Match (WINV, MEQ, Arg0, MTR, Zero, Zero)))
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC-ALL", 0x00000000)
{
Device (UIAC)
{
Name (_HID, "UIA00000") // _HID: Hardware ID
Name (RMCF, Package (0x0A)
{
"HUB1",
Package (0x04)
{
"port-count",
Buffer (0x04)
{
0x08, 0x00, 0x00, 0x00
},
"ports",
Package (0x04)
{
"HP15",
Package (0x04)
{
"portType",
0x02,
"port",
Buffer (0x04)
{
0x05, 0x00, 0x00, 0x00
}
},
"HP16",
Package (0x04)
{
"portType",
0x02,
"port",
Buffer (0x04)
{
0x06, 0x00, 0x00, 0x00
}
}
}
},
"HUB2",
Package (0x04)
{
"port-count",
Buffer (0x04)
{
0x06, 0x00, 0x00, 0x00
},
"ports",
Package (0x08)
{
"HP21",
Package (0x04)
{
"portType",
0x02,
"port",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
}
},
"HP22",
Package (0x04)
{
"portType",
0x02,
"port",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
}
},
"HP24",
Package (0x04)
{
"portType",
0x02,
"port",
Buffer (0x04)
{
0x04, 0x00, 0x00, 0x00
}
},
"HP25",
Package (0x04)
{
"portType",
0x02,
"port",
Buffer (0x04)
{
0x05, 0x00, 0x00, 0x00
}
}
}
},
"EH01",
Package (0x04)
{
"port-count",
Buffer (0x04)
{
0x08, 0x00, 0x00, 0x00
},
"ports",
Package (0x02)
{
"PR11",
Package (0x04)
{
"UsbConnector",
0xFF,
"port",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
}
}
}
},
"EH02",
Package (0x04)
{
"port-count",
Buffer (0x04)
{
0x06, 0x00, 0x00, 0x00
},
"ports",
Package (0x02)
{
"PR21",
Package (0x04)
{
"UsbConnector",
0xFF,
"port",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
}
}
}
},
"8086_1e31",
Package (0x04)
{
"port-count",
Buffer (0x04)
{
0x08, 0x00, 0x00, 0x00
},
"ports",
Package (0x08)
{
"HS03",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x03, 0x00, 0x00, 0x00
}
},
"HS04",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x04, 0x00, 0x00, 0x00
}
},
"SSP7",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x07, 0x00, 0x00, 0x00
}
},
"SSP8",
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x08, 0x00, 0x00, 0x00
}
}
}
}
})
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "EH01", 0x00000000)
{
If (CondRefOf (_SB.PCI0.EH01))
{
Method (_SB.PCI0.EH01._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x18)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel EHCI Controller",
"model",
Buffer (0x3E)
{
"Intel 7 Series Chipset Family USB Enhanced Host Controller #1"
},
"device_type",
Buffer (0x0F)
{
"USB Controller"
},
"AAPL,current-available",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,current-extra",
Buffer (0x04)
{
0x99, 0x08, 0x00, 0x00
},
"AAPL,current-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,current-extra-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,max-port-current-in-sleep",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,device-internal",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},
"subsystem-id",
Buffer (0x04)
{
0x70, 0x72, 0x00, 0x00
},
"subsystem-vendor-id",
Buffer (0x04)
{
0x86, 0x80, 0x00, 0x00
}
})
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "EH02", 0x00000000)
{
If (CondRefOf (_SB.PCI0.EH02))
{
Method (_SB.PCI0.EH02._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x18)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel EHCI Controller",
"model",
Buffer (0x3E)
{
"Intel 7 Series Chipset Family USB Enhanced Host Controller #2"
},
"device_type",
Buffer (0x0F)
{
"USB Controller"
},
"AAPL,current-available",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,current-extra",
Buffer (0x04)
{
0x99, 0x08, 0x00, 0x00
},
"AAPL,current-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,current-extra-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,max-port-current-in-sleep",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,device-internal",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},
"subsystem-id",
Buffer (0x04)
{
0x70, 0x72, 0x00, 0x00
},
"subsystem-vendor-id",
Buffer (0x04)
{
0x86, 0x80, 0x00, 0x00
}
})
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "GFX0_HDA", 0x00000000)
{
External (_SB_.PCI0.PEG0, DeviceObj) // (from opcode)
External (_SB_.PCI0.PEG0.GFX0, DeviceObj) // (from opcode)
External (GFX0, DeviceObj) // Warning: Unknown object
Scope (_SB.PCI0.PEG0)
{
Scope (GFX0)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x0E)
{
"@0,connector-type",
Buffer (0x04)
{
0x00, 0x08, 0x00, 0x00
},
"@1,connector-type",
Buffer (0x04)
{
0x00, 0x08, 0x00, 0x00
},
"@2,connector-type",
Buffer (0x04)
{
0x00, 0x08, 0x00, 0x00
},
"@3,connector-type",
Buffer (0x04)
{
0x00, 0x08, 0x00, 0x00
},
"@4,connector-type",
Buffer (0x04)
{
0x00, 0x08, 0x00, 0x00
},
"@5,connector-type",
Buffer (0x04)
{
0x00, 0x08, 0x00, 0x00
},
"hda-gfx",
Buffer (0x0A)
{
"onboard-2"
}
})
}
}
Device (HDAU)
{
Name (_ADR, One) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x02)
{
"hda-gfx",
Buffer (0x0A)
{
"onboard-2"
}
})
}
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "APPLE ", "SSDT-HDE", 0x00001000)
{
External (_SB_.PCI0, DeviceObj) // (from opcode)
External (_SB_.PCI0.HDEF, DeviceObj) // (from opcode)
Scope (\_SB.PCI0)
{
Scope (\_SB.PCI0.HDEF)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x10)
{
"AAPL,slot-name",
"Built In",
"name",
"Realtek Audio Controller",
"model",
Buffer (0x37)
{
"Realtek ALC887 Audio Controller"
},
"device_type",
Buffer (0x14)
{
"Audio Controller"
},
"layout-id",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"PinConfigurations",
Buffer (Zero) {},
"MaximumBootBeepVolume",
Buffer (One)
{
0x40
},
"hda-gfx",
Buffer (0x0A)
{
"onboard-1"
}
})
}
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "APPLE ", "SSDT-PXS", 0x00001000)
{
External (_SB_.PCI0, DeviceObj) // (from opcode)
External (_SB_.PCI0.RP05.PXSX, DeviceObj) // (from opcode)
Scope (\_SB.PCI0)
{
Scope (\_SB.PCI0.RP05.PXSX)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x0C)
{
"AAPL,slot-name",
"Built In",
"name",
"Realtek Ethernet Controller",
"model",
Buffer (0x37)
{
"Realtek RTL8111E Gigabit Network Controller"
},
"device_type",
Buffer (0x14)
{
"Ethernet Controller"
},
"built-in",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"location",
Buffer (0x04)
{
"1"
}
})
}
}
}
}
Code:
DefinitionBlock ("", "SSDT", 1, "Dragon", "SSDT-LPC", 0x00003000)
{
Method (_SB.PCI0.MATH._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x02)
{
"compatible",
"pci8086,1e44"
})
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "MCHC", 0x00000000)
{
External (_SB_.PCI0, DeviceObj) // (from opcode)
Scope (_SB.PCI0)
{
Device (MCHC)
{
Name (_ADR, Zero) // _ADR: Address
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "APPLE ", "SSDT-SAT", 0x00001000)
{
External (_SB_.PCI0, DeviceObj) // (from opcode)
External (_SB_.PCI0.SATA, DeviceObj) // (from opcode)
Scope (\_SB.PCI0)
{
Scope (\_SB.PCI0.SATA)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x0C)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel AHCI Controller",
"model",
Buffer (0x2E)
{
"Intel 7 Series Chipset Family SATA Controller"
},
"device_type",
Buffer (0x10)
{
"AHCI Controller"
},
"device-id",
Buffer (0x05)
{
0x03, 0x1E, 0x00, 0x00
},
"compatible",
Buffer (0x0D)
{
"pci8086,1e02"
}
})
}
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "APPLE", "SMBUS", 0x00000000)
{
Device (_SB.PCI0.SBUS.BUS0)
{
Name (_CID, "smbus") // _CID: Compatible ID
Name (_ADR, Zero) // _ADR: Address
Device (DVL0)
{
Name (_ADR, 0x57) // _ADR: Address
Name (_CID, "diagsvault") // _CID: Compatible ID
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x57
})
}
Return (Package (0x02)
{
"address",
0x57
})
}
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "APPLE ", "SSDT-WIF", 0x00001000)
{
External (_SB_.PCI0, DeviceObj) // (from opcode)
External (_SB_.PCI0.RP02.PXSX, DeviceObj) // (from opcode)
Scope (\_SB.PCI0)
{
Scope (\_SB.PCI0.RP02.PXSX)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x0C)
{
"AAPL,slot-name",
"Built In",
"name",
"AirPort Extreme",
"model",
Buffer (0x39)
{
"Broadcom BCM4360 802.11 a/b/g/n Wireless Network Adapter"
},
"device_type",
Buffer (0x14)
{
"AirPort"
},
"built-in",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"location",
Buffer (0x04)
{
"1"
}
})
}
}
}
}
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "XHC", 0x00000000)
{
If (CondRefOf (_SB.PCI0.XHC))
{
Method (_SB.PCI0.XHC._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x18)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel XHCI Controller",
"model",
Buffer (0x37)
{
"Intel 7 Series Chipset Family USB xHCI Host Controller"
},
"device_type",
Buffer (0x0F)
{
"USB Controller"
},
"AAPL,current-available",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,current-extra",
Buffer (0x04)
{
0x99, 0x08, 0x00, 0x00
},
"AAPL,current-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,current-extra-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,max-port-current-in-sleep",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,device-internal",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},
"subsystem-id",
Buffer (0x04)
{
0x70, 0x72, 0x00, 0x00
},
"subsystem-vendor-id",
Buffer (0x04)
{
0x86, 0x80, 0x00, 0x00
}
})
}
}
}
So this is what I've started working on but i think I've gone wrong with this already.
Code:
Method (XOSI, 1, NotSerialized)
{
Name (WINV, Package (0x06)
{
"Windows",
"Windows 2001",
"Windows 2001 SP2",
"Windows 2006",
"Windows 2006 SP1",
"Windows 2009"
})
Return (LNotEqual (Ones, Match (WINV, MEQ, Arg0, MTR, Zero, Zero)))
}
}
If (CondRefOf (_SB.PCI0.EH01))
{
Method (_SB.PCI0.EH01._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (LNot (Arg2))
{
Return (Buffer (One)
{
0x03
})
}
Return (Package (0x18)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel EHCI Controller",
"model",
Buffer (0x3E)
{
"Intel 7 Series Chipset Family USB Enhanced Host Controller #1"
},
"device_type",
Buffer (0x0F)
{
"USB Controller"
},
"AAPL,current-available",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,current-extra",
Buffer (0x04)
{
0x99, 0x08, 0x00, 0x00
},
"AAPL,current-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,current-extra-in-sleep",
Buffer (0x04)
{
0x40, 0x06, 0x00, 0x00
},
"AAPL,max-port-current-in-sleep",
Buffer (0x04)
{
0x34, 0x08, 0x00, 0x00
},
"AAPL,device-internal",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},
"subsystem-id",
Buffer (0x04)
{
0x70, 0x72, 0x00, 0x00
},
"subsystem-vendor-id",
Buffer (0x04)
{
0x86, 0x80, 0x00, 0x00
}
})
}
}
}