Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Sage Electronic Engineering, LLC |
| 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 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | /* Note: Only need HID on Primary Bus */ |
| 21 | External (TOM1) |
| 22 | External (TOM2) |
| 23 | Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */ |
| 24 | Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */ |
| 25 | Name(_ADR, 0x00180000) /* Dev# = BSP Dev#, Func# = 0 */ |
| 26 | |
| 27 | /* Describe the Northbridge devices */ |
| 28 | |
| 29 | Method(_BBN, 0, NotSerialized) /* Bus number = 0 */ |
| 30 | { |
| 31 | Return(Zero) |
| 32 | } |
| 33 | |
| 34 | Method(_STA, 0, NotSerialized) |
| 35 | { |
| 36 | Return(0x0B) /* Status is visible */ |
| 37 | } |
| 38 | |
| 39 | Method(_PRT,0, NotSerialized) |
| 40 | { |
| 41 | If(PMOD) |
| 42 | { |
| 43 | Return(APR0) /* APIC mode */ |
| 44 | } |
| 45 | Return (PR0) /* PIC Mode */ |
| 46 | } |
| 47 | |
| 48 | Device(AMRT) { |
| 49 | Name(_ADR, 0x00000000) |
| 50 | } /* end AMRT */ |
| 51 | |
| 52 | /* Gpp 0 */ |
| 53 | Device(PBR4) { |
| 54 | Name(_ADR, 0x00020001) |
| 55 | Name(_PRW, Package() {0x18, 4}) |
| 56 | Method(_PRT,0) { |
| 57 | If(PMOD){ Return(APS4) } /* APIC mode */ |
| 58 | Return (PS4) /* PIC Mode */ |
| 59 | } /* end _PRT */ |
| 60 | } /* end PBR4 */ |
| 61 | |
| 62 | /* Gpp 1 */ |
| 63 | Device(PBR5) { |
| 64 | Name(_ADR, 0x00020002) |
| 65 | Name(_PRW, Package() {0x18, 4}) |
| 66 | Method(_PRT,0) { |
| 67 | If(PMOD){ Return(APS5) } /* APIC mode */ |
| 68 | Return (PS5) /* PIC Mode */ |
| 69 | } /* end _PRT */ |
| 70 | } /* end PBR5 */ |
| 71 | |
| 72 | /* Gpp 2 */ |
| 73 | Device(PBR6) { |
| 74 | Name(_ADR, 0x00020003) |
| 75 | Name(_PRW, Package() {0x18, 4}) |
| 76 | Method(_PRT,0) { |
| 77 | If(PMOD){ Return(APS6) } /* APIC mode */ |
| 78 | Return (PS6) /* PIC Mode */ |
| 79 | } /* end _PRT */ |
| 80 | } /* end PBR6 */ |
| 81 | |
| 82 | /* Gpp 3 */ |
| 83 | Device(PBR7) { |
| 84 | Name(_ADR, 0x00020004) |
| 85 | Name(_PRW, Package() {0x18, 4}) |
| 86 | Method(_PRT,0) { |
| 87 | If(PMOD){ Return(APS7) } /* APIC mode */ |
| 88 | Return (PS7) /* PIC Mode */ |
| 89 | } /* end _PRT */ |
| 90 | } /* end PBR7 */ |
| 91 | |
| 92 | /* Gpp 4 */ |
| 93 | Device(PBR8) { |
| 94 | Name(_ADR, 0x00020005) |
| 95 | Name(_PRW, Package() {0x18, 4}) |
| 96 | Method(_PRT,0) { |
| 97 | If(PMOD){ Return(APS8) } /* APIC mode */ |
| 98 | Return (PS8) /* PIC Mode */ |
| 99 | } /* end _PRT */ |
| 100 | } /* end PBR8 */ |