summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-09-17 07:47:51 +0000
committerDave Airlie <airlied@linux.ie>2005-09-17 07:47:51 +0000
commit3c71198a088e71a105e274f176c8ceb503615d46 (patch)
treef505513bfd6dff7267e0cdc0b8469f8764d5f653 /src/radeon.h
parent10cf3523f236a017a1ca7e5ee57e02176b924059 (diff)
Switch radeon driver to using a card type rather than having a IsPCI flag,
allow for PCI/AGP/PCIE cards. Set PCI gart allocation to only happen on PCIE cards. Add Radeon PCIE card detection using capability bits.
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/radeon.h b/src/radeon.h
index ac5ebb0..46ea694 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -299,7 +299,11 @@ typedef enum {
CHIP_ERRATA_PLL_DELAY = 0x00000004
} RADEONErrata;
-
+typedef enum {
+ CARD_PCI,
+ CARD_AGP,
+ CARD_PCIE
+} RADEONCardType;
typedef struct {
CARD32 freq;
@@ -486,7 +490,7 @@ typedef struct {
drmSize registerSize;
drm_handle_t registerHandle;
- Bool IsPCI; /* Current card is a PCI card */
+ RADEONCardType cardType; /* Current card is a PCI card */
drmSize pciSize;
drm_handle_t pciMemHandle;
unsigned char *PCI; /* Map */