25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_fb.c,v 1.123 2006/07/24 08:08:39 debug Exp $ |
* $Id: dev_fb.c,v 1.127 2006/10/22 04:20:53 debug Exp $ |
29 |
* |
* |
30 |
* Generic framebuffer device. |
* Generic framebuffer device. |
31 |
* |
* |
32 |
* DECstation VFB01 monochrome framebuffer, 1024x864 |
* DECstation VFB01 monochrome framebuffer, 1024x864 |
33 |
* DECstation VFB02 8-bit color framebuffer, 1024x864 |
* DECstation VFB02 8-bit color framebuffer, 1024x864 |
34 |
* DECstation Maxine, 1024x768 8-bit color |
* DECstation Maxine, 1024x768 8-bit color |
|
* HPC (mips, arm, ..) framebuffer |
|
35 |
* Playstation 2 (24-bit color) |
* Playstation 2 (24-bit color) |
36 |
* Generic (any resolution, several bit depths possible, useful for |
* Generic (any resolution, several bit depths possible, useful for |
37 |
* testmachines) |
* testmachines) |
218 |
} |
} |
219 |
#endif |
#endif |
220 |
|
|
|
if (d->fb_window != NULL) |
|
|
console_set_framebuffer_mouse(cursor_x, cursor_y, |
|
|
d->fb_window->fb_number); |
|
|
|
|
221 |
/* debug("dev_fb_setcursor(%i,%i, size %i,%i, on=%i)\n", |
/* debug("dev_fb_setcursor(%i,%i, size %i,%i, on=%i)\n", |
222 |
cursor_x, cursor_y, cursor_xsize, cursor_ysize, on); */ |
cursor_x, cursor_y, cursor_xsize, cursor_ysize, on); */ |
223 |
} |
} |
408 |
#endif /* WITH_X11 */ |
#endif /* WITH_X11 */ |
409 |
|
|
410 |
|
|
411 |
/* |
DEVICE_TICK(fb) |
|
* dev_fb_tick(): |
|
|
* |
|
|
*/ |
|
|
void dev_fb_tick(struct cpu *cpu, void *extra) |
|
412 |
{ |
{ |
413 |
struct vfb_data *d = extra; |
struct vfb_data *d = extra; |
414 |
#ifdef WITH_X11 |
#ifdef WITH_X11 |
608 |
} |
} |
609 |
|
|
610 |
|
|
|
/* |
|
|
* dev_fb_access(): |
|
|
*/ |
|
611 |
DEVICE_ACCESS(fb) |
DEVICE_ACCESS(fb) |
612 |
{ |
{ |
613 |
struct vfb_data *d = extra; |
struct vfb_data *d = extra; |
732 |
* |
* |
733 |
* VFB_DEC_VFB01, _VFB02, and VFB_DEC_MAXINE are DECstation specific. |
* VFB_DEC_VFB01, _VFB02, and VFB_DEC_MAXINE are DECstation specific. |
734 |
* |
* |
735 |
* If type is VFB_HPC, then color encoding differs from the generic case. |
* VFB_HPC is like generic, but the color encoding is done as on HPCmips |
736 |
|
* and Dreamcast. |
737 |
* |
* |
738 |
* If bit_depth = -15 (note the minus sign), then a special hack is used for |
* If bit_depth = -15 (note the minus sign), then a special hack is used for |
739 |
* the Playstation Portable's 5-bit R, 5-bit G, 5-bit B. |
* the Playstation Portable's 5-bit R, 5-bit G, 5-bit B. |