1/*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License").  You may not use this file except in compliance with the
9 * License.  Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23
24#ifndef _IOKIT_IOBOOTFRAMEBUFFER_H
25#define _IOKIT_IOBOOTFRAMEBUFFER_H
26
27#include        <IOKit/graphics/IOFramebuffer.h>
28#include <IOKit/IOPlatformExpert.h>
29
30
31class IOBootFramebuffer : public IOFramebuffer
32{
33    OSDeclareDefaultStructors(IOBootFramebuffer)
34
35public:
36
37    virtual IOService * probe(  IOService *     provider,
38                                SInt32 *        score );
39
40//    virtual bool start( IOService * provider );
41
42    virtual const char * getPixelFormats( void );
43
44    virtual IOItemCount getDisplayModeCount( void );
45
46    virtual IOReturn getDisplayModes( IODisplayModeID * allDisplayModes );
47
48    virtual IOReturn getInformationForDisplayMode( IODisplayModeID displayMode,
49                    IODisplayModeInformation * info );
50
51    virtual UInt64  getPixelFormatsForDisplayMode( IODisplayModeID displayMode,
52                    IOIndex depth );
53
54    virtual IOReturn getPixelInformation(
55        IODisplayModeID displayMode, IOIndex depth,
56        IOPixelAperture aperture, IOPixelInformation * pixelInfo );
57
58    virtual IOReturn getCurrentDisplayMode( IODisplayModeID * displayMode,
59                            IOIndex * depth );
60
61    virtual IODeviceMemory * getApertureRange( IOPixelAperture aperture );
62
63    virtual bool isConsoleDevice( void );
64
65    virtual IOReturn setCLUTWithEntries( IOColorEntry * colors, UInt32 index,
66                UInt32 numEntries, IOOptionBits options );
67
68    virtual IOReturn setGammaTable( UInt32 channelCount, UInt32 dataCount,
69                    UInt32 dataWidth, void * data );
70};
71
72#endif /* ! _IOKIT_IOBOOTFRAMEBUFFER_H */
73
74