comparison drivers/radeon/radeonfb.c @ 1912:33afcb62fc64

Radeon VE support
author nick
date Tue, 18 Sep 2001 16:14:17 +0000
parents 89313cfc8fec
children 717f46012fce
comparison
equal deleted inserted replaced
1911:89313cfc8fec 1912:33afcb62fc64
10 * 2000-09-10 more bug fixes, public release 0.0.5 10 * 2000-09-10 more bug fixes, public release 0.0.5
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 * 16 *
16 * Special thanks to ATI DevRel team for their hardware donations. 17 * Special thanks to ATI DevRel team for their hardware donations.
17 * 18 *
18 */ 19 */
19 20
20 21
21 #define RADEON_VERSION "0.0.9" 22 #define RADEON_VERSION "0.0.10"
22 23
23 24
24 #include <linux/config.h> 25 #include <linux/config.h>
25 #include <linux/module.h> 26 #include <linux/module.h>
26 #include <linux/kernel.h> 27 #include <linux/kernel.h>
60 61
61 enum radeon_chips { 62 enum radeon_chips {
62 RADEON_QD, 63 RADEON_QD,
63 RADEON_QE, 64 RADEON_QE,
64 RADEON_QF, 65 RADEON_QF,
65 RADEON_QG 66 RADEON_QG,
67 RADEON_VE
66 }; 68 };
67 69
68 70
69 static struct pci_device_id radeonfb_pci_table[] __devinitdata = { 71 static struct pci_device_id radeonfb_pci_table[] __devinitdata = {
70 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QD}, 72 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QD},
71 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QE}, 73 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QE},
72 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QF}, 74 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QF},
73 { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_QG, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_QG}, 75 { 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},
74 { 0, } 77 { 0, }
75 }; 78 };
76 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table); 79 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table);
77 80
78 81
638 strcpy(rinfo->name, "Radeon QF "); 641 strcpy(rinfo->name, "Radeon QF ");
639 break; 642 break;
640 case PCI_DEVICE_ID_RADEON_QG: 643 case PCI_DEVICE_ID_RADEON_QG:
641 strcpy(rinfo->name, "Radeon QG "); 644 strcpy(rinfo->name, "Radeon QG ");
642 break; 645 break;
646 case PCI_DEVICE_ID_RADEON_VE:
647 strcpy(rinfo->name, "Radeon VE ");
648 break;
643 default: 649 default:
644 return -ENODEV; 650 return -ENODEV;
645 } 651 }
646 652
647 /* framebuffer size */ 653 /* framebuffer size */
753 if (!noaccel) { 759 if (!noaccel) {
754 /* initialize the engine */ 760 /* initialize the engine */
755 radeon_engine_init (rinfo); 761 radeon_engine_init (rinfo);
756 } 762 }
757 763
758 printk ("radeonfb: ATI Radeon %s %d MB\n", rinfo->ram_type, 764 printk ("radeonfb: ATI %s %d MB\n", rinfo->name,
759 (rinfo->video_ram/(1024*1024))); 765 (rinfo->video_ram/(1024*1024)));
760 766
761 return 0; 767 return 0;
762 } 768 }
763 769