Otto Solares' patch to add radeon 9200
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 25 Nov 2003 16:45:33 +0000 (16:45 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 25 Nov 2003 16:45:33 +0000 (16:45 +0000)
src/mesa/drivers/dri/radeon/server/radeon.h
src/mesa/drivers/dri/radeon/server/radeon_dri.c

index 808289b140fdb2e411c2a060109a753c6a447f71..279673181311430af7e587e9c43a8f5cddf26f46 100644 (file)
 #define PCI_CHIP_RADEON_QY             0x5159
 #define PCI_CHIP_RADEON_QZ             0x515A
 #define PCI_CHIP_R200_Ql               0x516C
+#define PCI_CHIP_RV280_Y_              0x5960
+#define PCI_CHIP_RV280_Ya              0x5961
+#define PCI_CHIP_RV280_Yb              0x5962
+#define PCI_CHIP_RV280_Yc              0x5963
 
 /**
  * \brief Chip families.
@@ -84,6 +88,7 @@ typedef enum {
     CHIP_FAMILY_R200,
     CHIP_FAMILY_RV250,
     CHIP_FAMILY_M9,
+    CHIP_FAMILY_RV280,
     CHIP_FAMILY_R300
 } RADEONChipFamily;
 
index a37561457bcdff6d1106cbe7a6acfc715f7be955..e7414077edf52b3d38bd2352477ecd0d8f1981f9 100644 (file)
@@ -454,7 +454,8 @@ static int RADEONDRIKernelInit( const DRIDriverContext *ctx,
 
    if ( (info->ChipFamily == CHIP_FAMILY_R200) ||
        (info->ChipFamily == CHIP_FAMILY_RV250) ||
-       (info->ChipFamily == CHIP_FAMILY_M9) )
+       (info->ChipFamily == CHIP_FAMILY_M9) ||
+       (info->ChipFamily == CHIP_FAMILY_RV280) )
       drmInfo.func             = DRM_RADEON_INIT_R200_CP;
    else
       drmInfo.func             = DRM_RADEON_INIT_CP;
@@ -1002,6 +1003,13 @@ static int get_chipfamily_from_chipset( RADEONInfoPtr info )
        info->ChipFamily = CHIP_FAMILY_M9;
        break;
 
+    case PCI_CHIP_RV280_Y_:
+    case PCI_CHIP_RV280_Ya:
+    case PCI_CHIP_RV280_Yb:
+    case PCI_CHIP_RV280_Yc:
+       info->ChipFamily = CHIP_FAMILY_RV280;
+        break;
+
     case PCI_CHIP_R300_ND:
     case PCI_CHIP_R300_NE:
     case PCI_CHIP_R300_NF: