home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Headers / bsd / dev / i386 / VGAConsPriv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-30  |  1.3 KB  |  67 lines

  1. /*     Copyright (c) 1992 NeXT Computer, Inc.  All rights reserved. 
  2.  *
  3.  * VGAConsPriv.h - Private constants and typedefs for
  4.  *                  VGAConsole implementation.
  5.  *
  6.  * HISTORY
  7.  * 02 Feb 93    Peter Graffagnino
  8.  *      Created from FBConsPriv.h
  9.  */
  10.  
  11. /*
  12.  * Standard font.
  13.  */
  14. extern char ohlfs12[][];
  15. #import "ohlfs12.h"
  16.  
  17. /*
  18.  * Framebuffer characteristics.
  19.  */
  20. #define FRAMEBUFFER_ADDRESS 0xa0000
  21. #define TOTALWIDTH 1024
  22. #define ROWBYTES 128
  23. #define LINESPERBANK (0x10000 / ROWBYTES)
  24.  
  25. /*
  26.  * Sizes (in pixels) for text and alert windows
  27.  */
  28. #define TEXT_WIN_WIDTH        600
  29. #define TEXT_WIN_HEIGHT        450
  30.  
  31. #define ALERT_WIN_WIDTH        320
  32. #define ALERT_WIN_HEIGHT    200
  33.  
  34. /*
  35.  * Misc. constants.
  36.  */
  37. #define    TAB_SIZE        8        // in characters
  38.  
  39.  
  40. /*
  41.  * VGA Graphics Controller Port
  42.  */
  43.  
  44. #define VGA_GC_ADDR        0x3CE
  45. #define VGA_NUM_GC_REGS        9         // number of graphics controller
  46.                     // registers to preserve
  47. #define VGA_SEQ_ADDR        0x3C4
  48. #define VGA_NUM_SEQ_REGS    5         // number of sequencer
  49.                     // registers to preserve
  50.  
  51. /*
  52.  * default graphics controller registers for mode 0x12
  53.  */
  54. static unsigned char defaultGCRegisters[] = {
  55.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff
  56. };
  57.  
  58. /*
  59.  * Standard NeXT colors (set up by DPS driver)
  60.  */
  61.  
  62. #define VGA_WHITE    3        
  63. #define VGA_LTGRAY    2        
  64. #define VGA_DKGRAY    1        
  65. #define VGA_BLACK    0        
  66.  
  67.