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 |
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, |
26 |
> |
cscReset = 0, |
27 |
> |
cscKillIO = 1, |
28 |
> |
cscSetMode = 2, |
29 |
> |
cscSetEntries = 3, |
30 |
> |
cscSetGamma = 4, |
31 |
> |
cscGrayPage = 5, |
32 |
> |
cscSetGray = 6, |
33 |
> |
cscSetInterrupt = 7, |
34 |
> |
cscDirectSetEntries = 8, |
35 |
> |
cscSetDefaultMode = 9, |
36 |
> |
cscSwitchMode = 10, |
37 |
> |
cscSetSync = 11, |
38 |
> |
cscSavePreferredConfiguration = 16, |
39 |
> |
cscSetHardwareCursor = 22, |
40 |
> |
cscDrawHardwareCursor = 23, |
41 |
> |
cscSetConvolution = 24, |
42 |
> |
cscSetPowerState = 25, |
43 |
> |
cscPrivateControlCall = 26, |
44 |
> |
cscSetMultiConnect = 27, |
45 |
> |
cscSetClutBehavior = 28, |
46 |
|
cscUnusedCall = 127 |
47 |
|
}; |
48 |
|
|
49 |
|
// Video driver status codes |
50 |
|
enum { |
51 |
< |
cscGetMode = 2, |
52 |
< |
cscGetEntries, |
53 |
< |
cscGetPageCnt, |
54 |
< |
cscGetPageBase, |
55 |
< |
cscGetGray, |
56 |
< |
cscGetInterrupt, |
57 |
< |
cscGetGamma, |
58 |
< |
cscGetDefaultMode, |
59 |
< |
cscGetCurMode, |
60 |
< |
cscGetSync, |
61 |
< |
cscGetConnection, |
62 |
< |
cscGetModeTiming, |
63 |
< |
cscGetModeBaseAddress, |
64 |
< |
cscGetScanProc, |
65 |
< |
cscGetPreferredConfiguration, |
66 |
< |
cscGetNextResolution, |
67 |
< |
cscGetVideoParameters, |
68 |
< |
cscGetGammaInfoList = 20, |
69 |
< |
cscRetrieveGammaTable, |
70 |
< |
cscSupportsHardwareCursor, |
71 |
< |
cscGetHardwareCursorDrawState, |
72 |
< |
cscGetConvolution, |
73 |
< |
cscGetPowerState, |
74 |
< |
cscPrivateStatusCall, |
75 |
< |
cscGetDDCBlock, |
76 |
< |
cscGetMultiConnect, |
77 |
< |
cscGetClutBehavior |
51 |
> |
cscGetMode = 2, |
52 |
> |
cscGetEntries = 3, |
53 |
> |
cscGetPageCnt = 4, |
54 |
> |
cscGetPageBase = 5, |
55 |
> |
cscGetGray = 6, |
56 |
> |
cscGetInterrupt = 7, |
57 |
> |
cscGetGamma = 8, |
58 |
> |
cscGetDefaultMode = 9, |
59 |
> |
cscGetCurMode = 10, |
60 |
> |
cscGetSync = 11, |
61 |
> |
cscGetConnection = 12, |
62 |
> |
cscGetModeTiming = 13, |
63 |
> |
cscGetModeBaseAddress = 14, |
64 |
> |
cscGetScanProc = 15, |
65 |
> |
cscGetPreferredConfiguration = 16, |
66 |
> |
cscGetNextResolution = 17, |
67 |
> |
cscGetVideoParameters = 18, |
68 |
> |
cscGetGammaInfoList = 20, |
69 |
> |
cscRetrieveGammaTable = 21, |
70 |
> |
cscSupportsHardwareCursor = 22, |
71 |
> |
cscGetHardwareCursorDrawState = 23, |
72 |
> |
cscGetConvolution = 24, |
73 |
> |
cscGetPowerState = 25, |
74 |
> |
cscPrivateStatusCall = 26, |
75 |
> |
cscGetDDCBlock = 27, |
76 |
> |
cscGetMultiConnect = 28, |
77 |
> |
cscGetClutBehavior = 29 |
78 |
|
}; |
79 |
|
|
80 |
|
enum { // VDSwitchInfo struct |
108 |
|
csTimingFlags = 16 |
109 |
|
}; |
110 |
|
|
111 |
+ |
enum { // VDResolutionInfo struct |
112 |
+ |
csPreviousDisplayModeID = 0, |
113 |
+ |
csRIDisplayModeID = 4, |
114 |
+ |
csHorizontalPixels = 8, |
115 |
+ |
csVerticalLines = 12, |
116 |
+ |
csRefreshRate = 16, |
117 |
+ |
csMaxDepthMode = 20, |
118 |
+ |
csResolutionFlags = 22 |
119 |
+ |
}; |
120 |
+ |
|
121 |
+ |
enum { // VDVideoParametersInfo struct |
122 |
+ |
csDisplayModeID = 0, |
123 |
+ |
csDepthMode = 4, |
124 |
+ |
csVPBlockPtr = 6, |
125 |
+ |
csPageCount = 10, |
126 |
+ |
csDeviceType = 14 |
127 |
+ |
}; |
128 |
+ |
|
129 |
+ |
enum { // VPBlock struct |
130 |
+ |
vpBaseOffset = 0, |
131 |
+ |
vpRowBytes = 4, |
132 |
+ |
vpBounds = 6, |
133 |
+ |
vpVersion = 14, |
134 |
+ |
vpPackType = 16, |
135 |
+ |
vpPackSize = 18, |
136 |
+ |
vpHRes = 22, |
137 |
+ |
vpVRes = 26, |
138 |
+ |
vpPixelType = 30, |
139 |
+ |
vpPixelSize = 32, |
140 |
+ |
vpCmpCount = 34, |
141 |
+ |
vpCmpSize = 36, |
142 |
+ |
vpPlaneBytes = 38 |
143 |
+ |
}; |
144 |
+ |
|
145 |
|
#endif |