ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/video_defs.h
(Generate patch)

Comparing BasiliskII/src/include/video_defs.h (file contents):
Revision 1.2 by cebix, 2000-04-10T18:53:41Z vs.
Revision 1.12 by gbeauche, 2005-01-30T21:42:15Z

# Line 1 | Line 1
1   /*
2   *  video_defs.h - Definitions for MacOS video drivers
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2005 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 23 | Line 23
23  
24   // Video driver control codes
25   enum {
26 <        cscReset = 0,
27 <        cscKillIO,
28 <        cscSetMode,
29 <        cscSetEntries,
30 <        cscSetGamma,
31 <        cscGrayPage,
32 <        cscSetGray,
33 <        cscSetInterrupt,
34 <        cscDirectSetEntries,
35 <        cscSetDefaultMode,
36 <        cscSwitchMode,
37 <        cscSetSync,
38 <        cscSavePreferredConfiguration = 16,
39 <        cscSetHardwareCursor = 22,
40 <        cscDrawHardwareCursor,
41 <        cscSetConvolution,
42 <        cscSetPowerState,
43 <        cscPrivateControlCall,
44 <        cscSetMultiConnect,
45 <        cscSetClutBehavior,
46 <        cscUnusedCall = 127
26 >        cscSetMode                                              = 2,
27 >        cscSetEntries                                   = 3,
28 >        cscSetGamma                                             = 4,
29 >        cscGrayPage                                             = 5,
30 >        cscSetGray                                              = 6,
31 >        cscSetInterrupt                                 = 7,
32 >        cscDirectSetEntries                             = 8,
33 >        cscSetDefaultMode                               = 9,
34 >        cscSwitchMode                                   = 10,
35 >        cscSetSync                                              = 11,
36 >        cscSavePreferredConfiguration   = 16,
37 >        cscSetHardwareCursor                    = 22,
38 >        cscDrawHardwareCursor                   = 23,
39 >        cscSetConvolution                               = 24,
40 >        cscSetPowerState                                = 25,
41 >        cscPrivateControlCall                   = 26,
42 >        cscSetMultiConnect                              = 27,
43 >        cscSetClutBehavior                              = 28
44   };
45  
46   // Video driver status codes
47   enum {
48 <        cscGetMode = 2,
49 <        cscGetEntries,
50 <        cscGetPageCnt,
51 <        cscGetPageBase,
52 <        cscGetGray,
53 <        cscGetInterrupt,
54 <        cscGetGamma,
55 <        cscGetDefaultMode,
56 <        cscGetCurMode,
57 <        cscGetSync,
58 <        cscGetConnection,
59 <        cscGetModeTiming,
60 <        cscGetModeBaseAddress,
61 <        cscGetScanProc,
62 <        cscGetPreferredConfiguration,
63 <        cscGetNextResolution,
64 <        cscGetVideoParameters,
65 <        cscGetGammaInfoList     = 20,
66 <        cscRetrieveGammaTable,
67 <        cscSupportsHardwareCursor,
68 <        cscGetHardwareCursorDrawState,
69 <        cscGetConvolution,
70 <        cscGetPowerState,
71 <        cscPrivateStatusCall,
72 <        cscGetDDCBlock,
73 <        cscGetMultiConnect,
74 <        cscGetClutBehavior
48 >        cscGetMode                                              = 2,
49 >        cscGetEntries                                   = 3,
50 >        cscGetPages                                             = 4,
51 >        cscGetBaseAddress                               = 5,
52 >        cscGetGray                                              = 6,
53 >        cscGetInterrupt                                 = 7,
54 >        cscGetGamma                                             = 8,
55 >        cscGetDefaultMode                               = 9,
56 >        cscGetCurrentMode                               = 10,
57 >        cscGetSync                                              = 11,
58 >        cscGetConnection                                = 12,
59 >        cscGetModeTiming                                = 13,
60 >        cscGetModeBaseAddress                   = 14,
61 >        cscGetScanProc                                  = 15,
62 >        cscGetPreferredConfiguration    = 16,
63 >        cscGetNextResolution                    = 17,
64 >        cscGetVideoParameters                   = 18,
65 >        cscGetGammaInfoList                             = 20,
66 >        cscRetrieveGammaTable                   = 21,
67 >        cscSupportsHardwareCursor               = 22,
68 >        cscGetHardwareCursorDrawState   = 23,
69 >        cscGetConvolution                               = 24,
70 >        cscGetPowerState                                = 25,
71 >        cscPrivateStatusCall                    = 26,
72 >        cscGetDDCBlock                                  = 27,
73 >        cscGetMultiConnect                              = 28,
74 >        cscGetClutBehavior                              = 29
75   };      
76  
77   enum {  // VDSwitchInfo struct
# Line 91 | Line 88 | enum { // VDSetEntry struct
88          csCount = 6
89   };
90  
91 + enum {  // VDGammaRecord
92 +        csGTable = 0
93 + };
94 +
95   enum {  // VDDisplayConnectInfo struct
96          csDisplayType = 0,
97          csConnectTaggedType = 2,
# Line 108 | Line 109 | enum { // VDTimingInfo struct
109          csTimingFlags = 16
110   };
111  
112 + enum {  // VDResolutionInfo struct
113 +        csPreviousDisplayModeID = 0,
114 +        csRIDisplayModeID = 4,
115 +        csHorizontalPixels = 8,
116 +        csVerticalLines = 12,
117 +        csRefreshRate = 16,
118 +        csMaxDepthMode = 20,
119 +        csResolutionFlags = 22
120 + };
121 +
122 + enum {  // VDVideoParametersInfo struct
123 +        csDisplayModeID = 0,
124 +        csDepthMode = 4,
125 +        csVPBlockPtr = 6,
126 +        csPageCount = 10,
127 +        csDeviceType = 14
128 + };
129 +
130 + enum {  // VPBlock struct
131 +        vpBaseOffset = 0,
132 +        vpRowBytes = 4,
133 +        vpBounds = 6,
134 +        vpVersion = 14,
135 +        vpPackType = 16,
136 +        vpPackSize = 18,
137 +        vpHRes = 22,
138 +        vpVRes = 26,
139 +        vpPixelType = 30,
140 +        vpPixelSize = 32,
141 +        vpCmpCount = 34,
142 +        vpCmpSize = 36,
143 +        vpPlaneBytes = 38
144 + };
145 +
146 + enum {  // SPBlock struct
147 +        spResult = 0,
148 +        spPointer = 4,
149 +        spSize = 8,
150 +        spOffsetData = 12,
151 +        spIOFileName = 16,
152 +        spExecPBlk = 20,
153 +        spParamData = 24,
154 +        spMisc = 28,
155 +        spReserved = 32,
156 +        spIOReserved = 36,
157 +        spRefNum = 38,
158 +        spCategory = 40,
159 +        spCType = 42,
160 +        spDrvrSW = 44,
161 +        spDrvrHW = 46,
162 +        spTBMask = 48,
163 +        spSlot = 49,
164 +        spID = 50,
165 +        spExtDev = 51,
166 +        spHwDev = 52,
167 +        spByteLanes = 53,
168 +        spFlags = 54,
169 +        spKey = 55,
170 +        SIZEOF_SPBlock = 56
171 + };
172 +
173 + enum {  // struct GammaTbl
174 +        gVersion = 0,
175 +        gType = 2,
176 +        gFormulaSize = 4,
177 +        gChanCnt = 6,
178 +        gDataCnt = 8,
179 +        gDataWidth = 10,
180 +        gFormulaData = 12, // variable size
181 +        SIZEOF_GammaTbl = 12
182 + };
183 +
184 + enum {  // struct VDMultiConnectInfo
185 +        csDisplayCountOrNumber = 0,
186 +        csConnectInfo = 4
187 + };
188 +
189   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines