home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / mips / mipsIo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-18  |  2.2 KB  |  60 lines

  1. /*
  2.  * $XConsortium: mipsIo.h,v 1.4 91/07/18 22:58:26 keith Exp $
  3.  *
  4.  * Copyright 1991 MIPS Computer Systems, Inc.
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of MIPS not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  MIPS makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * MIPS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL MIPS
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  */
  23. /* $Header: mipsIo.h,v 1.4 91/07/18 22:58:26 keith Exp $ */
  24. #ifndef __DDX_MIPSIO_H
  25. #define    __DDX_MIPSIO_H
  26.  
  27. #define MAXEVENTS       100
  28.  
  29. /* Device capabilities */
  30.  
  31. #define    DEV_TIMESTAMP    0x01    /* Timestamps enabled */
  32. #define DEV_BUZZER    0x02    /* Buzzer enabled */
  33. #define DEV_COLORMAP    0x04    /* Colormap enabled */
  34. #define DEV_LIGHTS    0x08    /* lights enabled */
  35. #define DEV_ASYNC    0x10    /* async io enabled */
  36. #define DEV_READ    0x20    /* readable */
  37. #define DEV_INIT    0x40    /* initable */
  38. #define DEV_BLANK    0x80    /* Blanking enabled */
  39.  
  40. /* cursor private structure */
  41.  
  42. typedef
  43. struct    _cursorpriv {
  44.     int        srcWidth;    /* width of source bitmap in bytes. */
  45.     int        width;        /* width of savearea in bytes. */
  46.     int        size;        /* size of savearea required. */
  47.     int        fg, bg;
  48. } CursorPriv;
  49.  
  50. extern int        errno;
  51. extern int        isItTimeToYield;
  52. extern int        sigIOfunc();
  53. extern int        lastEventTime;
  54. extern ScreenInfo    screenInfo;
  55. extern volatile int    avoid;
  56. extern int        screenIsSaved;
  57. extern void        SaveScreens();
  58.  
  59. #endif /* __DDX_MIPSIO_H */
  60.