2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 Advanced Micro Devices, Inc.
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.
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.
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
20 /* simple name description */
26 Name(_ADR, 0x00110000)
33 Name(STTM, Buffer(20) {
34 0x78, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
35 0x78, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
36 0x1f, 0x00, 0x00, 0x00
39 /* Start by clearing the PhyRdyChg bits */
47 Method(_GTM, 0x0, NotSerialized) {
50 Method(_STM, 0x3, NotSerialized) {}
55 if (LGreater(P0IS,0)) {
56 return (0x0F) /* sata is visible */
59 return (0x00) /* sata is missing */
68 if (LGreater(P1IS,0)) {
69 return (0x0F) /* sata is visible */
72 return (0x00) /* sata is missing */
81 Name(_ADR, 1) /* IDE Scondary Channel */
82 Method(_GTM, 0x0, NotSerialized) {
85 Method(_STM, 0x3, NotSerialized) {}
91 if (LGreater(P2IS,0)) {
92 return (0x0F) /* sata is visible */
95 return (0x00) /* sata is missing */
104 if (LGreater(P3IS,0)) {
105 return (0x0F) /* sata is visible */
108 return (0x00) /* sata is missing */
114 /* SATA Hot Plug Support */
116 Method(_L1F,0x0,NotSerialized) {
118 if (LGreater(\_SB.P0IS,0)) {
121 Notify(\_SB.PCI0.STCR.PMRY.PMST, 0x01) /* NOTIFY_DEVICE_CHECK */
122 store(one, \_SB.P0PR)
126 if (LGreater(\_SB.P1IS,0)) {
129 Notify(\_SB.PCI0.STCR.PMRY.PSLA, 0x01) /* NOTIFY_DEVICE_CHECK */
130 store(one, \_SB.P1PR)
134 if (LGreater(\_SB.P2IS,0)) {
137 Notify(\_SB.PCI0.STCR.SEDY.SMST, 0x01) /* NOTIFY_DEVICE_CHECK */
138 store(one, \_SB.P2PR)
142 if (LGreater(\_SB.P3IS,0)) {
145 Notify(\_SB.PCI0.STCR.SEDY.SSLA, 0x01) /* NOTIFY_DEVICE_CHECK */
146 store(one, \_SB.P3PR)