home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / vid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.3 KB  |  38 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/sys/vid.h.sl 1.1 4.0 12/08/90 25569 AT&T-USL"
  11.  
  12. #ifndef _SYS_VID_H
  13. #define    _SYS_VID_H
  14.  
  15. #define ATYPE(x, y)    (x.w_vstate.v_cmos == y)
  16. #define DTYPE(x, y)    (x.w_vstate.v_type == y)
  17. #define CMODE(x, y)    (x.w_vstate.v_cvmode == y)    /* Current disp. mode */
  18. #define DMODE(x, y)    (x.w_vstate.v_dvmode == y)
  19.  
  20. #define KD_RDVMEM    0
  21. #define KD_WRVMEM    1
  22.  
  23. struct modeinfo {
  24.     ushort    m_cols,        /* Number of character columns */
  25.         m_rows,        /* Number of character rows */
  26.         m_xpels,    /* Number of pels on x axis */
  27.         m_ypels;    /* Number of pels on y axis */
  28.     unchar    m_color;    /* Non-zero value indicates color mode */
  29.     paddr_t    m_base;        /* Physical address of screen memory */
  30.     ulong    m_size;        /* Size of screen memory */
  31.     unchar    m_font,        /* Default font (0 indicates grahpics mode) */
  32.         m_params,    /* Parameter location: BIOS or static table */
  33.         m_offset,    /* offset with respect to m_params */
  34.         m_ramdac;    /* RAMDAC table offset */
  35. };
  36.  
  37. #endif /* _SYS_VID_H */
  38.