Annotation of kernel/bsd/dev/ppc/ConsoleSupport.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) 1992 NeXT Computer, Inc.  All rights reserved. 
        !            26:  *
        !            27:  * ConsoleSupport.h - Definition of the ConsoleSupport system.
        !            28:  *
        !            29:  *
        !            30:  * HISTORY
        !            31:  * 01 Sep 92   Joe Pasqua
        !            32:  *      Created. 
        !            33:  */
        !            34: 
        !            35: // Notes:
        !            36: // * Every display object needs to be able to support console output. Also,
        !            37: //   there is always VGA style console output available. Each display class
        !            38: //   will need to implement the functions listed in the object defined below.
        !            39: // * The km driver will get one of these objects ffrom the display be calling
        !            40: //   a method in the display. The km driver can get a console object for the
        !            41: //   VGA by calling VGAAllocateConsole().
        !            42: //
        !            43: 
        !            44: #ifdef DRIVER_PRIVATE
        !            45: 
        !            46: #import <bsd/dev/kmreg_com.h>
        !            47: 
        !            48: // Screen mode and window type.
        !            49: typedef enum {
        !            50:     SCM_UNINIT,                        // uninitialized
        !            51:     SCM_TEXT,                  // verbose boot mode or runnning
        !            52:                                //   with no window server
        !            53:     SCM_GRAPHIC,               // boot w/icons
        !            54:     SCM_ALERT,                 // temporary alert mode
        !            55:     SCM_OTHER,                 // screen owned by someone else
        !            56: } ScreenMode;
        !            57: 
        !            58: /*
        !            59:  * Arguments to kmDrawGraphicPanel().
        !            60:  */
        !            61: typedef enum {
        !            62:     KM_PANEL_ERASE,            /* erase all panels */
        !            63:     KM_PANEL_NS,               /* NEXTSTEP panel */
        !            64:     KM_PANEL_ALERT             /* alert panel */
        !            65: } GraphicPanelType;
        !            66: 
        !            67: struct ConsoleSize {
        !            68:     unsigned short     rows;
        !            69:     unsigned short     cols;
        !            70:     unsigned short     pixel_width;
        !            71:     unsigned short     pixel_height;
        !            72: };
        !            73: 
        !            74: typedef struct _t_IOConsoleInfo {
        !            75:     void (*Free)(struct _t_IOConsoleInfo *console);
        !            76:     void (*Init)(
        !            77:        struct _t_IOConsoleInfo *console,
        !            78:        ScreenMode mode,
        !            79:        boolean_t initScreen,
        !            80:        boolean_t initWindow,
        !            81:        const char *title);
        !            82:     int (*Restore)(struct _t_IOConsoleInfo * console);
        !            83:     int (*DrawRect)(
        !            84:         struct _t_IOConsoleInfo * console, const struct km_drawrect *r);
        !            85:     int (*EraseRect)(
        !            86:         struct _t_IOConsoleInfo * console, const struct km_drawrect *r);
        !            87:     void (*PutC)(struct _t_IOConsoleInfo *console, char c);
        !            88:     void (*GetSize)(
        !            89:        struct _t_IOConsoleInfo * console,
        !            90:        struct ConsoleSize * size);
        !            91:     void *priv;
        !            92: } IOConsoleInfo;
        !            93: 
        !            94: typedef enum {
        !            95:        L_ENGLISH = 0,
        !            96:        L_FRENCH,
        !            97:        L_GERMAN,
        !            98:        L_SPANISH,
        !            99:        L_ITALIAN,
        !           100:        L_SWEDISH,
        !           101:        L_JAPANESE,
        !           102:        L_NUM_LANGUAGE
        !           103:        } LANG_TYPE;
        !           104: extern LANG_TYPE glLanguage;
        !           105: 
        !           106: #endif /* DRIVER_PRIVATE */

unix.superglobalmegacorp.com

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