Contribute
Register

SSDT Cleanup.

Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
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.

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                        
                }
            })
        }
    }
}
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
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.

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                       
                }
            })
        }
    }
}
For each file, comment out the DefinitionBlock, opening brace, and final closing brace.
For example, your first file, probably called SSDT-XOSI.dsl, change to:
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)))
    }
//}
Do that for all the files...
Then use #include in SSDT-HACK.dsl to simply include them all

Code:
DefinitionBlock("", "SSDT", 2, "hack", "HACK", 0)
{
    #include "SSDT-XOSI.dsl"
    //etc
}
 
Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
For each file, comment out the DefinitionBlock, opening brace, and final closing brace.
For example, your first file, probably called SSDT-XOSI.dsl, change to:
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)))
    }
//}
Do that for all the files...
Then use #include in SSDT-HACK.dsl to simply include them all

Code:
DefinitionBlock("", "SSDT", 2, "hack", "HACK", 0)
{
    #include "SSDT-XOSI.dsl"
    //etc
}
Should it look like something like this? I think I've gone wrong again.

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)))
    }
//}
//{
    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                        
                }
            })
        }
    }
}
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Should it look like something like this? I think I've gone wrong again.

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)))
    }
//}
//{
    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                       
                }
            })
        }
    }
}
Keep the separate files. Use #include.

For example, SSDT-HACK.dsl from the BRIX project:
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "hack", 0)
{
    #include "SSDT-PluginType1.dsl"
    #include "SSDT-XOSI.dsl"
    #include "SSDT-IGPU.dsl"
    #include "SSDT-USB.dsl"
    #include "SSDT-ALC269.dsl"
    #include "SSDT-EC.dsl"
}
 
Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
Keep the separate files. Use #include.

For example, SSDT-HACK.dsl from the BRIX project:
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "hack", 0)
{
    #include "SSDT-PluginType1.dsl"
    #include "SSDT-XOSI.dsl"
    #include "SSDT-IGPU.dsl"
    #include "SSDT-USB.dsl"
    #include "SSDT-ALC269.dsl"
    #include "SSDT-EC.dsl"
}
Right so this is what I've got at the start of the SSDT. How does this look? Do i now add the actual SSDTs?

Code:
DefinitionBlock("", "SSDT", 2, "hack", "HACK", 0)
{
    #include "SSDT-HACK.dsl"
    #include "SSDT-EH01.dsl"
    #include "SSDT-EH02.dsl"
    #include "SSDT-XHC.dsl"
    #include "SSDT-EC.dsl"
    #include "SSDT-SMBUS.dsl"
    #include "SSDT-SATA.dsl"
    #include "SSDT-MCHC.dsl"
    #include "SSDT-UIAC.dsl"
    #include "SSDT-LPC.dsl"
    #include "SSDT-HDEF.dsl"
    #include "SSDT-GFX0.dsl"
    #include "SSDT-LAN.dsl"
    #include "SSDT-WIFI.dsl"
}
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,929
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Right so this is what I've got at the start of the SSDT. How does this look? Do i now add the actual SSDTs?

Code:
DefinitionBlock("", "SSDT", 2, "hack", "HACK", 0)
{
    #include "SSDT-HACK.dsl"
    #include "SSDT-EH01.dsl"
    #include "SSDT-EH02.dsl"
    #include "SSDT-XHC.dsl"
    #include "SSDT-EC.dsl"
    #include "SSDT-SMBUS.dsl"
    #include "SSDT-SATA.dsl"
    #include "SSDT-MCHC.dsl"
    #include "SSDT-UIAC.dsl"
    #include "SSDT-LPC.dsl"
    #include "SSDT-HDEF.dsl"
    #include "SSDT-GFX0.dsl"
    #include "SSDT-LAN.dsl"
    #include "SSDT-WIFI.dsl"
}
Ok, let's say that the SSDT content you show above is in SSDT-Master.dsl.
Now edit each of the .dsl files (the ones you're using with #include) as I wrote in post #2 (to remove the surrounding DefinitionBlock).
Then compile the result in Terminal:
Code:
iasl SSDT-Master.dsl
Result will be SSDT-Master.aml, which can be placed in ACPI/patched.
 
Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
Keep the separate files. Use #include.

For example, SSDT-HACK.dsl from the BRIX project:
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "hack", 0)
{
    #include "SSDT-PluginType1.dsl"
    #include "SSDT-XOSI.dsl"
    #include "SSDT-IGPU.dsl"
    #include "SSDT-USB.dsl"
    #include "SSDT-ALC269.dsl"
    #include "SSDT-EC.dsl"
}
So should it look something like this?

Code:
DefinitionBlock("", "SSDT", 2, "hack", "HACK", 0)
{
    #include "SSDT-HACK.dsl"
    #include "SSDT-EH01.dsl"
    #include "SSDT-EH02.dsl"
    #include "SSDT-XHC.dsl"
    #include "SSDT-EC.dsl"
    #include "SSDT-SMBUS.dsl"
    #include "SSDT-SATA.dsl"
    #include "SSDT-MCHC.dsl"
    #include "SSDT-UIAC.dsl"
    #include "SSDT-LPC.dsl"
    #include "SSDT-HDEF.dsl"
    #include "SSDT-GFX0.dsl"
    #include "SSDT-LAN.dsl"
    #include "SSDT-WIFI.dsl"
}
//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)))
    }
//}
 
Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
Ok, let's say that the SSDT content you show above is in SSDT-Master.dsl.
Now edit each of the .dsl files (the ones you're using with #include) as I wrote in post #2 (to remove the surrounding DefinitionBlock).
Then compile the result in Terminal:
Code:
iasl SSDT-Master.dsl
Result will be SSDT-Master.aml, which can be placed in ACPI/patched.
So each dsl starts like this?

Code:
//DefinitionBlock ("", "SSDT", 2, "hack", "EC", 0x00000000)
{
    Device (_SB.EC)
    {
        Name (_HID, "EC000000")  // _HID: Hardware ID
    }
//}
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                        
                }
            })
        }
    }
}
//
 
Last edited:
Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
Ok, let's say that the SSDT content you show above is in SSDT-Master.dsl.
Now edit each of the .dsl files (the ones you're using with #include) as I wrote in post #2 (to remove the surrounding DefinitionBlock).
Then compile the result in Terminal:
Code:
iasl SSDT-Master.dsl
Result will be SSDT-Master.aml, which can be placed in ACPI/patched.
So all my .dsl files look like this how does this look?

Code:
//DefinitionBlock ("", "SSDT", 2, "hack", "EC", 0x00000000)
{
    Device (_SB.EC)
    {
        Name (_HID, "EC000000")  // _HID: Hardware ID
    }
//}
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", 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, "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, "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, "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                        
                }
            })
        }
    }
//}
 
Joined
Jun 9, 2013
Messages
10,809
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
MacBook, Mac mini
Mobile Phone
Android
Ok, let's say that the SSDT content you show above is in SSDT-Master.dsl.
Now edit each of the .dsl files (the ones you're using with #include) as I wrote in post #2 (to remove the surrounding DefinitionBlock).
Then compile the result in Terminal:
Code:
iasl SSDT-Master.dsl
Result will be SSDT-Master.aml, which can be placed in ACPI/patched.
When trying to compile it I'm getting this error in Terminal.

Code:
Violets-Speedy-Hack:~ JackBamford$ iasl SSDT-Master.dsl

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Error    6092 - Could not open file "SSDT-Master.dsl" (Source Input) - No such file or directory

Violets-Speedy-Hack:~ JackBamford$
 
Top