1 /* 2 Copyright (c) 2002, Thomas Kurschel 3 4 5 Part of Radeon driver 6 7 Config registers (most are in PCI configuration space) 8 */ 9 10 #ifndef _CONFIG_REGS_H 11 #define _CONFIG_REGS_H 12 13 // mmio registers 14 #define RADEON_CONFIG_CNTL 0x00e0 15 #define RADEON_CFG_ATI_REV_ID_SHIFT 16 16 #define RADEON_CFG_ATI_REV_ID_MASK (0xf << 16) 17 #define RADEON_CONFIG_MEMSIZE 0x00f8 18 # define RADEON_CONFIG_MEMSIZE_MASK 0x1ff00000 19 20 // following registers can be accessed via PCI configuration space too 21 // (PCI-configuration-space-add + 0xf00 = MMIO-address) 22 #define RADEON_VENDOR_ID 0x0f00 23 #define RADEON_DEVICE_ID 0x0f02 24 #define RADEON_COMMAND 0x0f04 25 #define RADEON_STATUS 0x0f06 26 #define RADEON_REVISION_ID 0x0f08 27 #define RADEON_REGPROG_INF 0x0f09 28 #define RADEON_SUB_CLASS 0x0f0a 29 #define RADEON_BASE_CODE 0x0f0b 30 #define RADEON_CACHE_LINE 0x0f0c 31 #define RADEON_LATENCY 0x0f0d 32 #define RADEON_HEADER 0x0f0e 33 #define RADEON_BIST 0x0f0f 34 #define RADEON_MEM_BASE 0x0f10 35 #define RADEON_IO_BASE 0x0f14 36 #define RADEON_REG_BASE 0x0f18 37 #define RADEON_ADAPTER_ID 0x0f2c //mirror of AADPER_ID_W 38 #define RADEON_BIOS_ROM 0x0f30 39 #define RADEON_CAPABILITIES_PTR 0x0f34 40 #define RADEON_INTERRUPT_LINE 0x0f3c 41 #define RADEON_INTERRUPT_PIN 0x0f3d 42 #define RADEON_MIN_GRANT 0x0f3e 43 #define RADEON_MAX_LATENCY 0x0f3f 44 #define RADEON_ADAPTER_ID_W 0x0f4c 45 #define RADEON_CAPABILITIES_ID 0x0f50 46 47 #define RADEON_PMI_CAP_ID 0x0f50 48 #define RADEON_PMI_NXT_CAP_PTR 0x0f51 49 #define RADEON_PMI_PMC_REG 0x0f52 50 #define RADEON_PMI_STATUS 0x0f54 51 #define RADEON_PMI_DATA 0x0f57 52 53 #define RADEON_AGP_CAP_ID 0x0f58 54 #define RADEON_AGP_STATUS 0x0f5c 55 #define RADEON_AGP_COMMAND 0x0f60 56 57 58 #endif 59