Skip to contentSkip to conversation

drivers/video/savage

PATCH New Rememberme 1 participant 1 message Feb 24, 2005

Subsystems (2)
lore
Share & tools
lore

Rememberme

author
#0 lore raw

PATCH 2/2 drivers/video/savage

Part 2
The savage driver adapted.

Best regards,

Henk Vergonet

drivers/video/savage/savagefb-i2c.c +1 -1
diff -urpN --exclude='*.o' linux-2.6.11-rc4-vanilla/drivers/video/savage/savagefb-i2c.c linux-2.6.11-rc4/drivers/video/savage/savagefb-i2c.c
@@ -183,7 +183,7 @@ void savagefb_create_i2c_busses(struct f
 	struct savagefb_par *par = (struct savagefb_par *)info->par;
 	par->chan.par	= par;
 
-	switch(info->fix.accel) {
+	switch(par->accel) {
 	case FB_ACCEL_PROSAVAGE_DDRK:
 	case FB_ACCEL_PROSAVAGE_PM:
 		par->chan.reg         = CR_SERIAL2;
drivers/video/savage/savagefb.c +3 -2
diff -urpN --exclude='*.o' linux-2.6.11-rc4-vanilla/drivers/video/savage/savagefb.c linux-2.6.11-rc4/drivers/video/savage/savagefb.c
@@ -1793,9 +1793,10 @@ static int __devinit savage_init_fb_info
 	info->fix.xpanstep	   = 2;
 	info->fix.ypanstep	   = 1;
 	info->fix.ywrapstep   = 0;
-	info->fix.accel       = id->driver_data;
+	info->fix.accel       = FB_ACCEL_DUMMY;
 
-	switch (info->fix.accel) {
+	par->accel = id->driver_data;
+	switch (par->accel) {
 	case FB_ACCEL_SUPERSAVAGE:
 		par->chip = S3_SUPERSAVAGE;
 		snprintf (info->fix.id, 16, "SuperSavage");
drivers/video/savage/savagefb.h +19 -0
diff -urpN --exclude='*.o' linux-2.6.11-rc4-vanilla/drivers/video/savage/savagefb.h linux-2.6.11-rc4/drivers/video/savage/savagefb.h
@@ -76,6 +76,24 @@ typedef enum {
   S3_LAST
 } savage_chipset;
 
+typedef enum {
+	FB_ACCEL_SAVAGE4 = 0x80,	/* S3 Savage4		*/
+	FB_ACCEL_SAVAGE3D,		/* S3 Savage3D		*/
+	FB_ACCEL_SAVAGE3D_MV,		/* S3 Savage3D-MV	*/
+	FB_ACCEL_SAVAGE2000,		/* S3 Savage2000	*/
+	FB_ACCEL_SAVAGE_MX_MV,		/* S3 Savage/MX-MV	*/
+	FB_ACCEL_SAVAGE_MX,		/* S3 Savage/MX		*/
+	FB_ACCEL_SAVAGE_IX_MV,		/* S3 Savage/IX-MV	*/
+	FB_ACCEL_SAVAGE_IX,		/* S3 Savage/IX		*/
+	FB_ACCEL_PROSAVAGE_PM,		/* S3 ProSavage PM133	*/
+	FB_ACCEL_PROSAVAGE_KM,		/* S3 ProSavage KM133	*/
+	FB_ACCEL_S3TWISTER_P,		/* S3 Twister		*/
+	FB_ACCEL_S3TWISTER_K,		/* S3 TwisterK		*/
+	FB_ACCEL_SUPERSAVAGE,		/* S3 Supersavage	*/
+	FB_ACCEL_PROSAVAGE_DDR,		/* S3 ProSavage DDR	*/
+	FB_ACCEL_PROSAVAGE_DDRK		/* S3 ProSavage DDR-K	*/
+} savage_accel;
+
 #define BIOS_BSIZE		     1024
 #define BIOS_BASE		     0xc0000
 
@@ -163,6 +181,7 @@ struct savagefb_i2c_chan {
 struct savagefb_par {
 	struct pci_dev *pcidev;
 	savage_chipset  chip;
+	savage_accel	accel;
 	struct savagefb_i2c_chan chan;
 	unsigned char   *edid;
 	u32 pseudo_palette[16];

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors