home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / omron / omron.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-29  |  3.5 KB  |  152 lines

  1. /*
  2.  * $XConsortium: omron.h,v 1.1 91/06/29 13:48:51 xguest Exp $
  3.  *
  4.  * Copyright 1991 by OMRON Corporation
  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 OMRON not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  OMRON 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.  * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL OMRON
  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. #include <stdio.h>
  24.  
  25. #include <fcntl.h>
  26. #ifdef    uniosu
  27. # include <termio.h>
  28. #endif
  29. #include <sys/types.h>
  30. #include <sys/param.h>
  31. #include <sys/file.h>
  32. #include <sys/ioctl.h>
  33. #include <sys/mman.h>
  34. #include <sys/signal.h>
  35.  
  36. #ifdef    uniosu
  37. # include <sys/sys9100.h>
  38. # include <sys/kbms.h>
  39. #else /* not uniosu */
  40. # if defined(luna88k) || defined(luna2)
  41. #  include <machine/sysomron.h>
  42. #  include <dev/kbms.h>
  43. # else /* uniosb */
  44. #  include <om68k/sysomron.h>
  45. #  include <om68kdev/kbms.h>
  46. # endif
  47. #endif
  48.  
  49. #include <errno.h>
  50.  
  51. #include "X.h"
  52. #include "Xmd.h"
  53.  
  54. #define    NEED_EVENTS
  55. #include "Xproto.h"
  56.  
  57. #include "osdep.h"
  58. #include "misc.h"
  59.  
  60. #include "scrnintstr.h"
  61. #include "screenint.h"
  62.  
  63. #include "servermd.h"
  64.  
  65. #include "input.h"
  66. #include "inputstr.h"
  67.  
  68. #include "mipointer.h"
  69.  
  70. #include "mfb.h"
  71.  
  72. #define SET_KBTIME 1
  73. #define SET_MSTIME 0
  74.  
  75. /* libc */
  76. extern int    open();
  77. extern int  read();
  78. extern int  write();
  79. extern int    ioctl();
  80. extern int    close();
  81. extern int    getpagesize();
  82. extern int    getpid();
  83. extern char *valloc();
  84. extern int    free();
  85. extern int    mmap();
  86. extern int    munmap();
  87. extern int    exit();
  88. extern int  sysomron();
  89. extern int  fcntl();
  90. extern int  ffs();
  91. extern int  sigblock();
  92. extern int  sigsetmask();
  93.  
  94. /* dix */
  95. extern void NoopDDA();
  96. extern int    AddScreen();
  97. extern int    AllocateScreenPrivateIndex();
  98. #ifdef    UNUSE_SIGIO_SIGNAL
  99. extern Bool RegisterBlockAndWakeupHandlers();
  100. #endif
  101.  
  102. /* os */
  103. extern int  AddEnabledDevice();
  104. extern int  RemoveEnabledDevice();
  105.  
  106. /* ddx/mi */
  107. extern Bool mieqInit();
  108. extern int  mieqProcessInputEvents();
  109. extern int  mieqEnqueue();
  110. extern void miRegisterPointerDevice();
  111. extern Bool miDCInitialize();
  112.  
  113. /* ddx/omron */
  114. extern void omronSetLastEventTime();
  115. extern Bool omronParseFbArg();
  116. extern void omronSetIoHandler();
  117. extern void omronInitEventPrvRec();
  118. extern void omronSetDriverTimeMode();
  119.  
  120. #ifndef    UNUSE_SIGIO_SIGNAL
  121. extern void omronSigIOHandler();
  122. #else
  123. extern void omronWakeupProc();
  124. #endif
  125.  
  126. extern void omronEnqueueEvents();
  127. #ifndef UNUSE_DRV_TIME
  128. extern void omronEnqueueTEvents();
  129. #endif
  130.  
  131. /* libc */
  132. extern int errno;
  133.  
  134. /* os */
  135. extern long EnabledDevices[];
  136. extern long LastSelectMask[];
  137.  
  138. /* ddx/omron */
  139. extern int omronScreenIndex;    
  140. extern int monitorResolution;
  141.  
  142. extern int  scrw;
  143. extern int  scrh;
  144. extern int  QueryFb;
  145. extern char *fb_type;
  146.  
  147. extern int lastEventTime;
  148.  
  149. extern CARD8 *omronKeyModMap[];
  150. extern KeySymsRec omronKeySyms[];
  151.  
  152.