Annotation of driverkit/libDriver/ppc/IONDRVFramebuffer.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: /*
        !            25:  * Copyright (c) 1997 Apple Computer, Inc.
        !            26:  *
        !            27:  *
        !            28:  * HISTORY
        !            29:  *
        !            30:  * Simon Douglas  22 Oct 97
        !            31:  * - first checked in.
        !            32:  */
        !            33: 
        !            34: 
        !            35: 
        !            36: #import <driverkit/displayDefs.h>
        !            37: #import <driverkit/ppc/IOFramebuffer.h>
        !            38: #import "IONDRVInterface.h"
        !            39: #import <driverkit/ppc/IOPCIDevice.h>
        !            40: #import "IOMacOSVideo.h"
        !            41: 
        !            42: 
        !            43: @interface IONDRVFramebuffer:IOFramebuffer <IOFBAppleSense, IOFBHighLevelDDCSense>
        !            44: {
        !            45:     /* 
        !            46:      * Transfer tables.
        !            47:      */
        !            48:     ColorSpec       *          transferTable;
        !            49:     ColorSpec  *               scaledTable;
        !            50:     int                        transferTableCount; // # of entries in transfer
        !            51:                                                //    table
        !            52:     int                        brightnessLevel;  
        !            53:     BOOL                       gammaKilled;  
        !            54: 
        !            55:     UInt32                      modeListCount;
        !            56:     IODisplayInfo    *         modeList;
        !            57:     IODisplayInfo    *         defaultDisplayMode;
        !            58: 
        !            59:     IOPCIDevice        *       ioDevice;
        !            60:     NDRVInstance               ndrvInst;
        !            61:     LogicalAddress             doDriverIO;
        !            62:     DriverDescription *                theDriverDesc;
        !            63: 
        !            64:     int                                consoleDevice;
        !            65:     int                                ndrvState;
        !            66: 
        !            67:     UInt32                     vramBase;
        !            68:     UInt32                     vramLength;
        !            69: 
        !            70:     SInt32                     cachedModeIndex;
        !            71:     SInt32                     cachedModeID;
        !            72:     VDResolutionInfoRec                cachedVDResolution;
        !            73: #if 0
        !            74:     TVector                    intHandler;
        !            75:     TVector                    intEnabler;
        !            76:     TVector                    intDisabler;
        !            77: 
        !            78:     TVector            *       currentIntHandler;
        !            79:     TVector            *       currentIntEnabler;
        !            80:     TVector            *       currentIntDisabler;
        !            81: #endif
        !            82: }
        !            83: 
        !            84: - (IOReturn) checkDriver;
        !            85: - (IOReturn) doControl:(UInt32)code params:(void *)params;
        !            86: - (IOReturn) doStatus:(UInt32)code params:(void *)params;
        !            87: 
        !            88: @end
        !            89: 
        !            90: @interface IONDRVFramebuffer (ProgramDAC)
        !            91: 
        !            92: - setTransferTable:(const unsigned int *)table count:(int)count;
        !            93: - (IOReturn)getTransferTable:(unsigned int *)table count:(int *)count;
        !            94: - setBrightness:(int)level token:(int)t;
        !            95: - setTheTable;
        !            96: 
        !            97: @end
        !            98: 
        !            99: @interface IOOFFramebuffer:IOFramebuffer
        !           100: {
        !           101: }
        !           102: @end
        !           103: 
        !           104: @interface IOATINDRV:IONDRVFramebuffer
        !           105: {
        !           106: }
        !           107: @end
        !           108: 
        !           109: @interface IOIX3DNDRV:IONDRVFramebuffer
        !           110: {
        !           111:     volatile UInt8   * panther;
        !           112: }
        !           113: @end
        !           114: 

unix.superglobalmegacorp.com

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