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 | |
| 16 | DefinitionBlock ("SSDT5.aml", "SSDT", 1, "AMD-FAM10", "AMDACPI", 100925440) |
| 17 | { |
| 18 | Scope (_SB) |
| 19 | { |
| 20 | External (DADD, MethodObj) |
| 21 | External (GHCE, MethodObj) |
| 22 | External (GHCN, MethodObj) |
| 23 | External (GHCL, MethodObj) |
| 24 | External (GHCD, MethodObj) |
| 25 | External (GNUS, MethodObj) |
| 26 | External (GIOR, MethodObj) |
| 27 | External (GMEM, MethodObj) |
| 28 | External (GWBN, MethodObj) |
| 29 | External (GBUS, MethodObj) |
| 30 | |
| 31 | External (PICF) |
| 32 | |
| 33 | External (\_SB.PCI0.LNKA, DeviceObj) |
| 34 | External (\_SB.PCI0.LNKB, DeviceObj) |
| 35 | External (\_SB.PCI0.LNKC, DeviceObj) |
| 36 | External (\_SB.PCI0.LNKD, DeviceObj) |
| 37 | |
| 38 | Device (PCIX) |
| 39 | { |
| 40 | |
| 41 | // BUS ? Second HT Chain |
| 42 | Name (HCIN, 0xcc) // HC2 0x01 |
| 43 | |
| 44 | Name (_UID, 0xdd) // HC 0x03 |
| 45 | |
| 46 | Name (_HID, "PNP0A03") |
| 47 | |
| 48 | Method (_ADR, 0, NotSerialized) //Fake bus should be 0 |
| 49 | { |
| 50 | Return (DADD(GHCN(HCIN), 0x00000000)) |
| 51 | } |
| 52 | |
| 53 | Method (_BBN, 0, NotSerialized) |
| 54 | { |
| 55 | Return (GBUS (GHCN(HCIN), GHCL(HCIN))) |
| 56 | } |
| 57 | |
| 58 | Method (_STA, 0, NotSerialized) |
| 59 | { |
| 60 | Return (\_SB.GHCE(HCIN)) |
| 61 | } |
| 62 | |
| 63 | Method (_CRS, 0, NotSerialized) |
| 64 | { |
| 65 | Name (BUF0, ResourceTemplate () { }) |
| 66 | Store( GHCN(HCIN), Local4) |
| 67 | Store( GHCL(HCIN), Local5) |
| 68 | |
| 69 | Concatenate (\_SB.GIOR (Local4, Local5), BUF0, Local1) |
| 70 | Concatenate (\_SB.GMEM (Local4, Local5), Local1, Local2) |
| 71 | Concatenate (\_SB.GWBN (Local4, Local5), Local2, Local3) |
| 72 | Return (Local3) |
| 73 | } |
| 74 | |
Patrick Georgi | af97d33 | 2010-02-08 15:46:37 +0000 | [diff] [blame] | 75 | #include "acpi/pci5_hc.asl" |
Marc Jones | 2ce8bfd | 2007-12-19 01:49:44 +0000 | [diff] [blame] | 76 | } |
| 77 | } |
| 78 | |
| 79 | } |