25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_bt431.c,v 1.12 2006/12/30 13:30:57 debug Exp $ |
* $Id: dev_bt431.c,v 1.13 2007/06/15 18:44:19 debug Exp $ |
29 |
* |
* |
30 |
* Brooktree 431, used by TURBOchannel graphics cards. |
* COMMENT: Brooktree BT431, used by TURBOchannel graphics cards |
31 |
* |
* |
32 |
* TODO. |
* TODO. |
33 |
*/ |
*/ |
60 |
}; |
}; |
61 |
|
|
62 |
|
|
|
/* |
|
|
* dev_bt431_access(): |
|
|
*/ |
|
63 |
DEVICE_ACCESS(bt431) |
DEVICE_ACCESS(bt431) |
64 |
{ |
{ |
65 |
struct bt431_data *d = (struct bt431_data *) extra; |
struct bt431_data *d = extra; |
66 |
uint64_t idata = 0, odata = 0; |
uint64_t idata = 0, odata = 0; |
67 |
int btaddr; |
int btaddr; |
68 |
#if 0 |
#if 0 |
198 |
void dev_bt431_init(struct memory *mem, uint64_t baseaddr, |
void dev_bt431_init(struct memory *mem, uint64_t baseaddr, |
199 |
struct vfb_data *vfb_data, int planes) |
struct vfb_data *vfb_data, int planes) |
200 |
{ |
{ |
201 |
struct bt431_data *d = malloc(sizeof(struct bt431_data)); |
struct bt431_data *d; |
202 |
if (d == NULL) { |
|
203 |
fprintf(stderr, "out of memory\n"); |
CHECK_ALLOCATION(d = malloc(sizeof(struct bt431_data))); |
|
exit(1); |
|
|
} |
|
204 |
memset(d, 0, sizeof(struct bt431_data)); |
memset(d, 0, sizeof(struct bt431_data)); |
205 |
|
|
206 |
d->vfb_data = vfb_data; |
d->vfb_data = vfb_data; |
207 |
d->planes = planes; |
d->planes = planes; |
208 |
d->cursor_x = -1; |
d->cursor_x = -1; |