0001
0002
0003
0004
0005 #ifndef _INTEL_AGP_H
0006 #define _INTEL_AGP_H
0007
0008
0009 #define INTEL_APSIZE 0xb4
0010 #define INTEL_ATTBASE 0xb8
0011 #define INTEL_AGPCTRL 0xb0
0012 #define INTEL_NBXCFG 0x50
0013 #define INTEL_ERRSTS 0x91
0014
0015
0016 #define I830_GMCH_CTRL 0x52
0017 #define I830_GMCH_ENABLED 0x4
0018 #define I830_GMCH_MEM_MASK 0x1
0019 #define I830_GMCH_MEM_64M 0x1
0020 #define I830_GMCH_MEM_128M 0
0021 #define I830_GMCH_GMS_MASK 0x70
0022 #define I830_GMCH_GMS_DISABLED 0x00
0023 #define I830_GMCH_GMS_LOCAL 0x10
0024 #define I830_GMCH_GMS_STOLEN_512 0x20
0025 #define I830_GMCH_GMS_STOLEN_1024 0x30
0026 #define I830_GMCH_GMS_STOLEN_8192 0x40
0027 #define I830_RDRAM_CHANNEL_TYPE 0x03010
0028 #define I830_RDRAM_ND(x) (((x) & 0x20) >> 5)
0029 #define I830_RDRAM_DDT(x) (((x) & 0x18) >> 3)
0030
0031
0032 #define INTEL_I830_ERRSTS 0x92
0033
0034
0035 #define I855_GMCH_GMS_MASK 0xF0
0036 #define I855_GMCH_GMS_STOLEN_0M 0x0
0037 #define I855_GMCH_GMS_STOLEN_1M (0x1 << 4)
0038 #define I855_GMCH_GMS_STOLEN_4M (0x2 << 4)
0039 #define I855_GMCH_GMS_STOLEN_8M (0x3 << 4)
0040 #define I855_GMCH_GMS_STOLEN_16M (0x4 << 4)
0041 #define I855_GMCH_GMS_STOLEN_32M (0x5 << 4)
0042 #define I85X_CAPID 0x44
0043 #define I85X_VARIANT_MASK 0x7
0044 #define I85X_VARIANT_SHIFT 5
0045 #define I855_GME 0x0
0046 #define I855_GM 0x4
0047 #define I852_GME 0x2
0048 #define I852_GM 0x5
0049
0050
0051 #define INTEL_I845_AGPM 0x51
0052 #define INTEL_I845_ERRSTS 0xc8
0053
0054
0055 #define INTEL_I860_MCHCFG 0x50
0056 #define INTEL_I860_ERRSTS 0xc8
0057
0058
0059 #define I810_GMADR_BAR 0
0060 #define I810_MMADR_BAR 1
0061 #define I810_PTE_BASE 0x10000
0062 #define I810_PTE_MAIN_UNCACHED 0x00000000
0063 #define I810_PTE_LOCAL 0x00000002
0064 #define I810_PTE_VALID 0x00000001
0065 #define I830_PTE_SYSTEM_CACHED 0x00000006
0066
0067 #define I810_SMRAM_MISCC 0x70
0068 #define I810_GFX_MEM_WIN_SIZE 0x00010000
0069 #define I810_GFX_MEM_WIN_32M 0x00010000
0070 #define I810_GMS 0x000000c0
0071 #define I810_GMS_DISABLE 0x00000000
0072 #define I810_PGETBL_CTL 0x2020
0073 #define I810_PGETBL_ENABLED 0x00000001
0074
0075 #define I965_PGETBL_CTL2 0x20c4
0076 #define I965_PGETBL_SIZE_MASK 0x0000000e
0077 #define I965_PGETBL_SIZE_512KB (0 << 1)
0078 #define I965_PGETBL_SIZE_256KB (1 << 1)
0079 #define I965_PGETBL_SIZE_128KB (2 << 1)
0080 #define I965_PGETBL_SIZE_1MB (3 << 1)
0081 #define I965_PGETBL_SIZE_2MB (4 << 1)
0082 #define I965_PGETBL_SIZE_1_5MB (5 << 1)
0083 #define G33_GMCH_SIZE_MASK (3 << 8)
0084 #define G33_GMCH_SIZE_1M (1 << 8)
0085 #define G33_GMCH_SIZE_2M (2 << 8)
0086 #define G4x_GMCH_SIZE_MASK (0xf << 8)
0087 #define G4x_GMCH_SIZE_1M (0x1 << 8)
0088 #define G4x_GMCH_SIZE_2M (0x3 << 8)
0089 #define G4x_GMCH_SIZE_VT_EN (0x8 << 8)
0090 #define G4x_GMCH_SIZE_VT_1M (G4x_GMCH_SIZE_1M | G4x_GMCH_SIZE_VT_EN)
0091 #define G4x_GMCH_SIZE_VT_1_5M ((0x2 << 8) | G4x_GMCH_SIZE_VT_EN)
0092 #define G4x_GMCH_SIZE_VT_2M (G4x_GMCH_SIZE_2M | G4x_GMCH_SIZE_VT_EN)
0093
0094 #define GFX_FLSH_CNTL 0x2170
0095
0096 #define I810_DRAM_CTL 0x3000
0097 #define I810_DRAM_ROW_0 0x00000001
0098 #define I810_DRAM_ROW_0_SDRAM 0x00000001
0099
0100
0101 #define INTEL_815_APCONT 0x51
0102 #define INTEL_815_ATTBASE_MASK ~0x1FFFFFFF
0103
0104
0105 #define INTEL_I820_RDCR 0x51
0106 #define INTEL_I820_ERRSTS 0xc8
0107
0108
0109 #define INTEL_I840_MCHCFG 0x50
0110 #define INTEL_I840_ERRSTS 0xc8
0111
0112
0113 #define INTEL_I850_MCHCFG 0x50
0114 #define INTEL_I850_ERRSTS 0xc8
0115
0116
0117 #define I915_GMADR_BAR 2
0118 #define I915_MMADR_BAR 0
0119 #define I915_PTE_BAR 3
0120 #define I915_GMCH_GMS_STOLEN_48M (0x6 << 4)
0121 #define I915_GMCH_GMS_STOLEN_64M (0x7 << 4)
0122 #define G33_GMCH_GMS_STOLEN_128M (0x8 << 4)
0123 #define G33_GMCH_GMS_STOLEN_256M (0x9 << 4)
0124 #define INTEL_GMCH_GMS_STOLEN_96M (0xa << 4)
0125 #define INTEL_GMCH_GMS_STOLEN_160M (0xb << 4)
0126 #define INTEL_GMCH_GMS_STOLEN_224M (0xc << 4)
0127 #define INTEL_GMCH_GMS_STOLEN_352M (0xd << 4)
0128
0129 #define I915_IFPADDR 0x60
0130 #define I830_HIC 0x70
0131
0132
0133 #define I965_MSAC 0x62
0134 #define I965_IFPADDR 0x70
0135
0136
0137 #define INTEL_I7505_APSIZE 0x74
0138 #define INTEL_I7505_NCAPID 0x60
0139 #define INTEL_I7505_NISTAT 0x6c
0140 #define INTEL_I7505_ATTBASE 0x78
0141 #define INTEL_I7505_ERRSTS 0x42
0142 #define INTEL_I7505_AGPCTRL 0x70
0143 #define INTEL_I7505_MCHCFG 0x50
0144
0145
0146 #define PCI_DEVICE_ID_INTEL_E7221_HB 0x2588
0147 #define PCI_DEVICE_ID_INTEL_E7221_IG 0x258a
0148 #define PCI_DEVICE_ID_INTEL_82946GZ_HB 0x2970
0149 #define PCI_DEVICE_ID_INTEL_82946GZ_IG 0x2972
0150 #define PCI_DEVICE_ID_INTEL_82G35_HB 0x2980
0151 #define PCI_DEVICE_ID_INTEL_82G35_IG 0x2982
0152 #define PCI_DEVICE_ID_INTEL_82965Q_HB 0x2990
0153 #define PCI_DEVICE_ID_INTEL_82965Q_IG 0x2992
0154 #define PCI_DEVICE_ID_INTEL_82965G_HB 0x29A0
0155 #define PCI_DEVICE_ID_INTEL_82965G_IG 0x29A2
0156 #define PCI_DEVICE_ID_INTEL_82965GM_HB 0x2A00
0157 #define PCI_DEVICE_ID_INTEL_82965GM_IG 0x2A02
0158 #define PCI_DEVICE_ID_INTEL_82965GME_HB 0x2A10
0159 #define PCI_DEVICE_ID_INTEL_82965GME_IG 0x2A12
0160 #define PCI_DEVICE_ID_INTEL_82945GME_HB 0x27AC
0161 #define PCI_DEVICE_ID_INTEL_82945GME_IG 0x27AE
0162 #define PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB 0xA010
0163 #define PCI_DEVICE_ID_INTEL_PINEVIEW_M_IG 0xA011
0164 #define PCI_DEVICE_ID_INTEL_PINEVIEW_HB 0xA000
0165 #define PCI_DEVICE_ID_INTEL_PINEVIEW_IG 0xA001
0166 #define PCI_DEVICE_ID_INTEL_G33_HB 0x29C0
0167 #define PCI_DEVICE_ID_INTEL_G33_IG 0x29C2
0168 #define PCI_DEVICE_ID_INTEL_Q35_HB 0x29B0
0169 #define PCI_DEVICE_ID_INTEL_Q35_IG 0x29B2
0170 #define PCI_DEVICE_ID_INTEL_Q33_HB 0x29D0
0171 #define PCI_DEVICE_ID_INTEL_Q33_IG 0x29D2
0172 #define PCI_DEVICE_ID_INTEL_B43_HB 0x2E40
0173 #define PCI_DEVICE_ID_INTEL_B43_IG 0x2E42
0174 #define PCI_DEVICE_ID_INTEL_B43_1_HB 0x2E90
0175 #define PCI_DEVICE_ID_INTEL_B43_1_IG 0x2E92
0176 #define PCI_DEVICE_ID_INTEL_GM45_HB 0x2A40
0177 #define PCI_DEVICE_ID_INTEL_GM45_IG 0x2A42
0178 #define PCI_DEVICE_ID_INTEL_EAGLELAKE_HB 0x2E00
0179 #define PCI_DEVICE_ID_INTEL_EAGLELAKE_IG 0x2E02
0180 #define PCI_DEVICE_ID_INTEL_Q45_HB 0x2E10
0181 #define PCI_DEVICE_ID_INTEL_Q45_IG 0x2E12
0182 #define PCI_DEVICE_ID_INTEL_G45_HB 0x2E20
0183 #define PCI_DEVICE_ID_INTEL_G45_IG 0x2E22
0184 #define PCI_DEVICE_ID_INTEL_G41_HB 0x2E30
0185 #define PCI_DEVICE_ID_INTEL_G41_IG 0x2E32
0186 #define PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB 0x0040
0187 #define PCI_DEVICE_ID_INTEL_IRONLAKE_D2_HB 0x0069
0188 #define PCI_DEVICE_ID_INTEL_IRONLAKE_D_IG 0x0042
0189 #define PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB 0x0044
0190 #define PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB 0x0062
0191 #define PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB 0x006a
0192 #define PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG 0x0046
0193
0194 #endif