Add support for Intel Panther Point PCH
[coreboot.git] / src / southbridge / intel / bd82x6x / acpi / sata.asl
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2009 coresystems GmbH
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; version 2 of
9  * the License.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  */
21
22 // Intel SATA Controller 0:1f.2
23
24 // Note: Some BIOSes put the S-ATA code into an SSDT to make it easily
25 // pluggable
26
27 Device (SATA)
28 {
29         Name (_ADR, 0x001f0002)
30
31         Device (PRID)
32         {
33                 Name (_ADR, 0)
34
35                 // Get Timing Mode
36                 Method (_GTM)
37                 {
38                         Name(PBUF, Buffer(20) {
39                                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
40                                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
41                                 0x00,0x00,0x00,0x00 })
42
43                         CreateDwordField (PBUF,  0, PIO0)
44                         CreateDwordField (PBUF,  4, DMA0)
45                         CreateDwordField (PBUF,  8, PIO1)
46                         CreateDwordField (PBUF, 12, DMA1)
47                         CreateDwordField (PBUF, 16, FLAG)
48
49                         // TODO fill return structure
50
51                         Return (PBUF)
52                 }
53
54                 // Set Timing Mode
55                 Method (_STM, 3)
56                 {
57                         CreateDwordField (Arg0,  0, PIO0)
58                         CreateDwordField (Arg0,  4, DMA0)
59                         CreateDwordField (Arg0,  8, PIO1)
60                         CreateDwordField (Arg0, 12, DMA1)
61                         CreateDwordField (Arg0, 16, FLAG)
62
63                         // TODO: Do the deed
64                 }
65
66                 Device (DSK0)
67                 {
68                         Name (_ADR, 0)
69                         // TODO: _RMV ?
70                         // TODO: _GTF ?
71                 }
72
73                 Device (DSK1)
74                 {
75                         Name (_ADR, 1)
76
77                         // TODO: _RMV ?
78                         // TODO: _GTF ?
79                 }
80
81         }
82 }
83