Angel Pons | 236c637 | 2020-04-03 01:21:05 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Kyösti Mälkki | 9116270 | 2011-11-03 15:22:01 +0200 | [diff] [blame] | 3 | |
| 4 | /* PCI-X devices 04:04.0 and 04:04.1 : AIC-7902W |
| 5 | * U320 SCSI dual-channel controller |
| 6 | */ |
| 7 | |
| 8 | Device (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 | |
| 20 | Device (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 |