blob: 8da4145818cc9d5ddc9ea228b66b2f5ef5b3da57 [file] [log] [blame]
Angel Pons236c6372020-04-03 01:21:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Kyösti Mälkki91162702011-11-03 15:22:01 +02003
4/* PCI-X devices 04:04.0 and 04:04.1 : AIC-7902W
5 * U320 SCSI dual-channel controller
6 */
7
8Device (SCS0)
9{
10 Name (_ADR, 0x00040000)
11 OperationRegion (SCSC, PCI_Config, 0x00, 0x0100)
12 Field (SCSC, ByteAcc, NoLock, Preserve)
13 {
14 Offset (0x2C), SID, 32,
15 Offset (0xE0), PMC, 8,
16 Offset (0xFF), IDW, 8
17 }
18}
19
20Device (SCS1)
21{
22 Name (_ADR, 0x00040001)
23 OperationRegion (SCSC, PCI_Config, 0x00, 0x0100)
24 Field (SCSC, ByteAcc, NoLock, Preserve)
25 {
26 Offset (0x2C), SID, 32,
27 Offset (0xE0), PMC, 8,
28 Offset (0xFF), IDW, 8
29 }
30}
31
32#if 0
33/* Set subsystem id for both SCSI devices.
34 * It may require some delay on wake-up before this can be done.
35 */
36 Method ( )
37 {
38 Or (\_SB.PCI0.HLIB.P64A.SCS0.IDW, 0x01, \_SB.PCI0.HLIB.P64A.SCS0.IDW)
39 Store (0x1106A0A0, \_SB.PCI0.HLIB.P64A.SCS0.SID)
40 And (\_SB.PCI0.HLIB.P64A.SCS0.IDW, 0xFE, \_SB.PCI0.HLIB.P64A.SCS0.IDW)
41
42 Or (\_SB.PCI0.HLIB.P64A.SCS1.IDW, 0x01, \_SB.PCI0.HLIB.P64A.SCS1.IDW)
43 Store (0x1106A0A0, \_SB.PCI0.HLIB.P64A.SCS1.SID)
44 And (\_SB.PCI0.HLIB.P64A.SCS1.IDW, 0xFE, \_SB.PCI0.HLIB.P64A.SCS1.IDW)
45 }
46#endif