The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/wscons/wsdisplay_usl_io.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $NetBSD: wsdisplay_usl_io.h,v 1.3 2001/05/15 15:06:23 lukem Exp $ */
    2 
    3 #ifndef _DEV_WSCONS_WSDISPLAY_USL_IO_H_
    4 #define _DEV_WSCONS_WSDISPLAY_USL_IO_H_
    5 
    6 #define VT_OPENQRY      _IOR('v', 1, int)
    7 #define VT_SETMODE      _IOW('v', 2, vtmode_t)
    8 #define VT_GETMODE      _IOR('v', 3, vtmode_t)
    9 
   10 struct vt_mode {
   11         char    mode;
   12 #define VT_AUTO         0               /* switching controlled by drvr */
   13 #define VT_PROCESS      1               /* switching controlled by prog */
   14 
   15         char    waitv;                  /* not implemented yet  SOS     */
   16         short   relsig;
   17         short   acqsig;
   18         short   frsig;                  /* not implemented yet  SOS     */
   19 };
   20 
   21 typedef struct vt_mode vtmode_t;
   22 
   23 #define VT_RELDISP      _IO('v', 4)
   24 #define VT_FALSE        0               /* release of VT refused */
   25 #define VT_TRUE         1               /* VT released */
   26 #define VT_ACKACQ       2               /* acknowledging VT acquiration */
   27 
   28 #define VT_ACTIVATE     _IO('v', 5)
   29 #define VT_WAITACTIVE   _IO('v', 6)
   30 #define VT_GETACTIVE    _IOR('v', 7, int)
   31 
   32 #define VT_GETSTATE     _IOR('v', 100, struct vt_stat)
   33 struct vt_stat {
   34         unsigned short v_active;        /* active vt */
   35         unsigned short v_signal;        /* signal to send */
   36         unsigned short v_state;         /* vt bitmask */
   37 };
   38 
   39 #define KDGETKBENT      _IOWR('K', 4, struct kbentry)
   40 struct kbentry {
   41         unchar  kb_table;       /* which table to use */
   42         unchar  kb_index;       /* which entry in table */
   43         ushort  kb_value;       /* value to get/set in table */
   44 };
   45 
   46 #define KDGKBMODE       _IOR('K', 6, int)       /* get keyboard mode */
   47 
   48 #define KDSKBMODE       _IO('K', 7)             /* set keyboard mode */
   49 #define K_RAW           0               /* kbd switched to raw mode */
   50 #define K_XLATE         1               /* kbd switched to "normal" mode */
   51 
   52 #define KDMKTONE        _IO('K', 8)
   53 
   54 #define KDSETMODE       _IO('K', 10)
   55 #define KD_TEXT         0               /* set text mode restore fonts  */
   56 #define KD_GRAPHICS     1               /* set graphics mode            */
   57 
   58 #define KDENABIO        _IO('K', 60) /* only allowed if euid == 0 */
   59 #define KDDISABIO       _IO('K', 61)
   60 
   61 #define KDGKBTYPE       _IOR('K', 64, char)
   62 #define KB_84           1
   63 #define KB_101          2
   64 #define KB_OTHER        3
   65 
   66 #define KDGETLED        _IOR('K', 65, int)
   67 #define KDSETLED        _IO('K', 66)
   68 #define LED_CAP         1
   69 #define LED_NUM         2
   70 #define LED_SCR         4
   71 
   72 #define KDSETRAD        _IO('K', 67)
   73 
   74 /* pcvt compatibility */
   75 #define VGAPCVTID       _IOWR('V',113, struct pcvtid)   /* get driver id */
   76 
   77 struct pcvtid {
   78 #define PCVTIDNAMELN  16                /* driver id - string length    */
   79         char name[PCVTIDNAMELN];        /* driver name                  */
   80         int rmajor;                     /* revision number, major       */
   81         int rminor;                     /* revision number, minor       */
   82 };
   83 
   84 /* syscons compatibility */
   85 #define CONS_GETVERS    _IOR('c', 74, int)
   86 
   87 #endif /* _DEV_WSCONS_WSDISPLAY_USL_IO_H_ */

Cache object: d2ef4b6763b8c8065f75a04721ac6e59


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.