Marc Jones | 2ce8bfd | 2007-12-19 01:49:44 +0000 | [diff] [blame] | 1 | // |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | // This file is part of the coreboot project. |
Marc Jones | 2ce8bfd | 2007-12-19 01:49:44 +0000 | [diff] [blame] | 3 | // |
| 4 | // Copyright (C) 2007 Advanced Micro Devices, Inc. |
| 5 | // |
| 6 | // This program is free software; you can redistribute it and/or modify |
| 7 | // it under the terms of the GNU General Public License as published by |
| 8 | // the Free Software Foundation; version 2 of the License. |
| 9 | // |
| 10 | // This program is distributed in the hope that it will be useful, |
| 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | // GNU General Public License for more details. |
| 14 | // |
Marc Jones | 2ce8bfd | 2007-12-19 01:49:44 +0000 | [diff] [blame] | 15 | DefinitionBlock ("SSDT2.aml", "SSDT", 1, "AMD-FAM10", "AMDACPI", 100925440) |
| 16 | { |
| 17 | Scope (_SB) |
| 18 | { |
| 19 | External (DADD, MethodObj) |
| 20 | External (GHCE, MethodObj) |
| 21 | External (GHCN, MethodObj) |
| 22 | External (GHCL, MethodObj) |
| 23 | External (GHCD, MethodObj) |
| 24 | External (GNUS, MethodObj) |
| 25 | External (GIOR, MethodObj) |
| 26 | External (GMEM, MethodObj) |
| 27 | External (GWBN, MethodObj) |
| 28 | External (GBUS, MethodObj) |
| 29 | |
| 30 | External (PICF) |
| 31 | |
| 32 | External (\_SB.PCI0.LNKA, DeviceObj) |
| 33 | External (\_SB.PCI0.LNKB, DeviceObj) |
| 34 | External (\_SB.PCI0.LNKC, DeviceObj) |
| 35 | External (\_SB.PCI0.LNKD, DeviceObj) |
| 36 | |
| 37 | Device (PCIX) |
| 38 | { |
| 39 | |
| 40 | // BUS ? Second HT Chain |
| 41 | Name (HCIN, 0xcc) // HC2 0x01 |
| 42 | |
| 43 | Name (_UID, 0xdd) // HC 0x03 |
| 44 | |
| 45 | Name (_HID, "PNP0A03") |
| 46 | |
| 47 | Method (_ADR, 0, NotSerialized) //Fake bus should be 0 |
| 48 | { |
| 49 | Return (DADD(GHCN(HCIN), 0x00000000)) |
| 50 | } |
| 51 | |
| 52 | Method (_BBN, 0, NotSerialized) |
| 53 | { |
| 54 | Return (GBUS (GHCN(HCIN), GHCL(HCIN))) |
| 55 | } |
| 56 | |
| 57 | Method (_STA, 0, NotSerialized) |
| 58 | { |
| 59 | Return (\_SB.GHCE(HCIN)) |
| 60 | } |
| 61 | |
| 62 | Method (_CRS, 0, NotSerialized) |
| 63 | { |
| 64 | Name (BUF0, ResourceTemplate () { }) |
| 65 | Store( GHCN(HCIN), Local4) |
| 66 | Store( GHCL(HCIN), Local5) |
| 67 | |
| 68 | Concatenate (\_SB.GIOR (Local4, Local5), BUF0, Local1) |
| 69 | Concatenate (\_SB.GMEM (Local4, Local5), Local1, Local2) |
| 70 | Concatenate (\_SB.GWBN (Local4, Local5), Local2, Local3) |
| 71 | Return (Local3) |
| 72 | } |
| 73 | |
Patrick Georgi | af97d33 | 2010-02-08 15:46:37 +0000 | [diff] [blame] | 74 | #include "acpi/pci2_hc.asl" |
Marc Jones | 2ce8bfd | 2007-12-19 01:49:44 +0000 | [diff] [blame] | 75 | } |
| 76 | } |
| 77 | |
| 78 | } |