2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 Kyösti Mälkki <kyosti.malkki@gmail.com>
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 /* PCI-X devices 04:04.0 and 04:04.1 : AIC-7902W
21 * U320 SCSI dual-channel controller
26 Name (_ADR, 0x00040000)
27 OperationRegion (SCSC, PCI_Config, 0x00, 0x0100)
28 Field (SCSC, ByteAcc, NoLock, Preserve)
30 Offset (0x2C), SID, 32,
31 Offset (0xE0), PMC, 8,
38 Name (_ADR, 0x00040001)
39 OperationRegion (SCSC, PCI_Config, 0x00, 0x0100)
40 Field (SCSC, ByteAcc, NoLock, Preserve)
42 Offset (0x2C), SID, 32,
43 Offset (0xE0), PMC, 8,
49 /* Set subsystem id for both SCSI devices.
50 * It may require some delay on wake-up before this can be done.
54 Or (\_SB.PCI0.HLIB.P64A.SCS0.IDW, 0x01, \_SB.PCI0.HLIB.P64A.SCS0.IDW)
55 Store (0x1106A0A0, \_SB.PCI0.HLIB.P64A.SCS0.SID)
56 And (\_SB.PCI0.HLIB.P64A.SCS0.IDW, 0xFE, \_SB.PCI0.HLIB.P64A.SCS0.IDW)
58 Or (\_SB.PCI0.HLIB.P64A.SCS1.IDW, 0x01, \_SB.PCI0.HLIB.P64A.SCS1.IDW)
59 Store (0x1106A0A0, \_SB.PCI0.HLIB.P64A.SCS1.SID)
60 And (\_SB.PCI0.HLIB.P64A.SCS1.IDW, 0xFE, \_SB.PCI0.HLIB.P64A.SCS1.IDW)