patch-2.3.15 linux/drivers/video/controlfb.c
Next file: linux/drivers/video/cyber2000fb.c
Previous file: linux/drivers/video/clgenfb.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Aug 19 11:01:00 1999
- Orig file:
v2.3.14/linux/drivers/video/controlfb.c
- Orig date:
Wed Aug 18 10:00:52 1999
diff -u --recursive --new-file v2.3.14/linux/drivers/video/controlfb.c linux/drivers/video/controlfb.c
@@ -998,7 +998,7 @@
{
memset(fix, 0, sizeof(*fix));
strcpy(fix->id, "control");
- fix->mmio_start = (char *)p->control_regs_phys;
+ fix->mmio_start = p->control_regs_phys;
fix->mmio_len = sizeof(struct control_regs);
fix->type = FB_TYPE_PACKED_PIXELS;
@@ -1010,7 +1010,7 @@
fix->xpanstep = 0;
*/
- fix->smem_start = (void *)(p->frame_buffer_phys
+ fix->smem_start = (p->frame_buffer_phys
+ control_reg_init[par->vmode-1]->offset[par->cmode]);
fix->smem_len = p->total_vram - control_reg_init[par->vmode-1]->offset[par->cmode];
fix->visual = (par->cmode == CMODE_8) ?
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)