home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / ibm / AIX / hftUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-16  |  3.7 KB  |  114 lines

  1. /*
  2.  * $XConsortium: hftUtils.h,v 1.2 91/07/16 13:03:14 jap Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989,1990,1991
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * License to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted,
  10.  * provided that the above copyright notice appear in all copies and that
  11.  * both that copyright notice and this permission notice appear in
  12.  * supporting documentation, and that the name of IBM not be
  13.  * used in advertising or publicity pertaining to distribution of the
  14.  * software without specific, written prior permission.
  15.  *
  16.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND 
  18.  * NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
  19.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23.  * SOFTWARE.
  24.  *
  25. */
  26.  
  27. #ifndef HFTUTILS_H
  28. #define HFTUTILS_H
  29.  
  30.     /*
  31.      * void        hftSetLEDS(unsigned which,unsigned how)
  32.      * void        hftSetLocatorThresholds(unsigned horz,unsigned vert)
  33.      * void        hftSetTableDeadZone(unsigned horz,unsigned vert)
  34.      * void        hftSetLPFK(unsigned keys,unsigned flags)
  35.      * void        hftSetDialGranularity(unsigned dials,unsigned *settings)
  36.      * void     hftSound(unsigned duration,unsigned frequency)
  37.      * void     hftSetTypematicDelay(unsigned delay)
  38.      * void     hftSetTypematicRate(unsigned rate)
  39.      * void     hftSetKeyClick(unsigned on)
  40.      * void     hftSetLocatorSampleRate(unsigned rate)
  41.      * void     hftSetVolume(unsigned vol)
  42.      * int         hftQueryDeviceIds(hftDeviceID **ppDevices)
  43.      * unsigned    hftQueryDefaultDisplay()
  44.      * int         hftHasAnAttached(unsigned devId,char *pName)
  45.      * int            hftFindAScreen()
  46.      */
  47.  
  48. /***====================================================================***/
  49.  
  50. #define    HFT_MAXDEVICES    8
  51.  
  52. #define HF_INT(f)    ( (unsigned int)((f)[0]<<24|(f)[1]<<16 | \
  53.                      (f)[2]<<8 |(f)[3]) )
  54.  
  55. typedef struct hftdid  {
  56.     unsigned    hftDevID;
  57.     unsigned    hftDevClass;
  58. } hftDeviceID;
  59.  
  60. #define    HFT_DEVID_MASK        0xffff0000
  61. #define    HFT_DEVBUSTED_MASK    0x0000ff00
  62. #define    HFT_DEVNUM_MASK        0x000000ff
  63.  
  64. #define    HFT_ILLEGAL_KEYBOARD    -1
  65.  
  66. #define    HFT_ILLEGAL_ID    0x00000000
  67.  
  68. #define    HFT_SKYWAY_ID    0x04210000
  69. #define    HFT_SKYMONO_ID    0x04220000
  70. #define    HFT_SABINE_ID    0x04250000
  71. #define    HFT_GEMINI_ID    0x04270000
  72. #define    HFT_PEDER_ID    0x04290000
  73.  
  74. #define    HFT_APA8_ID    0x04020000
  75. #define    HFT_EGA_ID    0x04040000
  76. #define    HFT_APA16_ID    0x04050000
  77. #define    HFT_APA8C_ID    0x04060000
  78. #define HFT_MEGAPEL_ID    0x04080000
  79.  
  80. #define    HFT_VGA_8503_ID        0x04110000
  81. #define    HFT_VGA_8512_ID        0x04120000
  82. #define    HFT_VGA_8513_ID        0x04130000
  83. #define    HFT_VGA_8514_ID        0x04140000
  84. #define    HFT_VGA_8507_ID        0x04150000
  85. #define    HFT_VGA_8604_ID        0x04160000
  86.  
  87. #define    HFT_8514A_8503_ID    0x04180000
  88. #define    HFT_8514A_8512_ID    0x04190000
  89. #define    HFT_8514A_8513_ID    0x041A0000
  90. #define    HFT_8514A_8514_ID    0x041B0000
  91. #define    HFT_8514A_8507_ID    0x041C0000
  92. #define    HFT_8514A_8604_ID    0x041D0000
  93.  
  94. /***====================================================================***/
  95.  
  96. extern    void         hftSetLEDS();
  97. extern    void         hftSetLocatorThresholds();
  98. extern    void         hftSetTableDeadZone();
  99. extern    void         hftSetLPFK();
  100. extern    void         hftSetDialGranularity();
  101. extern    void         hftSound();
  102. extern    void         hftSetTypematicDelay();
  103. extern    void         hftSetTypematicRate();
  104. extern    void         hftSetKeyClick();
  105. extern    void         hftSetLocatorSampleRate();
  106. extern    void         hftSetVolume();
  107. extern    int         hftQueryDeviceIDs();
  108. extern    unsigned     hftQueryDefaultDisplay();
  109. extern    int         hftHasAnAttached();
  110. extern    int         hftFindAScreen();
  111. extern    void         hftQueryHardwareConfig();
  112.  
  113. #endif /* HFTUTILS_H */
  114.