intel-agp.h revision 67384fe3fd450536342330f684ea1f7dcaef8130
1ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/*
2ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter * Common Intel AGPGART and GTT definitions.
3ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter */
493f5f7f1249e76a5e8afbdab53f90b10c41fdb61Zhenyu Wang#ifndef _INTEL_AGP_H
593f5f7f1249e76a5e8afbdab53f90b10c41fdb61Zhenyu Wang#define _INTEL_AGP_H
6ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
7ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel registers */
8ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_APSIZE	0xb4
9ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_ATTBASE	0xb8
10ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_AGPCTRL	0xb0
11ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_NBXCFG	0x50
12ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_ERRSTS	0x91
13ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
14ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i830 registers */
15ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_CTRL			0x52
16ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_ENABLED		0x4
17ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_MEM_MASK		0x1
18ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_MEM_64M		0x1
19ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_MEM_128M		0
20ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_GMS_MASK		0x70
21ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_GMS_DISABLED		0x00
22ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_GMS_LOCAL		0x10
23ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_GMS_STOLEN_512	0x20
24ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_GMS_STOLEN_1024	0x30
25ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_GMCH_GMS_STOLEN_8192	0x40
26ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_RDRAM_CHANNEL_TYPE		0x03010
27ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_RDRAM_ND(x)		(((x) & 0x20) >> 5)
28ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_RDRAM_DDT(x)		(((x) & 0x18) >> 3)
29ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
30ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* This one is for I830MP w. an external graphic card */
31ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I830_ERRSTS	0x92
32ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
33ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel 855GM/852GM registers */
34ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_MASK		0xF0
35ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_STOLEN_0M		0x0
36ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_STOLEN_1M		(0x1 << 4)
37ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_STOLEN_4M		(0x2 << 4)
38ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_STOLEN_8M		(0x3 << 4)
39ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_STOLEN_16M	(0x4 << 4)
40ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GMCH_GMS_STOLEN_32M	(0x5 << 4)
41ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I85X_CAPID			0x44
42ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I85X_VARIANT_MASK		0x7
43ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I85X_VARIANT_SHIFT		5
44ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GME			0x0
45ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I855_GM				0x4
46ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I852_GME			0x2
47ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I852_GM				0x5
48ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
49ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i845 registers */
50ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I845_AGPM		0x51
51ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I845_ERRSTS	0xc8
52ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
53ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i860 registers */
54ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I860_MCHCFG	0x50
55ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I860_ERRSTS	0xc8
56ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
57ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i810 registers */
58ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_GMADDR		0x10
59ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_MMADDR		0x14
60ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_PTE_BASE		0x10000
61ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_PTE_MAIN_UNCACHED	0x00000000
62ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_PTE_LOCAL		0x00000002
63ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_PTE_VALID		0x00000001
64ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I830_PTE_SYSTEM_CACHED  0x00000006
65a2757b6fab6dee3dbf43bdb7d7226d03747fbdb1Zhenyu Wang/* GT PTE cache control fields */
66a2757b6fab6dee3dbf43bdb7d7226d03747fbdb1Zhenyu Wang#define GEN6_PTE_UNCACHED	0x00000002
67a2757b6fab6dee3dbf43bdb7d7226d03747fbdb1Zhenyu Wang#define GEN6_PTE_LLC		0x00000004
68a2757b6fab6dee3dbf43bdb7d7226d03747fbdb1Zhenyu Wang#define GEN6_PTE_LLC_MLC	0x00000006
69a2757b6fab6dee3dbf43bdb7d7226d03747fbdb1Zhenyu Wang#define GEN6_PTE_GFDT		0x00000008
70a2757b6fab6dee3dbf43bdb7d7226d03747fbdb1Zhenyu Wang
71ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_SMRAM_MISCC	0x70
72ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_GFX_MEM_WIN_SIZE	0x00010000
73ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_GFX_MEM_WIN_32M	0x00010000
74ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_GMS		0x000000c0
75ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_GMS_DISABLE	0x00000000
76ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_PGETBL_CTL		0x2020
77ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_PGETBL_ENABLED	0x00000001
78201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter/* Note: PGETBL_CTL2 has a different offset on G33. */
79201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define I965_PGETBL_CTL2	0x20c4
80ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_MASK	0x0000000e
81ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_512KB	(0 << 1)
82ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_256KB	(1 << 1)
83ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_128KB	(2 << 1)
84ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_1MB	(3 << 1)
85ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_2MB	(4 << 1)
86ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_PGETBL_SIZE_1_5MB	(5 << 1)
87201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define G33_GMCH_SIZE_MASK	(3 << 8)
88201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define G33_GMCH_SIZE_1M	(1 << 8)
89201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define G33_GMCH_SIZE_2M	(2 << 8)
90201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define G4x_GMCH_SIZE_MASK	(0xf << 8)
91201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define G4x_GMCH_SIZE_1M	(0x1 << 8)
92201728429d6cf336cfd7483fcd1bce47291b2901Daniel Vetter#define G4x_GMCH_SIZE_2M	(0x3 << 8)
93780d7cc44524cd396a34757127f51ecb8ccaf2daChris Wilson#define G4x_GMCH_SIZE_VT_EN	(0x8 << 8)
94780d7cc44524cd396a34757127f51ecb8ccaf2daChris Wilson#define G4x_GMCH_SIZE_VT_1M	(G4x_GMCH_SIZE_1M | G4x_GMCH_SIZE_VT_EN)
95780d7cc44524cd396a34757127f51ecb8ccaf2daChris Wilson#define G4x_GMCH_SIZE_VT_1_5M	((0x2 << 8) | G4x_GMCH_SIZE_VT_EN)
96780d7cc44524cd396a34757127f51ecb8ccaf2daChris Wilson#define G4x_GMCH_SIZE_VT_2M	(G4x_GMCH_SIZE_2M | G4x_GMCH_SIZE_VT_EN)
97ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
98c97689d8860f086125e7ff9cd730027a0057ca4fChris Wilson#define GFX_FLSH_CNTL		0x2170 /* 915+ */
9964757876215fcc515403639fa0bd19e8da7ab06bJesse Barnes#define GFX_FLSH_CNTL_VLV	0x101008
100c97689d8860f086125e7ff9cd730027a0057ca4fChris Wilson
101ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_DRAM_CTL		0x3000
102ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_DRAM_ROW_0		0x00000001
103ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I810_DRAM_ROW_0_SDRAM	0x00000001
104ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
105ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel 815 register */
106ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_815_APCONT	0x51
107ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_815_ATTBASE_MASK	~0x1FFFFFFF
108ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
109ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i820 registers */
110ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I820_RDCR		0x51
111ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I820_ERRSTS	0xc8
112ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
113ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i840 registers */
114ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I840_MCHCFG	0x50
115ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I840_ERRSTS	0xc8
116ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
117ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel i850 registers */
118ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I850_MCHCFG	0x50
119ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I850_ERRSTS	0xc8
120ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
121ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* intel 915G registers */
122ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I915_GMADDR	0x18
123ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I915_MMADDR	0x10
124ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I915_PTEADDR	0x1C
125ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I915_GMCH_GMS_STOLEN_48M	(0x6 << 4)
126ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I915_GMCH_GMS_STOLEN_64M	(0x7 << 4)
127ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define G33_GMCH_GMS_STOLEN_128M	(0x8 << 4)
128ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define G33_GMCH_GMS_STOLEN_256M	(0x9 << 4)
129ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_GMCH_GMS_STOLEN_96M	(0xa << 4)
130ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_GMCH_GMS_STOLEN_160M	(0xb << 4)
131ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_GMCH_GMS_STOLEN_224M	(0xc << 4)
132ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_GMCH_GMS_STOLEN_352M	(0xd << 4)
133ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
134ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I915_IFPADDR    0x60
135bdb8b975fc66e081c3f39be6267701f8226d11aaChris Wilson#define I830_HIC        0x70
136ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
137ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel 965G registers */
138ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_MSAC 0x62
139ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define I965_IFPADDR    0x70
140ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
141ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* Intel 7505 registers */
142ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_APSIZE	0x74
143ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_NCAPID	0x60
144ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_NISTAT	0x6c
145ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_ATTBASE	0x78
146ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_ERRSTS	0x42
147ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_AGPCTRL	0x70
148ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define INTEL_I7505_MCHCFG	0x50
149ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
150ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_CTRL	0x50
151ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_MASK	0xF8
152ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_32M		(1 << 3)
153ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_64M		(2 << 3)
154ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_96M		(3 << 3)
155ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_128M	(4 << 3)
156ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_160M	(5 << 3)
157ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_192M	(6 << 3)
158ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_224M	(7 << 3)
159ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_256M	(8 << 3)
160ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_288M	(9 << 3)
161ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_320M	(0xa << 3)
162ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_352M	(0xb << 3)
163ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_384M	(0xc << 3)
164ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_416M	(0xd << 3)
165ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_448M	(0xe << 3)
166ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_480M	(0xf << 3)
167ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GMCH_GMS_STOLEN_512M	(0x10 << 3)
168ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GTT_SIZE_0M			(0 << 8)
169ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GTT_SIZE_1M			(1 << 8)
170ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GTT_SIZE_2M			(2 << 8)
171ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define SNB_GTT_SIZE_MASK		(3 << 8)
172ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
173ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter/* pci devices ids */
174ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_E7221_HB	0x2588
175ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_E7221_IG	0x258a
176ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82946GZ_HB      0x2970
177ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82946GZ_IG      0x2972
178ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82G35_HB     0x2980
179ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82G35_IG     0x2982
180ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965Q_HB       0x2990
181ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965Q_IG       0x2992
182ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965G_HB       0x29A0
183ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965G_IG       0x29A2
184ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965GM_HB      0x2A00
185ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965GM_IG      0x2A02
186ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965GME_HB     0x2A10
187ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82965GME_IG     0x2A12
188ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82945GME_HB     0x27AC
189ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_82945GME_IG     0x27AE
190ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB        0xA010
191ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_PINEVIEW_M_IG        0xA011
192ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_PINEVIEW_HB         0xA000
193ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_PINEVIEW_IG         0xA001
194ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_G33_HB          0x29C0
195ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_G33_IG          0x29C2
196ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_Q35_HB          0x29B0
197ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_Q35_IG          0x29B2
198ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_Q33_HB          0x29D0
199ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_Q33_IG          0x29D2
200ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_B43_HB          0x2E40
201ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_B43_IG          0x2E42
20241a51428916ab04587bacee2dda61c4a0c4fc02fChris Wilson#define PCI_DEVICE_ID_INTEL_B43_1_HB        0x2E90
20341a51428916ab04587bacee2dda61c4a0c4fc02fChris Wilson#define PCI_DEVICE_ID_INTEL_B43_1_IG        0x2E92
204ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_GM45_HB         0x2A40
205ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_GM45_IG         0x2A42
206ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_EAGLELAKE_HB        0x2E00
207ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_EAGLELAKE_IG        0x2E02
208ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_Q45_HB          0x2E10
209ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_Q45_IG          0x2E12
210ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_G45_HB          0x2E20
211ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_G45_IG          0x2E22
212ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_G41_HB          0x2E30
213ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_G41_IG          0x2E32
214ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB	    0x0040
21567384fe3fd450536342330f684ea1f7dcaef8130Eugeni Dodonov#define PCI_DEVICE_ID_INTEL_IRONLAKE_D2_HB	    0x0069
216ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_IRONLAKE_D_IG	    0x0042
217ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB	    0x0044
218ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB	    0x0062
219ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB    0x006a
220ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter#define PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG	    0x0046
2218554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB		0x0100  /* Desktop */
2228554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_GT1_IG		0x0102
2238554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_GT2_IG		0x0112
2248554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_GT2_PLUS_IG	0x0122
2258554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB		0x0104  /* Mobile */
2268554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_GT1_IG	0x0106
2278554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_GT2_IG	0x0116
2288554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_GT2_PLUS_IG	0x0126
2298554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_HB		0x0108  /* Server */
2308554048070906579ec9fa19ac381deddd2d7b155Zhenyu Wang#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_IG		0x010A
231246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_HB		0x0150  /* Desktop */
232246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_GT1_IG		0x0152
233246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_GT2_IG		0x0162
234246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_M_HB		0x0154  /* Mobile */
235246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_M_GT1_IG		0x0156
236246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_M_GT2_IG		0x0166
237246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_S_HB		0x0158  /* Server */
238246d08b8f94a5545077611ab5bfb9d47014ede75Jesse Barnes#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_S_GT1_IG		0x015A
239cc22a938fc1db0c8ef5e693a69b159c4b851dab3Eugeni Dodonov#define PCI_DEVICE_ID_INTEL_IVYBRIDGE_S_GT2_IG		0x016A
24064757876215fcc515403639fa0bd19e8da7ab06bJesse Barnes#define PCI_DEVICE_ID_INTEL_VALLEYVIEW_HB		0x0F00 /* VLV1 */
24164757876215fcc515403639fa0bd19e8da7ab06bJesse Barnes#define PCI_DEVICE_ID_INTEL_VALLEYVIEW_IG		0x0F30
2424cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_HB				0x0400 /* Desktop */
2434cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_D_GT1_IG		0x0402
2444cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_D_GT2_IG		0x0412
2454cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_M_HB			0x0404 /* Mobile */
2464cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_M_GT1_IG		0x0406
2474cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_M_GT2_IG		0x0416
2484cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_S_HB			0x0408 /* Server */
2494cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_S_GT1_IG		0x040a
2504cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_S_GT2_IG		0x041a
2514cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_SDV		0x0c16 /* SDV */
2524cae9ae052fe630e63f28be6b0b115fbf52e63fbEugeni Dodonov#define PCI_DEVICE_ID_INTEL_HASWELL_E_HB			0x0c04
253ff7cdd691a0c4925c1803bf89a4c08ccda2d7658Daniel Vetter
254e2404e7c3fe6f46e161edf085c6d9bea06ebe488Daniel Vetterint intel_gmch_probe(struct pci_dev *pdev,
255e2404e7c3fe6f46e161edf085c6d9bea06ebe488Daniel Vetter			       struct agp_bridge_data *bridge);
256e2404e7c3fe6f46e161edf085c6d9bea06ebe488Daniel Vettervoid intel_gmch_remove(struct pci_dev *pdev);
25793f5f7f1249e76a5e8afbdab53f90b10c41fdb61Zhenyu Wang#endif
258