|
|
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: pm_defs.h ! 28: * Author: Alessandro Forin, Carnegie Mellon University ! 29: * Date: 9/90 ! 30: * ! 31: * Definitions specific to the "pm" simple framebuffer driver, ! 32: * exported across sub-modules. Some other framebuffer drivers ! 33: * that share code with pm use these defs also. ! 34: */ ! 35: ! 36: /* Hardware state (to be held in the screen descriptor) */ ! 37: ! 38: typedef struct { ! 39: char *cursor_registers; /* opaque, for sharing */ ! 40: unsigned short cursor_state; /* some regs are W-only */ ! 41: short unused; /* padding, free */ ! 42: char *vdac_registers; /* opaque, for sharing */ ! 43: unsigned char *framebuffer; ! 44: unsigned char *plane_mask; ! 45: } pm_softc_t; ! 46: ! 47: extern pm_softc_t *pm_alloc(/* unit, curs, framebuf, planem */); ! 48: ! 49: /* user mapping sizes */ ! 50: #define USER_INFO_SIZE PAGE_SIZE ! 51: #define PMASK_SIZE PAGE_SIZE ! 52: #define BITMAP_SIZE(sc) \ ! 53: ((sc)->frame_height * (((sc)->flags & COLOR_SCREEN) ? \ ! 54: sc->frame_scanline_width : \ ! 55: sc->frame_scanline_width>>3)) ! 56: ! 57: #define PM_SIZE(sc) (USER_INFO_SIZE+PMASK_SIZE+BITMAP_SIZE(sc))
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.