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.7 by cebix, 2001-06-28T21:20:01Z

# 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-2001 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 108 | Line 105 | enum { // VDTimingInfo struct
105          csTimingFlags = 16
106   };
107  
108 + enum {  // VDResolutionInfo struct
109 +        csPreviousDisplayModeID = 0,
110 +        csRIDisplayModeID = 4,
111 +        csHorizontalPixels = 8,
112 +        csVerticalLines = 12,
113 +        csRefreshRate = 16,
114 +        csMaxDepthMode = 20,
115 +        csResolutionFlags = 22
116 + };
117 +
118 + enum {  // VDVideoParametersInfo struct
119 +        csDisplayModeID = 0,
120 +        csDepthMode = 4,
121 +        csVPBlockPtr = 6,
122 +        csPageCount = 10,
123 +        csDeviceType = 14
124 + };
125 +
126 + enum {  // VPBlock struct
127 +        vpBaseOffset = 0,
128 +        vpRowBytes = 4,
129 +        vpBounds = 6,
130 +        vpVersion = 14,
131 +        vpPackType = 16,
132 +        vpPackSize = 18,
133 +        vpHRes = 22,
134 +        vpVRes = 26,
135 +        vpPixelType = 30,
136 +        vpPixelSize = 32,
137 +        vpCmpCount = 34,
138 +        vpCmpSize = 36,
139 +        vpPlaneBytes = 38
140 + };
141 +
142 + enum {  // SPBlock struct
143 +        spResult = 0,
144 +        spPointer = 4,
145 +        spSize = 8,
146 +        spOffsetData = 12,
147 +        spIOFileName = 16,
148 +        spExecPBlk = 20,
149 +        spParamData = 24,
150 +        spMisc = 28,
151 +        spReserved = 32,
152 +        spIOReserved = 36,
153 +        spRefNum = 38,
154 +        spCategory = 40,
155 +        spCType = 42,
156 +        spDrvrSW = 44,
157 +        spDrvrHW = 46,
158 +        spTBMask = 48,
159 +        spSlot = 49,
160 +        spID = 50,
161 +        spExtDev = 51,
162 +        spHwDev = 52,
163 +        spByteLanes = 53,
164 +        spFlags = 54,
165 +        spKey = 55,
166 +        SIZEOF_SPBlock = 56
167 + };
168 +
169   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines