• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
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) {
32		CMTI,	8,
33		/* Client Management Data register */
34		G64E,	1,
35		G64O,	1,
36		G32O,	2,
37		,		2,
38		GPSL,	2,
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(0x60),		/* AcpiPm1EvgBlk */
77		P1EB, 16,
78		Offset(0xee),
79		UPWS, 3,
80	}
81	OperationRegion (P1E0, SystemIO, P1EB, 0x04)
82		Field (P1E0, ByteAcc, Nolock, Preserve) {
83		Offset(0x02),
84		, 14,
85		PEWD, 1,
86	}
87