agp.h
来自「linux-2.4.29操作系统的源码」· C头文件 代码 · 共 572 行 · 第 1/2 页
H
572 行
#define PCI_VENDOR_ID_AL 0x10b9#endif#ifndef PCI_DEVICE_ID_AL_M1541_0#define PCI_DEVICE_ID_AL_M1541_0 0x1541#endif#ifndef PCI_DEVICE_ID_AL_M1621_0#define PCI_DEVICE_ID_AL_M1621_0 0x1621#endif#ifndef PCI_DEVICE_ID_AL_M1631_0#define PCI_DEVICE_ID_AL_M1631_0 0x1631#endif#ifndef PCI_DEVICE_ID_AL_M1632_0#define PCI_DEVICE_ID_AL_M1632_0 0x1632#endif#ifndef PCI_DEVICE_ID_AL_M1641_0#define PCI_DEVICE_ID_AL_M1641_0 0x1641#endif#ifndef PCI_DEVICE_ID_AL_M1644_0#define PCI_DEVICE_ID_AL_M1644_0 0x1644#endif#ifndef PCI_DEVICE_ID_AL_M1647_0#define PCI_DEVICE_ID_AL_M1647_0 0x1647#endif#ifndef PCI_DEVICE_ID_AL_M1651_0#define PCI_DEVICE_ID_AL_M1651_0 0x1651#endif#ifndef PCI_DEVICE_ID_AL_M1671_0#define PCI_DEVICE_ID_AL_M1671_0 0x1671#endif#ifndef PCI_VENDOR_ID_ATI#define PCI_VENDOR_ID_ATI 0x1002#endif#ifndef PCI_DEVICE_ID_ATI_RS100#define PCI_DEVICE_ID_ATI_RS100 0xcab0#endif#ifndef PCI_DEVICE_ID_ATI_RS200#define PCI_DEVICE_ID_ATI_RS200 0xcab2#endif#ifndef PCI_DEVICE_ID_ATI_RS200_REV2#define PCI_DEVICE_ID_ATI_RS200_REV2 0xcbb2#endif#ifndef PCI_DEVICE_ID_ATI_RS250#define PCI_DEVICE_ID_ATI_RS250 0xcab3#endif#ifndef PCI_DEVICE_ID_ATI_RS200_B#define PCI_DEVICE_ID_ATI_RS200_B 0xcbb3#endif#ifndef PCI_DEVICE_ID_ATI_RS300_100#define PCI_DEVICE_ID_ATI_RS300_100 0x5830#endif#ifndef PCI_DEVICE_ID_ATI_RS300_133#define PCI_DEVICE_ID_ATI_RS300_133 0x5831#endif#ifndef PCI_DEVICE_ID_ATI_RS300_166#define PCI_DEVICE_ID_ATI_RS300_166 0x5832#endif#ifndef PCI_DEVICE_ID_ATI_RS300_200#define PCI_DEVICE_ID_ATI_RS300_200 0x5833#endif/* intel register */#define INTEL_APBASE 0x10#define INTEL_APSIZE 0xb4#define INTEL_ATTBASE 0xb8#define INTEL_AGPCTRL 0xb0#define INTEL_NBXCFG 0x50#define INTEL_ERRSTS 0x91/* Intel 460GX Registers */#define INTEL_I460_APBASE 0x10#define INTEL_I460_BAPBASE 0x98#define INTEL_I460_GXBCTL 0xa0#define INTEL_I460_AGPSIZ 0xa2#define INTEL_I460_ATTBASE 0xfe200000#define INTEL_I460_GATT_VALID (1UL << 24)#define INTEL_I460_GATT_COHERENT (1UL << 25)/* Intel 855GM/852GM registers */#define I855_GMCH_CTRL 0x52#define I855_GMCH_ENABLED 0x4#define I855_GMCH_GMS_MASK (0x7 << 4)#define I855_GMCH_GMS_STOLEN_0M 0x0#define I855_GMCH_GMS_STOLEN_1M (0x1 << 4)#define I855_GMCH_GMS_STOLEN_4M (0x2 << 4)#define I855_GMCH_GMS_STOLEN_8M (0x3 << 4)#define I855_GMCH_GMS_STOLEN_16M (0x4 << 4)#define I855_GMCH_GMS_STOLEN_32M (0x5 << 4)#define I85X_CAPID 0x44#define I85X_VARIANT_MASK 0x7#define I85X_VARIANT_SHIFT 5#define I855_GME 0x0#define I855_GM 0x4#define I852_GME 0x2#define I852_GM 0x5#define I855_PME 0x0#define I855_PM 0x4#define I852_PME 0x2#define I852_PM 0x5/* intel i830 registers */#define I830_GMCH_CTRL 0x52#define I830_GMCH_ENABLED 0x4#define I830_GMCH_MEM_MASK 0x1#define I830_GMCH_MEM_64M 0x1#define I830_GMCH_MEM_128M 0#define I830_GMCH_GMS_MASK 0x70#define I830_GMCH_GMS_DISABLED 0x00#define I830_GMCH_GMS_LOCAL 0x10#define I830_GMCH_GMS_STOLEN_512 0x20#define I830_GMCH_GMS_STOLEN_1024 0x30#define I830_GMCH_GMS_STOLEN_8192 0x40#define I830_RDRAM_CHANNEL_TYPE 0x03010#define I830_RDRAM_ND(x) (((x) & 0x20) >> 5)#define I830_RDRAM_DDT(x) (((x) & 0x18) >> 3)/* This one is for I830MP w. an external graphic card */#define INTEL_I830_ERRSTS 0x92/* intel 815 register */#define INTEL_815_APCONT 0x51#define INTEL_815_ATTBASE_MASK ~0x1FFFFFFF/* intel i820 registers */#define INTEL_I820_RDCR 0x51#define INTEL_I820_ERRSTS 0xc8/* intel i840 registers */#define INTEL_I840_MCHCFG 0x50#define INTEL_I840_ERRSTS 0xc8 /* intel i845 registers */#define INTEL_I845_AGPM 0x51#define INTEL_I845_ERRSTS 0xc8/* intel i850 registers */#define INTEL_I850_MCHCFG 0x50#define INTEL_I850_ERRSTS 0xc8/* intel i860 registers */#define INTEL_I860_MCHCFG 0x50#define INTEL_I860_ERRSTS 0xc8/* intel i7505 registers */#define INTEL_I7505_MCHCFG 0x50#define INTEL_I7505_ERRSTS 0x42/* intel i810 registers */#define I810_GMADDR 0x10#define I810_MMADDR 0x14#define I810_PTE_BASE 0x10000#define I810_PTE_MAIN_UNCACHED 0x00000000#define I810_PTE_LOCAL 0x00000002#define I810_PTE_VALID 0x00000001#define I810_SMRAM_MISCC 0x70#define I810_GFX_MEM_WIN_SIZE 0x00010000#define I810_GFX_MEM_WIN_32M 0x00010000#define I810_GMS 0x000000c0#define I810_GMS_DISABLE 0x00000000#define I810_PGETBL_CTL 0x2020#define I810_PGETBL_ENABLED 0x00000001#define I810_DRAM_CTL 0x3000#define I810_DRAM_ROW_0 0x00000001#define I810_DRAM_ROW_0_SDRAM 0x00000001/* intel I915 registers */#define I915_GMADDR 0x18#define I915_MMADDR 0x10#define I915_PTEADDR 0x1C#define I915_GMCH_GMS_STOLEN_48M (0x6 << 4)#define I915_GMCH_GMS_STOLEN_64M (0x7 << 4)/* VIA register */#define VIA_APBASE 0x10#define VIA_GARTCTRL 0x80#define VIA_APSIZE 0x84#define VIA_ATTBASE 0x88/* SiS registers */#define SIS_APBASE 0x10#define SIS_ATTBASE 0x90#define SIS_APSIZE 0x94#define SIS_TLBCNTRL 0x97#define SIS_TLBFLUSH 0x98/* AMD registers */#define AMD_APBASE 0x10#define AMD_MMBASE 0x14#define AMD_APSIZE 0xac#define AMD_MODECNTL 0xb0#define AMD_MODECNTL2 0xb2#define AMD_GARTENABLE 0x02 /* In mmio region (16-bit register) */#define AMD_ATTBASE 0x04 /* In mmio region (32-bit register) */#define AMD_TLBFLUSH 0x0c /* In mmio region (32-bit register) */#define AMD_CACHEENTRY 0x10 /* In mmio region (32-bit register) */#define AMD_8151_APSIZE 0xb4#define AMD_8151_GARTBLOCK 0xb8#define AMD_X86_64_GARTAPERTURECTL 0x90#define AMD_X86_64_GARTAPERTUREBASE 0x94#define AMD_X86_64_GARTTABLEBASE 0x98#define AMD_X86_64_GARTCACHECTL 0x9c#define AMD_X86_64_GARTEN 1<<0#define AMD_8151_VMAPERTURE 0x10#define AMD_8151_AGP_CTL 0xb0#define AMD_8151_APERTURESIZE 0xb4#define AMD_8151_GARTPTR 0xb8#define AMD_8151_GTLBEN 1<<7#define AMD_8151_APEREN 1<<8/* ALi registers */#define ALI_APBASE 0x10#define ALI_AGPCTRL 0xb8#define ALI_ATTBASE 0xbc#define ALI_TLBCTRL 0xc0#define ALI_TAGCTRL 0xc4#define ALI_CACHE_FLUSH_CTRL 0xD0#define ALI_CACHE_FLUSH_ADDR_MASK 0xFFFFF000#define ALI_CACHE_FLUSH_EN 0x100/* Serverworks Registers */#define SVWRKS_APSIZE 0x10#define SVWRKS_SIZE_MASK 0xfe000000#define SVWRKS_MMBASE 0x14#define SVWRKS_CACHING 0x4b#define SVWRKS_FEATURE 0x68/* func 1 registers */#define SVWRKS_AGP_ENABLE 0x60#define SVWRKS_COMMAND 0x04/* Memory mapped registers */#define SVWRKS_GART_CACHE 0x02#define SVWRKS_GATTBASE 0x04#define SVWRKS_TLBFLUSH 0x10#define SVWRKS_POSTFLUSH 0x14#define SVWRKS_DIRFLUSH 0x0c/* NVIDIA registers */#define NVIDIA_0_APBASE 0x10#define NVIDIA_0_APSIZE 0x80#define NVIDIA_1_WBC 0xf0#define NVIDIA_2_GARTCTRL 0xd0#define NVIDIA_2_APBASE 0xd8#define NVIDIA_2_APLIMIT 0xdc#define NVIDIA_2_ATTBASE(i) (0xe0 + (i) * 4)#define NVIDIA_3_APBASE 0x50#define NVIDIA_3_APLIMIT 0x54/* NVIDIA x86-64 registers */#define NVIDIA_X86_64_0_APBASE 0x10#define NVIDIA_X86_64_1_APBASE1 0x50#define NVIDIA_X86_64_1_APLIMIT1 0x54#define NVIDIA_X86_64_1_APSIZE 0xa8#define NVIDIA_X86_64_1_APBASE2 0xd8#define NVIDIA_X86_64_1_APLIMIT2 0xdc/* HP ZX1 IOC registers */#define HP_ZX1_IBASE 0x300#define HP_ZX1_IMASK 0x308#define HP_ZX1_PCOM 0x310#define HP_ZX1_TCNFG 0x318#define HP_ZX1_PDIR_BASE 0x320/* HP ZX1 LBA registers */#define HP_ZX1_AGP_STATUS 0x64#define HP_ZX1_AGP_COMMAND 0x68/* ATI register */#define ATI_APBASE 0x10#define ATI_GART_MMBASE_ADDR 0x14#define ATI_RS100_APSIZE 0xac#define ATI_RS300_APSIZE 0xf8#define ATI_RS100_IG_AGPMODE 0xb0#define ATI_RS300_IG_AGPMODE 0xfc#define ATI_GART_FEATURE_ID 0x00#define ATI_GART_BASE 0x04#define ATI_GART_CACHE_SZBASE 0x08#define ATI_GART_CACHE_CNTRL 0x0c#define ATI_GART_CACHE_ENTRY_CNTRL 0x10#endif /* _AGP_BACKEND_PRIV_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?