25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_turbochannel.c,v 1.42 2005/06/26 11:43:48 debug Exp $ |
* $Id: dev_turbochannel.c,v 1.43 2005/07/12 08:49:13 debug Exp $ |
29 |
* |
* |
30 |
* Generic framework for TURBOchannel devices, used in DECstation machines. |
* Generic framework for TURBOchannel devices, used in DECstation machines. |
31 |
*/ |
*/ |
249 |
} else if (strcmp(device_name, "PMAG-AA")==0) { |
} else if (strcmp(device_name, "PMAG-AA")==0) { |
250 |
/* mfb in NetBSD */ |
/* mfb in NetBSD */ |
251 |
fb = dev_fb_init(machine, mem, baseaddr + VFB_MFB_VRAM, |
fb = dev_fb_init(machine, mem, baseaddr + VFB_MFB_VRAM, |
252 |
VFB_GENERIC, 1280, 1024, 2048, 1024, 8, device_name, 1); |
VFB_GENERIC, 1280, 1024, 2048, 1024, 8, device_name); |
253 |
/* bt455 = palette, bt431 = cursor */ |
/* bt455 = palette, bt431 = cursor */ |
254 |
dev_bt455_init(mem, baseaddr + VFB_MFB_BT455, fb); |
dev_bt455_init(mem, baseaddr + VFB_MFB_BT455, fb); |
255 |
dev_bt431_init(mem, baseaddr + VFB_MFB_BT431, fb, 8); |
dev_bt431_init(mem, baseaddr + VFB_MFB_BT431, fb, 8); |
257 |
} else if (strcmp(device_name, "PMAG-BA")==0) { |
} else if (strcmp(device_name, "PMAG-BA")==0) { |
258 |
/* cfb in NetBSD */ |
/* cfb in NetBSD */ |
259 |
fb = dev_fb_init(machine, mem, baseaddr, VFB_GENERIC, |
fb = dev_fb_init(machine, mem, baseaddr, VFB_GENERIC, |
260 |
1024,864, 1024,1024,8, device_name, 1); |
1024,864, 1024,1024,8, device_name); |
261 |
dev_bt459_init(machine, mem, baseaddr + VFB_CFB_BT459, |
dev_bt459_init(machine, mem, baseaddr + VFB_CFB_BT459, |
262 |
baseaddr + 0x300000, fb, 8, irq, BT459_BA); |
baseaddr + 0x300000, fb, 8, irq, BT459_BA); |
263 |
/* ROM at both 0x380000 and 0x3c0000? */ |
/* ROM at both 0x380000 and 0x3c0000? */ |
267 |
/* sfb in NetBSD */ |
/* sfb in NetBSD */ |
268 |
/* TODO: This is not working with Ultrix yet. */ |
/* TODO: This is not working with Ultrix yet. */ |
269 |
fb = dev_fb_init(machine, mem, baseaddr + SFB_OFFSET_VRAM, |
fb = dev_fb_init(machine, mem, baseaddr + SFB_OFFSET_VRAM, |
270 |
VFB_GENERIC, 1280,1024, 1280,1024,8, device_name, 1); |
VFB_GENERIC, 1280,1024, 1280,1024,8, device_name); |
271 |
dev_sfb_init(machine, mem, baseaddr + SFB_ASIC_OFFSET, fb); |
dev_sfb_init(machine, mem, baseaddr + SFB_ASIC_OFFSET, fb); |
272 |
/* TODO: the CLEAR doesn't get through, as the address |
/* TODO: the CLEAR doesn't get through, as the address |
273 |
range is already in use by the asic */ |
range is already in use by the asic */ |
295 |
} else if (strcmp(device_name, "PMAG-DV")==0) { |
} else if (strcmp(device_name, "PMAG-DV")==0) { |
296 |
/* xcfb in NetBSD: TODO */ |
/* xcfb in NetBSD: TODO */ |
297 |
fb = dev_fb_init(machine, mem, baseaddr + 0x2000000, |
fb = dev_fb_init(machine, mem, baseaddr + 0x2000000, |
298 |
VFB_DEC_MAXINE, 0, 0, 0, 0, 0, "PMAG-DV", 1); |
VFB_DEC_MAXINE, 0, 0, 0, 0, 0, "PMAG-DV"); |
299 |
/* TODO: not yet usable, needs a IMS332 vdac */ |
/* TODO: not yet usable, needs a IMS332 vdac */ |
300 |
rom_offset = 0x3c0000; |
rom_offset = 0x3c0000; |
301 |
} else if (strcmp(device_name, "PMAG-JA")==0) { |
} else if (strcmp(device_name, "PMAG-JA")==0) { |
305 |
} else if (strcmp(device_name, "PMAG-RO")==0) { |
} else if (strcmp(device_name, "PMAG-RO")==0) { |
306 |
/* This works at least B/W in Ultrix, so far. */ |
/* This works at least B/W in Ultrix, so far. */ |
307 |
fb = dev_fb_init(machine, mem, baseaddr + 0x200000, |
fb = dev_fb_init(machine, mem, baseaddr + 0x200000, |
308 |
VFB_GENERIC, 1280,1024, 1280,1024, 8, "PMAG-RO", 1); |
VFB_GENERIC, 1280,1024, 1280,1024, 8, "PMAG-RO"); |
309 |
/* TODO: bt463 at offset 0x040000, not bt459 */ |
/* TODO: bt463 at offset 0x040000, not bt459 */ |
310 |
dev_bt459_init(machine, mem, baseaddr + 0x40000, 0, |
dev_bt459_init(machine, mem, baseaddr + 0x40000, 0, |
311 |
fb, 8, irq, 0); /* TODO: type */ |
fb, 8, irq, 0); /* TODO: type */ |