home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / evc.h < prev    next >
Encoding:
Text File  |  1990-12-08  |  4.2 KB  |  125 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/evc.h.sl 1.1 4.0 12/08/90 60633 AT&T-USL"
  11. /*    Copyright (c) 1989 Intel Corp.        */
  12. /*      All Rights Reserved      */
  13. /*
  14.  *    INTEL CORPORATION PROPRIETARY INFORMATION
  15.  *
  16.  *    This software is supplied under the terms of a license
  17.  *    agreement or nondisclosure agreement with Intel Corpo-
  18.  *    ration and may not be copied or disclosed except in
  19.  *    accordance with the terms of that agreement.
  20.  */
  21.  
  22. /* evc.h - board specific defines for Olivetti EVC-1 */
  23.  
  24. /* 
  25.  * Copyright 1989 Ing. C. Olivetti & C. S.p.A.
  26.  *
  27.  * Permission to use, copy, modify, and distribute this software and its
  28.  * documentation for any purpose and without fee is hereby granted, provided
  29.  * that the above copyright notice appear in all copies and that both that
  30.  * copyright notice and this permission notice appear in supporting
  31.  * documentation, and that the name of Olivetti not be used in advertising
  32.  * or publicity pertaining to distribution of the software without specific,
  33.  * written prior permission.  Olivetti makes no representations about the
  34.  * suitability of this software for any purpose.  It is provided "as is"
  35.  * without express or implied warranty.
  36.  *
  37.  * OLIVETTI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  38.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
  39.  * NO EVENT SHALL OLIVETTI BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  40.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  41.  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  42.  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  43.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  44.  *
  45.  */
  46. /* 
  47.  *
  48.  * (C) Copyright 1989 Olivetti Advanced Technology Center, Inc.
  49.  * All rights reserved.
  50.  */
  51.  
  52. /*
  53.  * Register offsets to be used for accessing the video board.
  54.  */
  55.  
  56. #define    OfsEVC1BoardEnableReg    0x0C84
  57. #define    OfsEVC1BoardIdReg0    0x0C80
  58. #define    OfsEVC1BoardIdReg1    0x0C81
  59. #define    OfsEVC1BoardIdReg2    0x0C82
  60. #define    OfsEVC1BoardIdReg3    0x0C83
  61. #define    OfsEVC1BoardControlReg    0x0880
  62. #define    OfsEVC1BoardConfigReg    0x0884
  63.  
  64. /***********  Board Enable Definitions ********/
  65.  
  66. #define    EISA_DISABLE    0x00    /* WRITE MASK that disables the board */
  67. #define    EISA_ENABLE    0x01    /* RW 1= Enable EVC-1 board */
  68. #define    EISA_IOCHKERR    0x02    /* RO 0= EVC-1 OK */
  69. #define    EISA_STARTRS    0x04    /* WO 1-to-0 = Reset EVC-1 board (500 nanosec.) */
  70. #define    EISA_STOPRS    0x00    /*    stop reset sequence. */
  71.  
  72.  
  73. /***********  Board Identification Definitions ***********/
  74.  
  75. #define    EVC1Id0    0x3D
  76. #define    EVC1Id1    0x89
  77. #define    EVC1Id2    0x10
  78. #define    EVC1Id3    0x11
  79.  
  80. /***********  Board Control Definitions ********/
  81.  
  82. #define    EVC1Setup    0x01    /* RW 1= Enable VGA, 0= Setup VGA */
  83. #define    EVC1Access    0x02    /* RW 1= VGA path, 0= direct path */
  84. #define    EVC1Address    0x04    /* RW 1= direct at 3.25 GB, 0= direct at 14 MB */
  85. #define EVC1_MEMHIGH    0xD0000000
  86. #define EVC1_MEMLOW    0x00E00000
  87. #define    EVC1MonitorMask    0x70    /* RO monitor ID bits */
  88.  
  89. /***********  Monitor Identification Definitions ********/
  90.  
  91. #define    MONVGAMono    5    /* VGA Monochrome */
  92. #define    MONVGAColor    3    /* VGA Color */
  93. #define    MONHiRMono    4    /* High Resolution Monochrome */
  94. #define    MONHiRColor    2    /* High Resolution Color */
  95. #define    MONNone        7    /* No monitor attached */
  96.  
  97.  
  98. /***********  Board Config Definitions ********/
  99.  
  100. #define    EVC1Buswidth    0x01    /* 1= 8 bits, 0= 16 bits */
  101.  
  102.  
  103.  
  104. /***********  Macros for Register Writes ********/
  105.  
  106. /*
  107. #define    EVC1StartSetup    ( (EVC1Setup & (~EVC1Setup)) | EVC1Access )
  108. #define    EVC1StopSetup    ( EVC1Setup | EVC1Access )
  109. */
  110. #define    EVC1StartSetup    ( (EVC1Setup & (~EVC1Setup)) | EVC1Access | EVC1Address )
  111. #define    EVC1StopSetup    ( EVC1Setup | EVC1Access | EVC1Address )
  112. #define    EVC1Bus16    (EVC1Buswidth & (~EVC1Buswidth))
  113. #define    EVC1Bus8    (EVC1Buswidth)
  114.  
  115. #define    EVC1DirectHIGH    ( EVC1Setup | EVC1Address )
  116. #define    EVC1DirectLOW    ( EVC1Setup )
  117.  
  118.  
  119. /* definitions used in 'vtables.c' */
  120.  
  121. #define    EVC_BASE    EVC1_MEMHIGH
  122. #define    EVC_SIZE    0x00100000
  123. #define    EVC_HGSIZE    307200L
  124.  
  125.