patch-2.3.51 linux/drivers/video/aty128fb.c
Next file: linux/drivers/video/atyfb.c
Previous file: linux/drivers/video/amifb.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Wed Mar 8 09:18:23 2000
- Orig file:
v2.3.50/linux/drivers/video/aty128fb.c
- Orig date:
Thu Mar 2 14:36:23 2000
diff -u --recursive --new-file v2.3.50/linux/drivers/video/aty128fb.c linux/drivers/video/aty128fb.c
@@ -1358,7 +1358,7 @@
}
#ifdef CONFIG_FB_COMPAT_XPMAC
- if (console_fb_info == &info->fb_info) {
+ if (!console_fb_info || console_fb_info == &info->fb_info) {
int vmode, cmode;
display_info.width = var->xres;
@@ -1429,13 +1429,8 @@
strcpy(fix->id, aty128fb_name);
-#ifdef CONFIG_PPC /* why? I don't know */
- *fix->smem_start = (long)info->frame_buffer_phys;
- *fix->mmio_start = (long)info->regbase_phys;
-#else
fix->smem_start = (long)info->frame_buffer_phys;
fix->mmio_start = (long)info->regbase_phys;
-#endif
fix->smem_len = (u32)info->vram_size;
fix->mmio_len = 0x1fff;
@@ -1676,7 +1671,7 @@
chip_rev = (aty_ld_le32(CONFIG_CNTL) >> 16) & 0x1F;
/* put a name with the face */
- while (info->pdev->device != aci->device) { aci++; }
+ while (aci->name && info->pdev->device != aci->device) { aci++; }
video_card = (char *)aci->name;
printk(KERN_INFO "aty128fb: %s [chip rev 0x%x] [card rev %x] ",
@@ -1723,7 +1718,10 @@
if (default_cmode == CMODE_NVRAM)
default_cmode = nvram_read_byte(NV_CMODE);
#endif
- }
+ } else if (_machine == _MACH_Pmac)
+ if (mac_vmode_to_var(default_vmode, default_cmode, &var))
+ var = default_var;
+
#endif
#endif /* MODULE */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)