Update of /cvsroot/linuxdc/linux/drivers/video
In directory usw-pr-cvs1:/tmp/cvs-serv10511/drivers/video
Added Files:
pvr2dcfb.c
Log Message:
Initial framebuffer support @ 640x480-32 (NTSC)
--- NEW FILE ---
/* drivers/video/pvr2dcfb.c
*
* Frame buffer and fbcon support for the NEC PowerVR2 found within the Sega
* Dreamcast.
*
* Copyright (c) 2001 M. R. Brown <mr...@0x...>
*
* This file is part of the LinuxDC project (linuxdc.sourceforge.net).
*
*/
/*
* This driver is mostly based on the excellent amifb and vfb sources. It uses
* an odd scheme for converting hardware values to/from framebuffer values, here are
* some hacked-up formulas:
*
* The Dreamcast has screen offsets from each side of it's four borders and the start
* offsets of the display window. I used these values to calculate 'pseudo' values
* (think of them as placeholders) for the fb video mode, so that when it came time
[...1093 lines suppressed...]
if (*cable_arg)
cable_type = pvr2dc_get_param(cables, cable_arg, 0, 6);
if (*output_arg)
video_output = pvr2dc_get_param(outputs, output_arg, 0, 6);
return 0;
}
#ifdef MODULE
int init_module(void)
{
return pvr2dcfb_init();
}
void cleanup_module(void)
{
unregister_framebuffer(&fb_info);
}
#endif /* MODULE */
|