home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / ddx-mips.zip / KBD_IOCT.H < prev    next >
C/C++ Source or Header  |  1992-08-18  |  3KB  |  76 lines

  1. /*
  2.  * |-----------------------------------------------------------|
  3.  * | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc.      |
  4.  * | All Rights Reserved                                       |
  5.  * |-----------------------------------------------------------|
  6.  * |          Restricted Rights Legend                         |
  7.  * | Use, duplication, or disclosure by the Government is      |
  8.  * | subject to restrictions as set forth in                   |
  9.  * | subparagraph (c)(1)(ii) of the Rights in Technical        |
  10.  * | Data and Computer Software Clause of DFARS 252.227-7013.  |
  11.  * |         MIPS Computer Systems, Inc.                       |
  12.  * |         950 DeGuigne Avenue                               |
  13.  * |         Sunnyvale, California 94088-3650, USA             |
  14.  * |-----------------------------------------------------------|
  15.  */
  16. /* $Header: kbd_ioctl.h,v 1.8 92/08/17 16:35:40 dd Exp $ */
  17.  
  18. #ifndef    _SYS_KBD_IOCTL_
  19. #define    _SYS_KBD_IOCTL_    1
  20.  
  21.  
  22. /*
  23.  * Kbd ioctls
  24.  *
  25.  * $Source: /usr6/co/root/usr/src/uts/mips/sys/RCS/kbd_ioctl.h,v $
  26.  * $Revision: 1.8 $
  27.  * $Date: 92/08/17 16:35:40 $
  28.  */
  29. struct colorm {
  30.     unsigned short cmstart;        /* starting register */
  31.     unsigned short cmcount;        /* number of registers */
  32.     unsigned char cmap[3*256];    /* register data */
  33. };
  34.  
  35. #define    KTCSETTIMESTAMP        _IO(K,0x7f)    /* kbd input timestamped */
  36. #define    KTCCLRTIMESTAMP        _IO(K,0x7e)    /* no kbd input timestamped */
  37. #define    KTCPRGMBUZZER        _IOW(K,0x7d,struct buzzer)    
  38.                         /* program the buzzer */
  39. #define    KTCRINGBELL        _IO(K,0x7c)    /* ring standard bell (^g) */
  40.  
  41. #define    KTCSETLIGHTS    _IOW(K,0x7b,int)    /* set keyboard lights */
  42. #define    KTCGETLIGHTS    _IOR(K,0x7a,int)    /* get kbd lights last set */
  43. #define KLNUMLOCK    0x2        /* light num lock light */
  44. #define KLCAPSLOCK    0x4        /* light caps lock light */
  45. #define KLSCRLLOCK    0x1        /* light scroll lock light */
  46.  
  47. #define KTCWRTCOLOR        _IOW(K,0x79,struct colorm)
  48.                         /* write the color map */
  49.  
  50. #define    KTMBLANK        _IOW(K,0x78,int)
  51.                         /* blank/unblank mono screen */
  52.  
  53. #define KMOUSEFMT    _IOR(K,0x77,int)    /* get mouse format code */
  54. #define KMOUSE3BYTE    0            /* 3 byte mouse format */
  55. #define KMOUSE5BYTE    1            /* 5 byte mouse format */
  56.  
  57. /* NOTE: KMOUSERST was completely broken in RISC/os 5.0B */
  58. #define KMOUSERST    _IOR(K,0x76,int)    /* reset mouse    */
  59.  
  60. #define KMOUSERESET    _IO(K,0x75)        /* reset mouse  */
  61.  
  62. /*
  63.  *  Kbd Input Timestamping - when turned on all recieved characters
  64.  *  that would normally be received as a single character are received
  65.  *  eight characters in the format of the following structure.
  66.  */
  67.  
  68. #define KBDSYNCCHAR 0xff
  69. struct ktimestamp {
  70.     unsigned char kt_sync[3];    /* 3 sync characters == 0xff */
  71.     unsigned char kt_char;        /* actual timestamped character */
  72.     time_t kt_time;            /* time in HZ since last boot */
  73. };
  74.  
  75. #endif    _SYS_KBD_IOCTL_
  76.