25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_pmagja.c,v 1.13 2005/02/11 09:53:48 debug Exp $ |
* $Id: dev_pmagja.c,v 1.15 2005/07/19 10:48:06 debug Exp $ |
29 |
* |
* |
30 |
* TURBOchannel PMAG-JA graphics device. |
* TURBOchannel PMAG-JA graphics device. |
31 |
* |
* |
216 |
|
|
217 |
d->irq_nr = irq_nr; |
d->irq_nr = irq_nr; |
218 |
|
|
219 |
d->fb_mem = memory_new(XSIZE * YSIZE * 3); |
d->fb_mem = memory_new(XSIZE * YSIZE * 3, machine->arch); |
220 |
if (d->fb_mem == NULL) { |
if (d->fb_mem == NULL) { |
221 |
fprintf(stderr, "dev_pmagja_init(): out of memory (1)\n"); |
fprintf(stderr, "dev_pmagja_init(): out of memory (1)\n"); |
222 |
exit(1); |
exit(1); |
223 |
} |
} |
224 |
d->vfb_data = dev_fb_init(machine, d->fb_mem, 0, VFB_GENERIC, |
d->vfb_data = dev_fb_init(machine, d->fb_mem, 0, VFB_GENERIC, |
225 |
XSIZE, YSIZE, XSIZE, YSIZE, 24, "PMAG-JA", 1); |
XSIZE, YSIZE, XSIZE, YSIZE, 24, "PMAG-JA"); |
226 |
if (d->vfb_data == NULL) { |
if (d->vfb_data == NULL) { |
227 |
fprintf(stderr, "dev_pmagja_init(): out of memory (2)\n"); |
fprintf(stderr, "dev_pmagja_init(): out of memory (2)\n"); |
228 |
exit(2); |
exit(2); |