25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_dec21030.c,v 1.6 2006/12/30 13:30:57 debug Exp $ |
* $Id: dev_dec21030.c,v 1.7 2007/06/15 18:44:19 debug Exp $ |
29 |
* |
* |
30 |
* DEC 21030 "tga" graphics. |
* COMMENT: DEC 21030 "TGA" graphics card |
31 |
* |
* |
32 |
* Resolutions that seem to be possible: 640x480, 1024x768, 1280x1024. |
* Resolutions that seem to be possible: 640x480, 1024x768, 1280x1024. |
33 |
* 8 bits, perhaps others? (24 bit?) |
* 8 bits, perhaps others? (24 bit?) |
86 |
}; |
}; |
87 |
|
|
88 |
|
|
|
/* |
|
|
* dev_dec21030_access(): |
|
|
*/ |
|
89 |
DEVICE_ACCESS(dec21030) |
DEVICE_ACCESS(dec21030) |
90 |
{ |
{ |
91 |
struct dec21030_data *d = extra; |
struct dec21030_data *d = extra; |
234 |
{ |
{ |
235 |
struct dec21030_data *d; |
struct dec21030_data *d; |
236 |
|
|
237 |
d = malloc(sizeof(struct dec21030_data)); |
CHECK_ALLOCATION(d = malloc(sizeof(struct dec21030_data))); |
|
if (d == NULL) { |
|
|
fprintf(stderr, "out of memory\n"); |
|
|
exit(1); |
|
|
} |
|
238 |
memset(d, 0, sizeof(struct dec21030_data)); |
memset(d, 0, sizeof(struct dec21030_data)); |
239 |
|
|
240 |
memory_device_register(devinit->machine->memory, devinit->name, |
memory_device_register(devinit->machine->memory, devinit->name, |