Annotation of 43BSDReno/sys/hpdev/grf_tcreg.h, revision 1.1.1.1

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_tcreg.h 1.9 89/08/24$
                     26:  *
                     27:  *     @(#)grf_tcreg.h 7.1 (Berkeley) 5/8/90
                     28:  */
                     29: 
                     30: #define tccm_waitbusy(regaddr) \
                     31:        while (((struct tcboxfb *)(regaddr))->cmap_busy & 0x04) DELAY(100)
                     32: 
                     33: #define tc_waitbusy(regaddr,planes) \
                     34:        while (((struct tcboxfb *)(regaddr))->busy & planes) DELAY(100)
                     35: 
                     36: #define        vu_char         volatile u_char
                     37: #define        vu_short        volatile u_short
                     38: 
                     39: struct tcboxfb {
                     40:   u_char       :8;
                     41:   vu_char      reset;                  /* reset register               0x01 */
                     42:   vu_char      fb_address;             /* frame buffer address         0x02 */
                     43:   vu_char      interrupt;              /* interrupt register           0x03 */
                     44:   u_char       :8;
                     45:   vu_char      fbwmsb;                 /* frame buffer width MSB       0x05 */
                     46:   u_char       :8;
                     47:   vu_char      fbwlsb;                 /* frame buffer width MSB       0x07 */
                     48:   u_char       :8;
                     49:   vu_char      fbhmsb;                 /* frame buffer height MSB      0x09 */
                     50:   u_char       :8;
                     51:   vu_char      fbhlsb;                 /* frame buffer height MSB      0x0b */
                     52:   u_char       :8;
                     53:   vu_char      dwmsb;                  /* display width MSB            0x0d */
                     54:   u_char       :8;
                     55:   vu_char      dwlsb;                  /* display width MSB            0x0f */
                     56:   u_char       :8;
                     57:   vu_char      dhmsb;                  /* display height MSB           0x11 */
                     58:   u_char       :8;
                     59:   vu_char      dhlsb;                  /* display height MSB           0x13 */
                     60:   u_char       :8;
                     61:   vu_char      fbid;                   /* Scondary frame buffer id     0x15 */
                     62:   u_char       :8;
                     63:   vu_char      bits;                   /* square(0)/double-high(1)     0x17 */
                     64:   u_char       f1[0x5b-0x17-1];
                     65:   vu_char      num_planes;             /* number of color planes       0x5b */
                     66:   u_char       :8;
                     67:   vu_char      fbomsb;                 /* frame buffer offset MSB      0x5d */
                     68:   u_char       :8;
                     69:   vu_char      fbolsb;                 /* frame buffer offset LSB      0x5f */
                     70:   u_char       f2[0x4040-0x5f-1];
                     71:   vu_char      vblank;                 /* vertical blanking          0x4040 */
                     72:   u_char       :8,:8,:8;
                     73:   vu_char      busy;                   /* window move active         0x4044 */
                     74:   u_char       :8,:8,:8;
                     75:   vu_char      vtrace_request;         /* vert retrace intr request  0x4048 */
                     76:   u_char       :8,:8,:8;
                     77:   vu_char      move_request;           /* window move intr request   0x404C */
                     78:   u_char       f3[0x4080-0x404c-1];
                     79:   vu_char      nblank;                 /* display enable planes      0x4080 */
                     80:   u_char       f4[0x4088-0x4080-1];
                     81:   vu_char      wen;                    /* write enable plane         0x4088 */
                     82:   u_char       f5[0x408c-0x4088-1];
                     83:   vu_char      ren;                    /* read enable plane          0x408c */
                     84:   u_char       f6[0x4090-0x408c-1];
                     85:   vu_char      fben;                   /* frame buffer write enable  0x4090 */
                     86:   u_char       f7[0x409c-0x4090-1];
                     87:   vu_char      wmove;                  /* start window move          0x409c */
                     88:   u_char       f8[0x40a0-0x409c-1];
                     89:   vu_char      blink;                  /* enable blink planes        0x40a0 */
                     90:   u_char       f9[0x40a8-0x40a0-1];
                     91:   vu_char      altframe;               /* enable alternate frame     0x40a8 */
                     92:   u_char       f10[0x40ac-0x40a8-1];
                     93:   vu_char      curon;                  /* cursor control register    0x40ac */
                     94:   u_char       f11[0x40ea-0x40ac-1];
                     95:   vu_char      prr;                    /* pixel replacement rule     0x40ea */
                     96:   u_char       f12[0x40ef-0x40ea-1];
                     97:   vu_char      wmrr;                   /* move replacement rule      0x40ef */
                     98:   u_char       f13[0x40f2-0x40ef-1];
                     99:   vu_short     source_x;               /* source x pixel #           0x40f2 */
                    100:   u_char       f14[0x40f6-0x40f2-2];
                    101:   vu_short     source_y;               /* source y pixel #           0x40f6 */
                    102:   u_char       f15[0x40fa-0x40f6-2];
                    103:   vu_short     dest_x;                 /* dest x pixel #             0x40fa */
                    104:   u_char       f16[0x40fe-0x40fa-2];
                    105:   vu_short     dest_y;                 /* dest y pixel #             0x40fe */
                    106:   u_char       f17[0x4102-0x40fe-2];
                    107:   vu_short     wwidth;                 /* block mover pixel width    0x4102 */
                    108:   u_char       f18[0x4106-0x4102-2];
                    109:   vu_short     wheight;                /* block mover pixel height   0x4106 */
                    110:   u_char       f19[0x6002-0x4106-2];
                    111:   vu_short     cmap_busy;              /* Color Ram busy             0x6002 */
                    112:   u_char       f20[0x60b2-0x6002-2];
                    113:   vu_short     rdata;                  /* color map red data         0x60b2 */
                    114:   vu_short     gdata;                  /* color map green data       0x60b4 */
                    115:   vu_short     bdata;                  /* color map blue data        0x60b6 */
                    116:   vu_short     cindex;                 /* color map index            0x60b8 */
                    117:   vu_short     plane_mask;             /* plane mask select          0x60ba */
                    118:   u_char       f21[0x60f0-0x60ba-2];
                    119:   vu_short     strobe;                 /* color map trigger          0x60f0 */
                    120: };
                    121: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.