home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / AIX / hftUtils.h < prev    next >
C/C++ Source or Header  |  1991-09-20  |  4KB  |  113 lines

  1. /*
  2.  * $Id: hftUtils.h,v 1.1 1991/09/20 17:58:56 mtranle Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * Permission 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 AND FITNESS, IN NO EVENT SHALL
  18.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22.  * SOFTWARE.
  23.  *
  24. */
  25. /*
  26.  * void        hftSetLEDS(unsigned which,unsigned how)
  27.  * void        hftSetLocatorThresholds(unsigned horz,unsigned vert)
  28.  * void        hftSetTableDeadZone(unsigned horz,unsigned vert)
  29.  * void        hftSetLPFK(unsigned keys,unsigned flags)
  30.  * void        hftSetDialGranularity(unsigned dials,unsigned *settings)
  31.  * void     hftSound(unsigned duration,unsigned frequency)
  32.  * void     hftSetTypematicDelay(unsigned delay)
  33.  * void     hftSetTypematicRate(unsigned rate)
  34.  * void     hftSetKeyClick(unsigned on)
  35.  * void     hftSetLocatorSampleRate(unsigned rate)
  36.  * void     hftSetVolume(unsigned vol)
  37.  * int         hftQueryDeviceIds(hftDeviceID **ppDevices)
  38.  * unsigned    hftQueryDefaultDisplay()
  39.  * int         hftHasAnAttached(unsigned devId,char *pName)
  40.  * int            hftFindAScreen()
  41.  * void        hftQueryHardwareConfig(unsigned    device)
  42.  * void        hftBlockHandler(ndx,blockData,ppTimeout,pReadmask)
  43.  * void        hftWakeupHandler(ndx,blockData,pTimeout,pReadmask)
  44.  */
  45.  
  46. /***====================================================================***/
  47.  
  48. #define    HFT_MAXDEVICES    4
  49.  
  50. #define HF_INT(f)    ( (unsigned int)((f)[0]<<24|(f)[1]<<16 | \
  51.                      (f)[2]<<8 |(f)[3]) )
  52.  
  53. typedef struct hftdid  {
  54.     unsigned    hftDevID;
  55.     unsigned    hftDevClass;
  56. } hftDeviceID;
  57.  
  58. #define    HFT_DEVID_MASK        0xffff0000
  59. #define    HFT_DEVBUSTED_MASK    0x0000ff00
  60. #define    HFT_DEVNUM_MASK        0x000000ff
  61.  
  62. #define    HFT_ILLEGAL_KEYBOARD    -1
  63.  
  64. #define    HFT_ILLEGAL_ID    0x00000000
  65.  
  66.     /*
  67.      * RT/PC family device IDs
  68.      */
  69.  
  70. #define    HFT_APA8_ID        0x04020000
  71. #define    HFT_EGA_ID        0x04040000
  72. #define    HFT_APA16_ID        0x04050000
  73. #define    HFT_APA8C_ID        0x04060000
  74. #define HFT_MEGAPEL_ID        0x04080000
  75.  
  76.     /*
  77.      * PS/2 family device IDs
  78.      */
  79. #define    HFT_VGA_8503_ID        0x04110000
  80. #define    HFT_VGA_8512_ID        0x04120000
  81. #define    HFT_VGA_8513_ID        0x04130000
  82. #define    HFT_VGA_8514_ID        0x04140000
  83. #define    HFT_VGA_8507_ID        0x04150000
  84. #define    HFT_VGA_8604_ID        0x04160000
  85.  
  86. #define    HFT_8514A_8503_ID    0x04180000
  87. #define    HFT_8514A_8512_ID    0x04190000
  88. #define    HFT_8514A_8513_ID    0x041A0000
  89. #define    HFT_8514A_8514_ID    0x041B0000
  90. #define    HFT_8514A_8507_ID    0x041C0000
  91. #define    HFT_8514A_8604_ID    0x041D0000
  92.  
  93. /***====================================================================***/
  94.  
  95. extern    void         hftSetLEDS();
  96. extern    void         hftSetLocatorThresholds();
  97. extern    void         hftSetTableDeadZone();
  98. extern    void         hftSetLPFK();
  99. extern    void         hftSetDialGranularity();
  100. extern    void         hftSound();
  101. extern    void         hftSetTypematicDelay();
  102. extern    void         hftSetTypematicRate();
  103. extern    void         hftSetKeyClick();
  104. extern    void         hftSetLocatorSampleRate();
  105. extern    void         hftSetVolume();
  106. extern    int         hftQueryDeviceIDs();
  107. extern    unsigned     hftQueryDefaultDisplay();
  108. extern    int         hftHasAnAttached();
  109. extern    int         hftFindAScreen();
  110. extern    void         hftQueryHardwareConfig();
  111. extern    void         hftBlockHandler();
  112. extern    void         hftWakeupHandler();
  113.