1 |
|
/* |
2 |
|
* video_defs.h - Definitions for MacOS video drivers |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 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 = 1, |
26 |
|
cscSetMode = 2, |
27 |
|
cscSetEntries = 3, |
28 |
|
cscSetGamma = 4, |
40 |
|
cscSetPowerState = 25, |
41 |
|
cscPrivateControlCall = 26, |
42 |
|
cscSetMultiConnect = 27, |
43 |
< |
cscSetClutBehavior = 28, |
46 |
< |
cscUnusedCall = 127 |
43 |
> |
cscSetClutBehavior = 28 |
44 |
|
}; |
45 |
|
|
46 |
|
// Video driver status codes |
47 |
|
enum { |
48 |
|
cscGetMode = 2, |
49 |
|
cscGetEntries = 3, |
50 |
< |
cscGetPageCnt = 4, |
51 |
< |
cscGetPageBase = 5, |
50 |
> |
cscGetPages = 4, |
51 |
> |
cscGetBaseAddress = 5, |
52 |
|
cscGetGray = 6, |
53 |
|
cscGetInterrupt = 7, |
54 |
|
cscGetGamma = 8, |
55 |
|
cscGetDefaultMode = 9, |
56 |
< |
cscGetCurMode = 10, |
56 |
> |
cscGetCurrentMode = 10, |
57 |
|
cscGetSync = 11, |
58 |
|
cscGetConnection = 12, |
59 |
|
cscGetModeTiming = 13, |
88 |
|
csCount = 6 |
89 |
|
}; |
90 |
|
|
91 |
+ |
enum { // VDGammaRecord |
92 |
+ |
csGTable = 0 |
93 |
+ |
}; |
94 |
+ |
|
95 |
|
enum { // VDDisplayConnectInfo struct |
96 |
|
csDisplayType = 0, |
97 |
|
csConnectTaggedType = 2, |
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 |