|
|
1.1 ! root 1: /* $Header: mem.h,v 10.1 86/11/29 13:53:41 jg Rel $ */ ! 2: /* $Header: mem.h,v 10.1 86/11/29 13:53:41 jg Rel $ */ ! 3: /* mem.h Data structure for maintaining memory allocation of vs100 ! 4: * framebuffer memory. ! 5: * ! 6: * Author: Paul J. Asente ! 7: * Digital Equipment Corporation ! 8: * Western Reseach Lab ! 9: * Date: June 1983 ! 10: */ ! 11: ! 12: /**************************************************************************** ! 13: * * ! 14: * Copyright (c) 1983, 1984 by * ! 15: * DIGITAL EQUIPMENT CORPORATION, Maynard, Massachusetts. * ! 16: * All rights reserved. * ! 17: * * ! 18: * This software is furnished on an as-is basis and may be used and copied * ! 19: * only with inclusion of the above copyright notice. This software or any * ! 20: * other copies thereof may be provided or otherwise made available to * ! 21: * others only for non-commercial purposes. No title to or ownership of * ! 22: * the software is hereby transferred. * ! 23: * * ! 24: * The information in this software is subject to change without notice * ! 25: * and should not be construed as a commitment by DIGITAL EQUIPMENT * ! 26: * CORPORATION. * ! 27: * * ! 28: * DIGITAL assumes no responsibility for the use or reliability of its * ! 29: * software on equipment which is not supplied by DIGITAL. * ! 30: * * ! 31: * * ! 32: ****************************************************************************/ ! 33: ! 34: #include "param.h" ! 35: ! 36: typedef struct _VSArea { ! 37: struct _VSArea *next; ! 38: struct _VSArea *prev; ! 39: caddr_t vsPtr; ! 40: struct { ! 41: unsigned int _vsFreeFlag : 1; ! 42: int _vsSize : 31; ! 43: } s; ! 44: union { ! 45: struct { ! 46: struct _VSArea *next; ! 47: struct _VSArea *prev; ! 48: } _vsFree; ! 49: int _vsType; ! 50: } u; ! 51: } VSArea; ! 52: ! 53: #define vsFreeFlag s._vsFreeFlag ! 54: #define vsSize s._vsSize ! 55: #define vsFree u._vsFree ! 56: #define vsType u._vsType ! 57: ! 58: #define VS_FREE 0 ! 59: #define VS_INUSE 1 ! 60: ! 61: #define BITMAP_TYPE 1 ! 62: #define HALFTONE_TYPE 2 ! 63: #define FONT_TYPE 3
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.