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.
16 /* simple name description */
22 Name(_ADR, 0x00110000)
29 Name(STTM, Buffer(20) {
30 0x78, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
31 0x78, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
32 0x1f, 0x00, 0x00, 0x00
35 /* Start by clearing the PhyRdyChg bits */
43 Method(_GTM, 0x0, NotSerialized) {
46 Method(_STM, 0x3, NotSerialized) {}
51 if (LGreater(P0IS,0)) {
52 return (0x0F) /* sata is visible */
55 return (0x00) /* sata is missing */
64 if (LGreater(P1IS,0)) {
65 return (0x0F) /* sata is visible */
68 return (0x00) /* sata is missing */
77 Name(_ADR, 1) /* IDE Scondary Channel */
78 Method(_GTM, 0x0, NotSerialized) {
81 Method(_STM, 0x3, NotSerialized) {}
87 if (LGreater(P2IS,0)) {
88 return (0x0F) /* sata is visible */
91 return (0x00) /* sata is missing */
100 if (LGreater(P3IS,0)) {
101 return (0x0F) /* sata is visible */
104 return (0x00) /* sata is missing */
110 /* SATA Hot Plug Support */
112 Method(_L1F,0x0,NotSerialized) {
114 if (LGreater(\_SB.P0IS,0)) {
117 Notify(\_SB.PCI0.STCR.PMRY.PMST, 0x01) /* NOTIFY_DEVICE_CHECK */
118 store(one, \_SB.P0PR)
122 if (LGreater(\_SB.P1IS,0)) {
125 Notify(\_SB.PCI0.STCR.PMRY.PSLA, 0x01) /* NOTIFY_DEVICE_CHECK */
126 store(one, \_SB.P1PR)
130 if (LGreater(\_SB.P2IS,0)) {
133 Notify(\_SB.PCI0.STCR.SEDY.SMST, 0x01) /* NOTIFY_DEVICE_CHECK */
134 store(one, \_SB.P2PR)
138 if (LGreater(\_SB.P3IS,0)) {
141 Notify(\_SB.PCI0.STCR.SEDY.SSLA, 0x01) /* NOTIFY_DEVICE_CHECK */
142 store(one, \_SB.P3PR)