|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1988 University of Utah. ! 3: * Copyright (c) 1990 The Regents of the University of California. ! 4: * All rights reserved. ! 5: * ! 6: * This code is derived from software contributed to Berkeley by ! 7: * the Systems Programming Group of the University of Utah Computer ! 8: * Science Department. ! 9: * ! 10: * Redistribution is only permitted until one year after the first shipment ! 11: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and ! 12: * binary forms are permitted provided that: (1) source distributions retain ! 13: * this entire copyright notice and comment, and (2) distributions including ! 14: * binaries display the following acknowledgement: This product includes ! 15: * software developed by the University of California, Berkeley and its ! 16: * contributors'' in the documentation or other materials provided with the ! 17: * distribution and in all advertising materials mentioning features or use ! 18: * of this software. Neither the name of the University nor the names of ! 19: * its contributors may be used to endorse or promote products derived from ! 20: * this software without specific prior written permission. ! 21: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 22: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 23: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 24: * ! 25: * from: Utah $Hdr: grf_dvreg.h 1.4 89/08/25$ ! 26: * ! 27: * @(#)grf_dvreg.h 7.1 (Berkeley) 5/8/90 ! 28: */ ! 29: ! 30: /* ! 31: * Map of the DaVinci frame buffer controller chip in memory ... ! 32: */ ! 33: ! 34: #define db_waitbusy(regaddr) \ ! 35: while (((struct dvboxfb *)(regaddr))->wbusy || \ ! 36: ((struct dvboxfb *)(regaddr))->as_busy) DELAY(100) ! 37: ! 38: #define vu_char volatile u_char ! 39: #define vu_short volatile u_short ! 40: #define vu_int volatile u_int ! 41: ! 42: struct rgb { ! 43: u_char :8, :8, :8; ! 44: vu_char red; ! 45: u_char :8, :8, :8; ! 46: vu_char green; ! 47: u_char :8, :8, :8; ! 48: vu_char blue; ! 49: }; ! 50: ! 51: struct dvboxfb { ! 52: u_char :8; ! 53: vu_char reset; /* reset register 0x01 */ ! 54: u_char fb_address; /* frame buffer address 0x02 */ ! 55: vu_char interrupt; /* interrupt register 0x03 */ ! 56: u_char :8; ! 57: vu_char fbwmsb; /* frame buffer width MSB 0x05 */ ! 58: u_char :8; ! 59: vu_char fbwlsb; /* frame buffer width MSB 0x07 */ ! 60: u_char :8; ! 61: vu_char fbhmsb; /* frame buffer height MSB 0x09 */ ! 62: u_char :8; ! 63: vu_char fbhlsb; /* frame buffer height MSB 0x0b */ ! 64: u_char :8; ! 65: vu_char dwmsb; /* display width MSB 0x0d */ ! 66: u_char :8; ! 67: vu_char dwlsb; /* display width MSB 0x0f */ ! 68: u_char :8; ! 69: vu_char dhmsb; /* display height MSB 0x11 */ ! 70: u_char :8; ! 71: vu_char dhlsb; /* display height MSB 0x13 */ ! 72: u_char :8; ! 73: vu_char fbid; /* frame buffer id 0x15 */ ! 74: u_char f1[0x47]; ! 75: vu_char fbomsb; /* frame buffer offset MSB 0x5d */ ! 76: u_char :8; ! 77: vu_char fbolsb; /* frame buffer offset LSB 0x5f */ ! 78: u_char f2[16359]; ! 79: vu_char wbusy; /* Window move in progress 0x4047 */ ! 80: u_char f3[0x405b-0x4047-1]; ! 81: vu_char as_busy; /* Scan accessing frame buf. 0x405B */ ! 82: u_char f4[0x4090-0x405b-1]; ! 83: vu_int fbwen; /* Frame buffer write enable 0x4090 */ ! 84: u_char f5[0x409f-0x4090-4]; ! 85: vu_char wmove; /* Initiate window move. 0x409F */ ! 86: u_char f6[0x40b3-0x409f-1]; ! 87: vu_char fold; /* Byte/longword per pixel 0x40B3 */ ! 88: u_char f7[0x40b7-0x40b3-1]; ! 89: vu_char opwen; /* Overlay plane write enable 0x40B7 */ ! 90: u_char f8[0x40bf-0x40b7-1]; ! 91: vu_char drive; /* Select FB vs. Overlay. 0x40BF */ ! 92: ! 93: u_char f8a[0x40cb-0x40bf-1]; ! 94: vu_char zconfig; /* Z buffer configuration 0x40CB */ ! 95: u_char f8b[0x40cf-0x40cb-1]; ! 96: vu_char alt_rr; /* Alternate replacement rule 0x40CF */ ! 97: u_char f8c[0x40d3-0x40cf-1]; ! 98: vu_char zrr; /* Z replacement rule 0x40D3 */ ! 99: ! 100: u_char f9[0x40d7-0x40d3-1]; ! 101: vu_char en_scan; /* Enable scan DTACK. 0x40D7 */ ! 102: u_char f10[0x40ef-0x40d7-1]; ! 103: vu_char rep_rule; /* Replacement rule 0x40EF */ ! 104: u_char f11[0x40f2-0x40ef-1]; ! 105: vu_short source_x; /* Window source X origin 0x40F2 */ ! 106: u_char f12[0x40f6-0x40f2-2]; ! 107: vu_short source_y; /* Window source Y origin 0x40F6 */ ! 108: u_char f13[0x40fa-0x40f6-2]; ! 109: vu_short dest_x; /* Window dest X origin 0x40FA */ ! 110: u_char f14[0x40fe-0x40fa-2]; ! 111: vu_short dest_y; /* Window dest Y origin 0x40FE */ ! 112: u_char f15[0x4102-0x40fe-2]; ! 113: vu_short wwidth; /* Window width 0x4102 */ ! 114: u_char f16[0x4106-0x4102-2]; ! 115: vu_short wheight; /* Window height 0x4106 */ ! 116: u_char f17[0x6003-0x4106-2]; ! 117: vu_char cmapbank; /* Bank select (0 or 1) 0x6003 */ ! 118: u_char f18[0x6007-0x6003-1]; ! 119: vu_char dispen; /* Display enable 0x6007 */ ! 120: ! 121: u_char f18a[0x600B-0x6007-1]; ! 122: vu_char fbvenp; /* Frame buffer video enable 0x600B */ ! 123: u_char f18b[0x6017-0x600B-1]; ! 124: vu_char fbvens; /* fbvenp blink counterpart 0x6017 */ ! 125: ! 126: u_char f19[0x6023-0x6017-1]; ! 127: vu_char vdrive; /* Video display mode 0x6023 */ ! 128: u_char f20[0x6083-0x6023-1]; ! 129: vu_char panxh; /* Pan display in X (high) 0x6083 */ ! 130: u_char f21[0x6087-0x6083-1]; ! 131: vu_char panxl; /* Pan display in X (low) 0x6087 */ ! 132: u_char f22[0x608b-0x6087-1]; ! 133: vu_char panyh; /* Pan display in Y (high) 0x608B */ ! 134: u_char f23[0x608f-0x608b-1]; ! 135: vu_char panyl; /* Pan display in Y (low) 0x608F */ ! 136: u_char f24[0x6093-0x608f-1]; ! 137: vu_char zoom; /* Zoom factor 0x6093 */ ! 138: u_char f25[0x6097-0x6093-1]; ! 139: vu_char pz_trig; /* Pan & zoom trigger 0x6097 */ ! 140: u_char f26[0x609b-0x6097-1]; ! 141: vu_char ovly0p; /* Overlay 0 primary map 0x609B */ ! 142: u_char f27[0x609f-0x609b-1]; ! 143: vu_char ovly1p; /* Overlay 1 primary map 0x609F */ ! 144: u_char f28[0x60a3-0x609f-1]; ! 145: vu_char ovly0s; /* Overlay 0 secondary map 0x60A3 */ ! 146: u_char f29[0x60a7-0x60a3-1]; ! 147: vu_char ovly1s; /* Overlay 1 secondary map 0x60A7 */ ! 148: u_char f30[0x60ab-0x60a7-1]; ! 149: vu_char opvenp; /* Overlay video enable 0x60AB */ ! 150: u_char f31[0x60af-0x60ab-1]; ! 151: vu_char opvens; /* Overlay blink enable 0x60AF */ ! 152: u_char f32[0x60b3-0x60af-1]; ! 153: vu_char fv_trig; /* Trigger control registers 0x60B3 */ ! 154: u_char f33[0x60b7-0x60b3-1]; ! 155: vu_char cdwidth; /* Iris cdwidth timing reg. 0x60B7 */ ! 156: u_char f34[0x60bb-0x60b7-1]; ! 157: vu_char chstart; /* Iris chstart timing reg. 0x60BB */ ! 158: u_char f35[0x60bf-0x60bb-1]; ! 159: vu_char cvwidth; /* Iris cvwidth timing reg. 0x60BF */ ! 160: u_char f36[0x6100-0x60bf-1]; ! 161: struct rgb rgb[8]; /* overlay color map */ ! 162: u_char f37[0x6403-0x6100-sizeof(struct rgb)*8]; ! 163: vu_char red0; ! 164: u_char f38[0x6803-0x6403-1]; ! 165: vu_char green0; ! 166: u_char f39[0x6c03-0x6803-1]; ! 167: vu_char blue0; ! 168: u_char f40[0x7403-0x6c03-1]; ! 169: vu_char red1; ! 170: u_char f41[0x7803-0x7403-1]; ! 171: vu_char green1; ! 172: u_char f42[0x7c03-0x7803-1]; ! 173: vu_char blue1; ! 174: u_char f43[0x8012-0x7c03-1]; ! 175: vu_short status1; /* Master Status register 0x8012 */ ! 176: u_char f44[0xC226-0x8012-2]; ! 177: vu_short trans; /* Transparency 0xC226 */ ! 178: u_char f45[0xC23E-0xC226-2]; ! 179: vu_short pstop; /* Pace value control 0xc23e */ ! 180: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.