Angel Pons | 182dbde | 2020-04-02 23:49:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 2 | |
| 3 | /* PCI IRQ mapping registers, C00h-C01h. */ |
| 4 | OperationRegion(PRQM, SystemIO, 0x00000C00, 0x00000002) |
| 5 | Field(PRQM, ByteAcc, NoLock, Preserve) { |
| 6 | PRQI, 0x00000008, |
| 7 | PRQD, 0x00000008, /* Offset: 1h */ |
| 8 | } |
| 9 | IndexField(PRQI, PRQD, ByteAcc, NoLock, Preserve) { |
| 10 | PIRA, 0x00000008, /* Index 0 */ |
| 11 | PIRB, 0x00000008, /* Index 1 */ |
| 12 | PIRC, 0x00000008, /* Index 2 */ |
| 13 | PIRD, 0x00000008, /* Index 3 */ |
| 14 | PIRE, 0x00000008, /* Index 4 */ |
| 15 | PIRF, 0x00000008, /* Index 5 */ |
| 16 | PIRG, 0x00000008, /* Index 6 */ |
| 17 | PIRH, 0x00000008, /* Index 7 */ |
| 18 | } |
| 19 | |
| 20 | /* PCI Error control register */ |
| 21 | OperationRegion(PERC, SystemIO, 0x00000C14, 0x00000001) |
| 22 | Field(PERC, ByteAcc, NoLock, Preserve) { |
| 23 | SENS, 0x00000001, |
| 24 | PENS, 0x00000001, |
| 25 | SENE, 0x00000001, |
| 26 | PENE, 0x00000001, |
| 27 | } |
| 28 | |
| 29 | /* Client Management index/data registers */ |
| 30 | OperationRegion(CMT, SystemIO, 0x00000C50, 0x00000002) |
| 31 | Field(CMT, ByteAcc, NoLock, Preserve) { |
Mike Loptien | ac90d80 | 2013-07-17 15:14:59 -0600 | [diff] [blame] | 32 | CMTI, 8, |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 33 | /* Client Management Data register */ |
Mike Loptien | ac90d80 | 2013-07-17 15:14:59 -0600 | [diff] [blame] | 34 | G64E, 1, |
| 35 | G64O, 1, |
| 36 | G32O, 2, |
| 37 | , 2, |
| 38 | GPSL, 2, |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | /* GPM Port register */ |
| 42 | OperationRegion(GPT, SystemIO, 0x00000C52, 0x00000001) |
| 43 | Field(GPT, ByteAcc, NoLock, Preserve) { |
| 44 | GPB0,1, |
| 45 | GPB1,1, |
| 46 | GPB2,1, |
| 47 | GPB3,1, |
| 48 | GPB4,1, |
| 49 | GPB5,1, |
| 50 | GPB6,1, |
| 51 | GPB7,1, |
| 52 | } |
| 53 | |
| 54 | /* Flash ROM program enable register */ |
| 55 | OperationRegion(FRE, SystemIO, 0x00000C6F, 0x00000001) |
| 56 | Field(FRE, ByteAcc, NoLock, Preserve) { |
| 57 | , 0x00000006, |
| 58 | FLRE, 0x00000001, |
| 59 | } |
| 60 | |
| 61 | /* PM2 index/data registers */ |
| 62 | OperationRegion(PM2R, SystemIO, 0x00000CD0, 0x00000002) |
| 63 | Field(PM2R, ByteAcc, NoLock, Preserve) { |
| 64 | PM2I, 0x00000008, |
| 65 | PM2D, 0x00000008, |
| 66 | } |
| 67 | |
| 68 | /* Power Management I/O registers, TODO:PMIO is quite different in SB800. */ |
| 69 | OperationRegion(PIOR, SystemIO, 0x00000CD6, 0x00000002) |
| 70 | Field(PIOR, ByteAcc, NoLock, Preserve) { |
| 71 | PIOI, 0x00000008, |
| 72 | PIOD, 0x00000008, |
| 73 | } |
| 74 | |
| 75 | IndexField (PIOI, PIOD, ByteAcc, NoLock, Preserve) { |
| 76 | Offset(0xEE), |
| 77 | UPWS, 3, |
| 78 | } |