comparison drivers/radeon/radeonfb.c @ 1913:717f46012fce

Radeon VE QZ support
author nick
date Tue, 18 Sep 2001 16:16:19 +0000
parents 33afcb62fc64
children 838bfa146fa3
comparison
equal deleted inserted replaced
1912:33afcb62fc64 1913:717f46012fce
11 * 2001-02-19 mode bug fixes, 0.0.7 11 * 2001-02-19 mode bug fixes, 0.0.7
12 * 2001-07-05 fixed scrolling issues, engine initialization, 12 * 2001-07-05 fixed scrolling issues, engine initialization,
13 * and minor mode tweaking, 0.0.9 13 * and minor mode tweaking, 0.0.9
14 * 14 *
15 * 2001-09-07 Radeon VE support 15 * 2001-09-07 Radeon VE support
16 * 2001-09-10 Radeon VE QZ support by Nick Kurshev <nickols_k@mail.ru>
17 * (limitations: on dualhead Radeons (VE, M6, M7)
18 * driver works only on second head (DVI port).
19 * TVout is not supported too. M6 & M7 chips
20 * currently are not supported. Driver has a lot
21 * of other bugs. Probably they can be solved by
22 * importing XFree86 code, which has ATI's support).,
23 * 0.0.11
24 *
16 * 25 *
17 * Special thanks to ATI DevRel team for their hardware donations. 26 * Special thanks to ATI DevRel team for their hardware donations.
18 * 27 *
19 */ 28 */
20 29
21 30
22 #define RADEON_VERSION "0.0.10" 31 #define RADEON_VERSION "0.0.11"
23 32
24 33
25 #include <linux/config.h> 34 #include <linux/config.h>
26 #include <linux/module.h> 35 #include <linux/module.h>
27 #include <linux/kernel.h> 36 #include <linux/kernel.h>
62 enum radeon_chips { 71 enum radeon_chips {
63 RADEON_QD, 72 RADEON_QD,
64 RADEON_QE, 73 RADEON_QE,
65 RADEON_QF, 74 RADEON_QF,
66 RADEON_QG, 75 RADEON_QG,
67 RADEON_VE 76 RADEON_QY,
77 RADEON_QZ
68 }; 78 };
69 79
70 80
71 static struct pci_device_id radeonfb_pci_table[] __devinitdata = { 81 static struct pci_device_id radeonfb_pci_table[] __devinitdata = {
72 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QD}, 82 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QD},
73 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QE}, 83 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QE},
74 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QF}, 84 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QF},
75 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QG, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QG}, 85 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QG, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QG},
76 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_VE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_VE}, 86 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QY, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QY},
87 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QZ, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QZ},
77 { 0, } 88 { 0, }
78 }; 89 };
79 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table); 90 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table);
80 91
81 92
174 struct fb_info info; 185 struct fb_info info;
175 186
176 struct radeon_regs state; 187 struct radeon_regs state;
177 struct radeon_regs init_state; 188 struct radeon_regs init_state;
178 189
179 char name[10]; 190 char name[14];
180 char ram_type[12]; 191 char ram_type[12];
181 192
182 u32 mmio_base_phys; 193 u32 mmio_base_phys;
183 u32 fb_base_phys; 194 u32 fb_base_phys;
184 195
641 strcpy(rinfo->name, "Radeon QF "); 652 strcpy(rinfo->name, "Radeon QF ");
642 break; 653 break;
643 case PCI_DEVICE_ID_RADEON_QG: 654 case PCI_DEVICE_ID_RADEON_QG:
644 strcpy(rinfo->name, "Radeon QG "); 655 strcpy(rinfo->name, "Radeon QG ");
645 break; 656 break;
646 case PCI_DEVICE_ID_RADEON_VE: 657 case PCI_DEVICE_ID_RADEON_QY:
647 strcpy(rinfo->name, "Radeon VE "); 658 strcpy(rinfo->name, "Radeon VE QY");
659 break;
660 case PCI_DEVICE_ID_RADEON_QZ:
661 strcpy(rinfo->name, "Radeon VE QZ");
648 break; 662 break;
649 default: 663 default:
650 return -ENODEV; 664 return -ENODEV;
651 } 665 }
652 666