static const struct fb_videomode lynx750_ext[] = {
- /* 1024x600-60 VESA [1.71:1] */
+ /* 1024x600-60 VESA [1.71:1] */
{NULL, 60, 1024, 600, 20423, 144, 40, 18, 1, 104, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
- /* 1024x600-70 VESA */
+ /* 1024x600-70 VESA */
{NULL, 70, 1024, 600, 17211, 152, 48, 21, 1, 104, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
- /* 1024x600-75 VESA */
+ /* 1024x600-75 VESA */
{NULL, 75, 1024, 600, 15822, 160, 56, 23, 1, 104, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
- /* 1024x600-85 VESA */
+ /* 1024x600-85 VESA */
{NULL, 85, 1024, 600, 13730, 168, 56, 26, 1, 112, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
{NULL, 60, 1280, 720, 13426, 162, 86, 22, 1, 136, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
- /* 1280x768@60 */
+ /* 1280x768@60 */
{NULL, 60, 1280, 768, 12579, 192, 64, 20, 3, 128, 7,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,FB_VMODE_NONINTERLACED},
{NULL, 60, 1368, 768, 11647, 216, 72, 23, 1, 144, 3,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
- /* 1440 x 900 [16:10] */
+ /* 1440 x 900 [16:10] */
{NULL, 60, 1440, 900, 9392, 232, 80, 28, 1, 152, 3,
FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED},
if (mesg.event & PM_EVENT_SLEEP) {
info = share->fbinfo[0];
if (info)
- /* 1 means do suspend*/
+ /* 1 means do suspend */
fb_set_suspend(info, 1);
info = share->fbinfo[1];
if (info)
- /* 1 means do suspend*/
+ /* 1 means do suspend */
fb_set_suspend(info, 1);
ret = pci_save_state(pdev);
return ret;
}
- /* set chip to sleep mode*/
+ /* set chip to sleep mode */
if (share->suspend)
(*share->suspend)(share);
break;
}
var->height = var->width = -1;
- var->accel_flags = 0;/*FB_ACCELF_TEXT;*/
+ var->accel_flags = 0;/* FB_ACCELF_TEXT; */
/* check if current fb's video memory big enought to hold the onscreen */
request = var->xres_virtual * (var->bits_per_pixel >> 3);
var = &info->var;
ret = 0;
- //pr_debug("regno=%d,red=%d,green=%d,blue=%d\n",regno,red,green,blue);
if (regno > 256) {
pr_err("regno = %d\n", regno);
return -EINVAL;
crtc->proc_panDisplay = hw_sm750_pan_display;
crtc->clear = hw_sm750_crtc_clear;
crtc->line_pad = 16;
- //crtc->xpanstep = crtc->ypanstep = crtc->ywrapstep = 0;
crtc->xpanstep = 8;
crtc->ypanstep = 1;
crtc->ywrapstep = 0;
} else {
output->paths = sm750_crt;
crtc->channel = sm750_secondary;
- /* not consider of padding stuffs for oScreen,need fix*/
+ /* not consider of padding stuffs for oScreen,need fix */
crtc->oScreen = (share->vidmem_size >> 1);
crtc->vScreen = share->pvMem + crtc->oScreen;
}
} else {
output->paths = sm750_crt;
crtc->channel = sm750_primary;
- /* not consider of padding stuffs for oScreen,need fix*/
+ /* not consider of padding stuffs for oScreen,need fix */
crtc->oScreen = (share->vidmem_size >> 1);
crtc->vScreen = share->pvMem + crtc->oScreen;
}
break;
} else if (ret == 3) {
pr_warn("wanna use default mode\n");
- // break;
+ /*break;*/
} else if (ret == 4) {
pr_warn("fall back to any valid mode\n");
} else {
exit:
lynxfb_ops_check_var(var, info);
- // lynxfb_ops_set_par(info);
return ret;
}
spec_share->state.initParm.setAllEngOff = 0;
spec_share->state.initParm.resetMemory = 1;
- /*defaultly turn g_hwcursor on for both view */
+ /* defaultly turn g_hwcursor on for both view */
g_hwcursor = 3;
if (!src || !*src) {
}
#ifdef CAP_EXPANSION
if (getExpRes(exp_res, &spec_share->state.xLCD, &spec_share->state.yLCD)) {
- /* seems exp_res is not valid*/
+ /* seems exp_res is not valid */
spec_share->state.xLCD = spec_share->state.yLCD = 0;
}
#endif
} else {
/* SM750LE only have one crt channel */
spec_share->state.dataflow = sm750_simul_sec;
- /* sm750le do not have complex attributes*/
+ /* sm750le do not have complex attributes */
spec_share->state.nocrt = 0;
}
}
goto err_info1_set;
}
- /* register frame buffer*/
+ /* register frame buffer */
pr_info("Ready to register framebuffer #%d.\n", fbidx);
errno = register_framebuffer(info[fbidx]);
if (errno < 0) {
par = info->par;
unregister_framebuffer(info);
- /* clean crtc & output allocations*/
+ /* clean crtc & output allocations */
par->crtc.clear(&par->crtc);
par->output.clear(&par->output);
- /* release frame buffer*/
+ /* release frame buffer */
framebuffer_release(info);
}
#ifdef CONFIG_MTRR
if (share->mtrr.vram_added)
mtrr_del(share->mtrr.vram, share->vidmem_start, share->vidmem_size);
#endif
- // pci_release_regions(pdev);
iounmap(share->pvReg);
iounmap(share->pvMem);