|
|
1.1 root 1: /* CONFIDENTIAL
2: * Copyright (c) 1993 by NeXT Computer, Inc as an unpublished work.
3: * All rights reserved.
4: *
5: * S3.h -- interface for S3 display driver.
6: *
7: * Created by Peter Graffagnino 1/31/93
8: * Modified by Derek B Clegg 21 May 1993
9: */
10:
11: #ifndef S3_H__
12: #define S3_H__
13:
14: #import <driverkit/IOFrameBufferDisplay.h>
15: #import "S3Modes.h"
16:
17: @interface S3:IOFrameBufferDisplay
18: {
19: /* The adapter; either S3_805 or S3_928. */
20: S3AdapterType adapter;
21:
22: /* The memory installed on this device. */
23: vm_size_t availableMemory;
24:
25: /* The type of DAC this device has. */
26: DACtype dac;
27:
28: /* The bus configuration. */
29: int busConfiguration;
30:
31: /* The table of valid modes for this device. */
32: const IODisplayInfo *modeTable;
33:
34: /* The count of valid modes for this device. */
35: unsigned int modeTableCount;
36:
37: /* The physical address of framebuffer. */
38: unsigned long videoRamAddress;
39:
40: /* YES if the fast write buffer is enabled; NO otherwise. */
41: BOOL writePostingEnabled;
42:
43: /* YES if the read-ahead cache is enabled; NO otherwise. */
44: BOOL readAheadCacheEnabled;
45:
46: /* The transfer tables for this mode. */
47: unsigned char *redTransferTable;
48: unsigned char *greenTransferTable;
49: unsigned char *blueTransferTable;
50:
51: /* The number of entries in the transfer table. */
52: int transferTableCount;
53:
54: /* The current screen brightness. */
55: int brightnessLevel;
56:
57: /* Reserved for future expansion. */
58: unsigned int _S3_reserved[8];
59: }
60: - (void)enterLinearMode;
61: - (void)revertToVGAMode;
62: - initFromDeviceDescription: deviceDescription;
63: - setBrightness:(int)level token:(int)t;
64: @end
65:
66: @interface S3 (SetMode)
67: - determineConfiguration;
68: - selectMode;
69: - initializeMode;
70: - enableLinearFrameBuffer;
71: - resetVGA;
72: @end
73:
74: @interface S3 (ProgramDAC)
75: - determineDACType;
76: - (BOOL)hasTransferTable;
77: - (BOOL)needsSoftwareGammaCorrection;
78: - resetDAC;
79: - programDAC;
80: - setGammaTable;
81: @end
82:
83: @interface S3 (ConfigTable)
84: - (const char *)valueForStringKey:(const char *)key;
85: - (int)parametersForMode:(const char *)modeName
86: forStringKey:(const char *)key
87: parameters:(char *)parameters
88: count:(int)count;
89: - (BOOL)booleanForStringKey:(const char *)key withDefault:(BOOL)defaultValue;
90: @end
91:
92: #endif /* S3_H__ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.