summaryrefslogtreecommitdiff
path: root/src/radeon_reg.h
diff options
context:
space:
mode:
authorMike A. Harris <mharris@redhat.com>2004-03-11 03:32:55 +0000
committerMike A. Harris <mharris@redhat.com>2004-03-11 03:32:55 +0000
commit5c754ceb009577a62691650dbf7c9d9739f28d2f (patch)
tree9f8034f131c2945aeee13f2f7098d3bcc8cdc5a7 /src/radeon_reg.h
parentec3f00ae3c2b6d521364161674ff5d88e10cc62c (diff)
Fixed AGP/PCI card detection in Radeon driver, by walking the PCI
capabilities list in PCI config space (Bugzilla #255) (Mike A. Harris).
Diffstat (limited to 'src/radeon_reg.h')
-rw-r--r--src/radeon_reg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radeon_reg.h b/src/radeon_reg.h
index 821a087e..a623b0aa 100644
--- a/src/radeon_reg.h
+++ b/src/radeon_reg.h
@@ -65,6 +65,13 @@
# define RADEON_AGP_APER_SIZE_8MB (0x3e << 0)
# define RADEON_AGP_APER_SIZE_4MB (0x3f << 0)
# define RADEON_AGP_APER_SIZE_MASK (0x3f << 0)
+#define RADEON_STATUS_PCI_CONFIG 0x06
+# define RADEON_CAP_LIST 0x10
+#define RADEON_CAPABILITIES_PTR 0x0f34 /* PCI */
+#define RADEON_CAPABILITIES_PTR_PCI_CONFIG 0x34 /* offset in PCI config*/
+# define RADEON_CAP_PTR_MASK 0xfc /* mask off reserved bits of CAP_PTR */
+# define RADEON_CAP_ID_NULL 0x00 /* End of capability list */
+# define RADEON_CAP_ID_AGP 0x02 /* AGP capability ID */
#define RADEON_AGP_COMMAND 0x0f60 /* PCI */
#define RADEON_AGP_COMMAND_PCI_CONFIG 0x0060 /* offset in PCI config*/
# define RADEON_AGP_ENABLE (1<<8)