Annotation of Gnu-Mach/i386/i386at/blitvar.h, revision 1.1.1.1

1.1       root        1: /* 
                      2:  * Mach Operating System
                      3:  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
                      4:  * All Rights Reserved.
                      5:  * 
                      6:  * Permission to use, copy, modify and distribute this software and its
                      7:  * documentation is hereby granted, provided that both the copyright
                      8:  * notice and this permission notice appear in all copies of the
                      9:  * software, derivative works or modified versions, and any portions
                     10:  * thereof, and that both notices appear in supporting documentation.
                     11:  * 
                     12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     15:  * 
                     16:  * Carnegie Mellon requests users of this software to return to
                     17:  * 
                     18:  *  Software Distribution Coordinator  or  [email protected]
                     19:  *  School of Computer Science
                     20:  *  Carnegie Mellon University
                     21:  *  Pittsburgh PA 15213-3890
                     22:  * 
                     23:  * any improvements or extensions that they make and grant Carnegie Mellon
                     24:  * the rights to redistribute these changes.
                     25:  */
                     26: /* **********************************************************************
                     27:  File:         blitvar.h
                     28:  Description:  Definitions used by Blit driver other than h/w definition.
                     29: 
                     30:  $ Header: $
                     31: 
                     32:  Copyright Ing. C. Olivetti & C. S.p.A. 1988, 1989.
                     33:  All rights reserved.
                     34: ********************************************************************** */
                     35: /*
                     36:   Copyright 1988, 1989 by Olivetti Advanced Technology Center, Inc.,
                     37: Cupertino, California.
                     38: 
                     39:                All Rights Reserved
                     40: 
                     41:   Permission to use, copy, modify, and distribute this software and
                     42: its documentation for any purpose and without fee is hereby
                     43: granted, provided that the above copyright notice appears in all
                     44: copies and that both the copyright notice and this permission notice
                     45: appear in supporting documentation, and that the name of Olivetti
                     46: not be used in advertising or publicity pertaining to distribution
                     47: of the software without specific, written prior permission.
                     48: 
                     49:   OLIVETTI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
                     50: INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
                     51: IN NO EVENT SHALL OLIVETTI BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
                     52: CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
                     53: LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
                     54: NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION
                     55: WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     56: */
                     57: 
                     58: #include <i386at/blitreg.h>
                     59: #include <sys/types.h>
                     60: #include <mach/boolean.h>
                     61: 
                     62: 
                     63: /* 
                     64:  * This is how we use the Blit's graphics memory.  The frame buffer 
                     65:  * goes at the front, and the rest is used for miscellaneous 
                     66:  * allocations.  Users can use the "spare" memory, but they should do 
                     67:  * an ioctl to find out which part of the memory is really free.
                     68:  */
                     69: 
                     70: struct blitmem {
                     71:        union blitfb {
                     72:                u_char mono_fb[BLIT_MONOFBSIZE];
                     73:                u_char color_fb[1];     /* place-holder */
                     74:        } fb;
                     75:        u_char spare[BLIT_MEMSIZE - sizeof(union blitfb)];
                     76: };
                     77: 
                     78: 
                     79: /*
                     80:  * Macro to get from blitdev pointer to monochrome framebuffer.
                     81:  */
                     82: #define       BLIT_MONOFB(blt, fbptr) \
                     83:        { struct blitmem *mymem = (struct blitmem *)((blt)->graphmem); \
                     84:        fbptr = mymem->fb.mono_fb; \
                     85:        }
                     86: 
                     87: 
                     88: /* 
                     89:  * Single-tile description that can be used to describe the entire 
                     90:  * screen. 
                     91:  */
                     92: 
                     93: struct screen_descrip {
                     94:        STRIPHEADER strip;
                     95:        TILEDESC tile;
                     96: };
                     97: 
                     98: 
                     99: /* 
                    100:  * Number of microseconds we're willing to wait for display processor 
                    101:  * to load its command block.
                    102:  */
                    103: 
                    104: #define DP_RDYTIMEOUT                  1000000
                    105: 
                    106: 
                    107: /* 
                    108:  * Conversion macros.
                    109:  */
                    110: 
                    111: #define VM_TO_ADDR786(vmaddr, blit_base) \
                    112:        ((int)(vmaddr) - (int)(blit_base))
                    113: 
                    114: 
                    115: extern boolean_t blit_present();
                    116: extern void blit_init();

unix.superglobalmegacorp.com

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