25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_ps2_gif.c,v 1.28 2005/04/09 13:33:36 debug Exp $ |
* $Id: dev_ps2_gif.c,v 1.30 2005/11/13 00:14:09 debug Exp $ |
29 |
* |
* |
30 |
* Playstation 2 "gif" graphics device. |
* Playstation 2 "gif" graphics device. |
31 |
* |
* |
398 |
|
|
399 |
d->vfb_data = dev_fb_init(devinit->machine, devinit->machine->memory, |
d->vfb_data = dev_fb_init(devinit->machine, devinit->machine->memory, |
400 |
PS2_FB_ADDR, VFB_PLAYSTATION2, |
PS2_FB_ADDR, VFB_PLAYSTATION2, |
401 |
d->xsize, d->ysize, d->xsize, d->ysize, 24, "Playstation 2", 0); |
d->xsize, d->ysize, d->xsize, d->ysize, 24, "Playstation 2"); |
402 |
if (d->vfb_data == NULL) { |
if (d->vfb_data == NULL) { |
403 |
fprintf(stderr, "could not initialize fb, out of memory\n"); |
fprintf(stderr, "could not initialize fb, out of memory\n"); |
404 |
exit(1); |
exit(1); |
412 |
|
|
413 |
memory_device_register(devinit->machine->memory, devinit->name, |
memory_device_register(devinit->machine->memory, devinit->name, |
414 |
devinit->addr, DEV_PS2_GIF_LENGTH, dev_ps2_gif_access, d, |
devinit->addr, DEV_PS2_GIF_LENGTH, dev_ps2_gif_access, d, |
415 |
MEM_DEFAULT, NULL); |
DM_DEFAULT, NULL); |
416 |
|
|
417 |
return 1; |
return 1; |
418 |
} |
} |