Annotation of Examples/DriverKit/QVision/QVision_reloc.tproj/QVision.h, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1992, 1993 NeXT Computer, Inc.  All rights reserved. 
                      2:  *
                      3:  * QVision.h - Definition of the QVision display driver class.
                      4:  *
                      5:  * HISTORY
                      6:  * 30 Sep 92   Joe Pasqua
                      7:  *      Created. 
                      8:  * 21 May 1993 Derek B Clegg
                      9:  *     Cleaned up for external release.
                     10:  * Tue Aug 16 16:53:03 PDT 1994 James C. Lee
                     11:  *     Add 3.3 bus support & 8-bit color support.
                     12:  */
                     13: #ifndef QVISION_H__
                     14: #define QVISION_H__
                     15: 
                     16: #import <driverkit/IOFrameBufferDisplay.h>
                     17: #import "QVisionModes.h"
                     18: 
                     19: 
                     20: /* bus type--should eventually be moved to IOFrameBufferDisplay */
                     21: typedef enum configBusType {
                     22:        BusISAorVL,
                     23:        BusPCI,
                     24:        BusEISA
                     25: } ConfigBusType;
                     26: 
                     27: @interface QVision:IOFrameBufferDisplay
                     28: {
                     29:     /* The adapter; either QVisionAdapter, OrionAdapter, or Orion12Adapter. */
                     30:     QVAdapterType adapter;
                     31: 
                     32:     /* The type of DAC this device has. */
                     33:     DACtype dac;
                     34: 
                     35:     /* The physical address of framebuffer. */
                     36:     unsigned long videoRamAddress;
                     37: 
                     38:     /* The transfer tables for this mode. */
                     39:     unsigned char *redTransferTable;
                     40:     unsigned char *greenTransferTable;
                     41:     unsigned char *blueTransferTable;
                     42: 
                     43:     /* The number of entries in the transfer table. */
                     44:     int transferTableCount;
                     45: 
                     46:     /* The current screen brightness. */
                     47:     int brightnessLevel;
                     48: 
                     49:     /* Reserved for future expansion. */
                     50:     int _QVision_reserved[8];
                     51:     
                     52:     /* bus type reported from instance table */
                     53:     ConfigBusType      busType;
                     54: }
                     55: - (void)enterLinearMode;
                     56: - (void)revertToVGAMode;
                     57: - initFromDeviceDescription: deviceDescription;
                     58: - setBrightness:(int)level token:(int)t;
                     59: - setTransferTable:(unsigned int *)table count:(int)count;
                     60: @end
                     61: 
                     62: @interface QVision (SetMode)
                     63: - determineConfiguration;
                     64: - selectMode;
                     65: - initializeMode;
                     66: - enableLinearFrameBuffer;
                     67: - resetVGA;
                     68: @end
                     69: 
                     70: @interface QVision (ProgramDAC)
                     71: - determineDACType;
                     72: - resetDAC;
                     73: - programDAC;
                     74: - setGammaTable;
                     75: @end
                     76: 
                     77: #endif /* QVISION_H__ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.