Video.pas 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. {
  2. File: Video.p
  3. Contains: Video Driver Interfaces.
  4. Version: Technology: System 9.X
  5. Release: Universal Interfaces 3.4.2
  6. Copyright: © 1986-2002 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. {
  12. Modified for use with Free Pascal
  13. Version 210
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$calling mwpascal}
  21. unit Video;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  24. {$setc GAP_INTERFACES_VERSION := $0210}
  25. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  26. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  27. {$endc}
  28. {$ifc defined CPUPOWERPC and defined CPUI386}
  29. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  30. {$endc}
  31. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  32. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  33. {$endc}
  34. {$ifc not defined __ppc__ and defined CPUPOWERPC}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  45. {$error Conflicting definitions for __ppc__ and __i386__}
  46. {$endc}
  47. {$ifc defined __ppc__ and __ppc__}
  48. {$setc TARGET_CPU_PPC := TRUE}
  49. {$setc TARGET_CPU_X86 := FALSE}
  50. {$elifc defined __i386__ and __i386__}
  51. {$setc TARGET_CPU_PPC := FALSE}
  52. {$setc TARGET_CPU_X86 := TRUE}
  53. {$elsec}
  54. {$error Neither __ppc__ nor __i386__ is defined.}
  55. {$endc}
  56. {$setc TARGET_CPU_PPC_64 := FALSE}
  57. {$ifc defined FPC_BIG_ENDIAN}
  58. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  59. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  60. {$elifc defined FPC_LITTLE_ENDIAN}
  61. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  62. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  63. {$elsec}
  64. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  65. {$endc}
  66. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  67. {$setc CALL_NOT_IN_CARBON := FALSE}
  68. {$setc OLDROUTINENAMES := FALSE}
  69. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  70. {$setc OPAQUE_UPP_TYPES := TRUE}
  71. {$setc OTCARBONAPPLICATION := TRUE}
  72. {$setc OTKERNEL := FALSE}
  73. {$setc PM_USE_SESSION_APIS := TRUE}
  74. {$setc TARGET_API_MAC_CARBON := TRUE}
  75. {$setc TARGET_API_MAC_OS8 := FALSE}
  76. {$setc TARGET_API_MAC_OSX := TRUE}
  77. {$setc TARGET_CARBON := TRUE}
  78. {$setc TARGET_CPU_68K := FALSE}
  79. {$setc TARGET_CPU_MIPS := FALSE}
  80. {$setc TARGET_CPU_SPARC := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_UNIX := FALSE}
  83. {$setc TARGET_OS_WIN32 := FALSE}
  84. {$setc TARGET_RT_MAC_68881 := FALSE}
  85. {$setc TARGET_RT_MAC_CFM := FALSE}
  86. {$setc TARGET_RT_MAC_MACHO := TRUE}
  87. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  88. {$setc TYPE_BOOL := FALSE}
  89. {$setc TYPE_EXTENDED := FALSE}
  90. {$setc TYPE_LONGLONG := TRUE}
  91. uses MacTypes,NameRegistry,Quickdraw;
  92. {$ALIGN MAC68K}
  93. const
  94. mBaseOffset = 1; { Id of mBaseOffset. }
  95. mRowBytes = 2; { Video sResource parameter Id's }
  96. mBounds = 3; { Video sResource parameter Id's }
  97. mVersion = 4; { Video sResource parameter Id's }
  98. mHRes = 5; { Video sResource parameter Id's }
  99. mVRes = 6; { Video sResource parameter Id's }
  100. mPixelType = 7; { Video sResource parameter Id's }
  101. mPixelSize = 8; { Video sResource parameter Id's }
  102. mCmpCount = 9; { Video sResource parameter Id's }
  103. mCmpSize = 10; { Video sResource parameter Id's }
  104. mPlaneBytes = 11; { Video sResource parameter Id's }
  105. mVertRefRate = 14; { Video sResource parameter Id's }
  106. mVidParams = 1; { Video parameter block id. }
  107. mTable = 2; { Offset to the table. }
  108. mPageCnt = 3; { Number of pages }
  109. mDevType = 4; { Device Type }
  110. oneBitMode = 128; { Id of OneBitMode Parameter list. }
  111. twoBitMode = 129; { Id of TwoBitMode Parameter list. }
  112. fourBitMode = 130; { Id of FourBitMode Parameter list. }
  113. eightBitMode = 131; { Id of EightBitMode Parameter list. }
  114. sixteenBitMode = 132; { Id of SixteenBitMode Parameter list. }
  115. thirtyTwoBitMode = 133; { Id of ThirtyTwoBitMode Parameter list. }
  116. firstVidMode = 128; { The new, better way to do the above. }
  117. secondVidMode = 129; { QuickDraw only supports six video }
  118. thirdVidMode = 130; { at this time. }
  119. fourthVidMode = 131;
  120. fifthVidMode = 132;
  121. sixthVidMode = 133;
  122. spGammaDir = 64;
  123. spVidNamesDir = 65;
  124. { csTimingFormat values in VDTimingInfo }
  125. { look in the declaration rom for timing info }
  126. kDeclROMtables = FourCharCode('decl');
  127. kDetailedTimingFormat = FourCharCode('arba'); { Timing is a detailed timing }
  128. { Size of a block of EDID (Extended Display Identification Data) }
  129. kDDCBlockSize = 128;
  130. { ddcBlockType constants }
  131. kDDCBlockTypeEDID = 0; { EDID block type. }
  132. { ddcFlags constants }
  133. kDDCForceReadBit = 0; { Force a new read of the EDID. }
  134. kDDCForceReadMask = $01; { Mask for kddcForceReadBit. }
  135. { Timing mode constants for Display Manager MultiMode support
  136. Corresponding .h equates are in Video.h
  137. .a equates are in Video.a
  138. .r equates are in DepVideoEqu.r
  139. The second enum is the old names (for compatibility).
  140. The first enum is the new names.
  141. }
  142. timingInvalid = 0; { Unknown timingÉ force user to confirm. }
  143. timingInvalid_SM_T24 = 8; { Work around bug in SM Thunder24 card. }
  144. timingApple_FixedRateLCD = 42; { Lump all fixed-rate LCDs into one category. }
  145. timingApple_512x384_60hz = 130; { 512x384 (60 Hz) Rubik timing. }
  146. timingApple_560x384_60hz = 135; { 560x384 (60 Hz) Rubik-560 timing. }
  147. timingApple_640x480_67hz = 140; { 640x480 (67 Hz) HR timing. }
  148. timingApple_640x400_67hz = 145; { 640x400 (67 Hz) HR-400 timing. }
  149. timingVESA_640x480_60hz = 150; { 640x480 (60 Hz) VGA timing. }
  150. timingVESA_640x480_72hz = 152; { 640x480 (72 Hz) VGA timing. }
  151. timingVESA_640x480_75hz = 154; { 640x480 (75 Hz) VGA timing. }
  152. timingVESA_640x480_85hz = 158; { 640x480 (85 Hz) VGA timing. }
  153. timingGTF_640x480_120hz = 159; { 640x480 (120 Hz) VESA Generalized Timing Formula }
  154. timingApple_640x870_75hz = 160; { 640x870 (75 Hz) FPD timing. }
  155. timingApple_640x818_75hz = 165; { 640x818 (75 Hz) FPD-818 timing. }
  156. timingApple_832x624_75hz = 170; { 832x624 (75 Hz) GoldFish timing. }
  157. timingVESA_800x600_56hz = 180; { 800x600 (56 Hz) SVGA timing. }
  158. timingVESA_800x600_60hz = 182; { 800x600 (60 Hz) SVGA timing. }
  159. timingVESA_800x600_72hz = 184; { 800x600 (72 Hz) SVGA timing. }
  160. timingVESA_800x600_75hz = 186; { 800x600 (75 Hz) SVGA timing. }
  161. timingVESA_800x600_85hz = 188; { 800x600 (85 Hz) SVGA timing. }
  162. timingVESA_1024x768_60hz = 190; { 1024x768 (60 Hz) VESA 1K-60Hz timing. }
  163. timingVESA_1024x768_70hz = 200; { 1024x768 (70 Hz) VESA 1K-70Hz timing. }
  164. timingVESA_1024x768_75hz = 204; { 1024x768 (75 Hz) VESA 1K-75Hz timing (very similar to timingApple_1024x768_75hz). }
  165. timingVESA_1024x768_85hz = 208; { 1024x768 (85 Hz) VESA timing. }
  166. timingApple_1024x768_75hz = 210; { 1024x768 (75 Hz) Apple 19" RGB. }
  167. timingApple_1152x870_75hz = 220; { 1152x870 (75 Hz) Apple 21" RGB. }
  168. timingAppleNTSC_ST = 230; { 512x384 (60 Hz, interlaced, non-convolved). }
  169. timingAppleNTSC_FF = 232; { 640x480 (60 Hz, interlaced, non-convolved). }
  170. timingAppleNTSC_STconv = 234; { 512x384 (60 Hz, interlaced, convolved). }
  171. timingAppleNTSC_FFconv = 236; { 640x480 (60 Hz, interlaced, convolved). }
  172. timingApplePAL_ST = 238; { 640x480 (50 Hz, interlaced, non-convolved). }
  173. timingApplePAL_FF = 240; { 768x576 (50 Hz, interlaced, non-convolved). }
  174. timingApplePAL_STconv = 242; { 640x480 (50 Hz, interlaced, convolved). }
  175. timingApplePAL_FFconv = 244; { 768x576 (50 Hz, interlaced, convolved). }
  176. timingVESA_1280x960_75hz = 250; { 1280x960 (75 Hz) }
  177. timingVESA_1280x960_60hz = 252; { 1280x960 (60 Hz) }
  178. timingVESA_1280x960_85hz = 254; { 1280x960 (85 Hz) }
  179. timingVESA_1280x1024_60hz = 260; { 1280x1024 (60 Hz) }
  180. timingVESA_1280x1024_75hz = 262; { 1280x1024 (75 Hz) }
  181. timingVESA_1280x1024_85hz = 268; { 1280x1024 (85 Hz) }
  182. timingVESA_1600x1200_60hz = 280; { 1600x1200 (60 Hz) VESA timing. }
  183. timingVESA_1600x1200_65hz = 282; { 1600x1200 (65 Hz) VESA timing. }
  184. timingVESA_1600x1200_70hz = 284; { 1600x1200 (70 Hz) VESA timing. }
  185. timingVESA_1600x1200_75hz = 286; { 1600x1200 (75 Hz) VESA timing (pixel clock is 189.2 Mhz dot clock). }
  186. timingVESA_1600x1200_80hz = 288; { 1600x1200 (80 Hz) VESA timing (pixel clock is 216>? Mhz dot clock) - proposed only. }
  187. timingVESA_1600x1200_85hz = 289; { 1600x1200 (85 Hz) VESA timing (pixel clock is 229.5 Mhz dot clock). }
  188. timingVESA_1792x1344_60hz = 296; { 1792x1344 (60 Hz) VESA timing (204.75 Mhz dot clock). }
  189. timingVESA_1792x1344_75hz = 298; { 1792x1344 (75 Hz) VESA timing (261.75 Mhz dot clock). }
  190. timingVESA_1856x1392_60hz = 300; { 1856x1392 (60 Hz) VESA timing (218.25 Mhz dot clock). }
  191. timingVESA_1856x1392_75hz = 302; { 1856x1392 (75 Hz) VESA timing (288 Mhz dot clock). }
  192. timingVESA_1920x1440_60hz = 304; { 1920x1440 (60 Hz) VESA timing (234 Mhz dot clock). }
  193. timingVESA_1920x1440_75hz = 306; { 1920x1440 (75 Hz) VESA timing (297 Mhz dot clock). }
  194. timingSMPTE240M_60hz = 400; { 60Hz V, 33.75KHz H, interlaced timing, 16:9 aspect, typical resolution of 1920x1035. }
  195. timingFilmRate_48hz = 410; { 48Hz V, 25.20KHz H, non-interlaced timing, typical resolution of 640x480. }
  196. timingSony_1600x1024_76hz = 500; { 1600x1024 (76 Hz) Sony timing (pixel clock is 170.447 Mhz dot clock). }
  197. timingSony_1920x1080_60hz = 510; { 1920x1080 (60 Hz) Sony timing (pixel clock is 159.84 Mhz dot clock). }
  198. timingSony_1920x1080_72hz = 520; { 1920x1080 (72 Hz) Sony timing (pixel clock is 216.023 Mhz dot clock). }
  199. timingSony_1920x1200_76hz = 540; { 1900x1200 (76 Hz) Sony timing (pixel clock is 243.20 Mhz dot clock). }
  200. timingApple_0x0_0hz_Offline = 550; { Indicates that this timing will take the display off-line and remove it from the system. }
  201. { Deprecated timing names. }
  202. timingApple12 = 130;
  203. timingApple12x = 135;
  204. timingApple13 = 140;
  205. timingApple13x = 145;
  206. timingAppleVGA = 150;
  207. timingApple15 = 160;
  208. timingApple15x = 165;
  209. timingApple16 = 170;
  210. timingAppleSVGA = 180;
  211. timingApple1Ka = 190;
  212. timingApple1Kb = 200;
  213. timingApple19 = 210;
  214. timingApple21 = 220;
  215. timingSony_1900x1200_74hz = 530; { 1900x1200 (74 Hz) Sony timing (pixel clock is 236.25 Mhz dot clock). }
  216. timingSony_1900x1200_76hz = 540; { 1900x1200 (76 Hz) Sony timing (pixel clock is 245.48 Mhz dot clock). }
  217. { csConnectFlags values in VDDisplayConnectInfo }
  218. kAllModesValid = 0; { All modes not trimmed by primary init are good close enough to try }
  219. kAllModesSafe = 1; { All modes not trimmed by primary init are know to be safe }
  220. kReportsTagging = 2; { Can detect tagged displays (to identify smart monitors) }
  221. kHasDirectConnection = 3; { True implies that driver can talk directly to device (e.g. serial data link via sense lines) }
  222. kIsMonoDev = 4; { Says whether thereÕs an RGB (0) or Monochrome (1) connection. }
  223. kUncertainConnection = 5; { There may not be a display (no sense lines?). }
  224. kTaggingInfoNonStandard = 6; { Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). }
  225. kReportsDDCConnection = 7; { Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). }
  226. kHasDDCConnection = 8; { Card has ddc connect now. }
  227. kConnectionInactive = 9; { Set when the connection is NOT currently active (generally used in a multiconnection environment). }
  228. kDependentConnection = 10; { Set when some ascpect of THIS connection depends on another (will generally be set in a kModeSimulscan environment). }
  229. kBuiltInConnection = 11; { Set when connection is KNOWN to be built-in (this is not the same as kHasDirectConnection). }
  230. kOverrideConnection = 12; { Set when the reported connection is not the true one, but is one that has been forced through a SetConnection call }
  231. kFastCheckForDDC = 13; { Set when all 3 are true: 1) sense codes indicate DDC display could be attached 2) attempted fast check 3) DDC failed }
  232. kReportsHotPlugging = 14; { Detects and reports hot pluggging on connector (via VSL also implies DDC will be up to date w/o force read) }
  233. { csDisplayType values in VDDisplayConnectInfo }
  234. kUnknownConnect = 1; { Not sure how weÕll use this, but seems like a good idea. }
  235. kPanelConnect = 2; { For use with fixed-in-place LCD panels. }
  236. kPanelTFTConnect = 2; { Alias for kPanelConnect }
  237. kFixedModeCRTConnect = 3; { For use with fixed-mode (i.e., very limited range) displays. }
  238. kMultiModeCRT1Connect = 4; { 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe }
  239. kMultiModeCRT2Connect = 5; { 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe }
  240. kMultiModeCRT3Connect = 6; { 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain }
  241. kMultiModeCRT4Connect = 7; { Expansion to large multi mode (not yet used) }
  242. kModelessConnect = 8; { Expansion to modeless model (not yet used) }
  243. kFullPageConnect = 9; { 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) }
  244. kVGAConnect = 10; { 640x480 VGA default -- question everything else }
  245. kNTSCConnect = 11; { NTSC ST (default), FF, STconv, FFconv }
  246. kPALConnect = 12; { PAL ST (default), FF, STconv, FFconv }
  247. kHRConnect = 13; { Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) }
  248. kPanelFSTNConnect = 14; { For use with fixed-in-place LCD FSTN (aka ÒSupertwistÓ) panels }
  249. kMonoTwoPageConnect = 15; { 1152x870 Apple color two-page display }
  250. kColorTwoPageConnect = 16; { 1152x870 Apple B&W two-page display }
  251. kColor16Connect = 17; { 832x624 Apple B&W two-page display }
  252. kColor19Connect = 18; { 1024x768 Apple B&W two-page display }
  253. kGenericCRT = 19; { Indicates nothing except that connection is CRT in nature. }
  254. kGenericLCD = 20; { Indicates nothing except that connection is LCD in nature. }
  255. kDDCConnect = 21; { DDC connection, always set kHasDDCConnection }
  256. kNoConnect = 22; { No display is connected - load sensing or similar level of hardware detection is assumed (used by resident drivers that support hot plugging when nothing is currently connected) }
  257. { csTimingFlags values in VDTimingInfoRec }
  258. kModeValid = 0; { Says that this mode should NOT be trimmed. }
  259. kModeSafe = 1; { This mode does not need confirmation }
  260. kModeDefault = 2; { This is the default mode for this type of connection }
  261. kModeShowNow = 3; { This mode should always be shown (even though it may require a confirm) }
  262. kModeNotResize = 4; { This mode should not be used to resize the display (eg. mode selects a different connector on card) }
  263. kModeRequiresPan = 5; { This mode has more pixels than are actually displayed }
  264. kModeInterlaced = 6; { This mode is interlaced (single pixel lines look bad). }
  265. kModeShowNever = 7; { This mode should not be shown in the user interface. }
  266. kModeSimulscan = 8; { Indicates that more than one display connection can be driven from a single framebuffer controller. }
  267. kModeNotPreset = 9; { Indicates that the timing is not a factory preset for the current display (geometry may need correction) }
  268. kModeBuiltIn = 10; { Indicates that the display mode is for the built-in connect only (on multiconnect devices like the PB 3400) Only the driver is quieried }
  269. kModeStretched = 11; { Indicates that the display mode will be stretched/distorted to match the display aspect ratio }
  270. kModeNotGraphicsQuality = 12; { Indicates that the display mode is not the highest quality (eg. stretching artifacts). Intended as a hint }
  271. { csDepthFlags in VDVideoParametersInfoRec }
  272. kDepthDependent = 0; { Says that this depth mode may cause dependent changes in other framebuffers (and . }
  273. { csResolutionFlags bit flags for VDResolutionInfoRec }
  274. kResolutionHasMultipleDepthSizes = 0; { Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) }
  275. { Power Mode constants for VDPowerStateRec.powerState. Note the numeric order does not match the power state order }
  276. kAVPowerOff = 0;
  277. kAVPowerStandby = 1;
  278. kAVPowerSuspend = 2;
  279. kAVPowerOn = 3;
  280. kHardwareSleep = 128;
  281. kHardwareWake = 129;
  282. kHardwareWakeFromSuspend = 130;
  283. kHardwareWakeToDoze = 131;
  284. kHardwareWakeToDozeFromSuspend = 132;
  285. kHardwarePark = 133;
  286. kHardwareDrive = 134;
  287. { Power Mode masks and bits for VDPowerStateRec.powerFlags. }
  288. kPowerStateNeedsRefresh = 0; { When leaving this power mode, a display will need refreshing }
  289. kPowerStateSleepAwareBit = 1; { if gestaltPCCardDockingSelectorFix, Docking mgr checks this bit before checking kPowerStateSleepAllowedBit }
  290. kPowerStateSleepForbiddenBit = 2; { if kPowerStateSleepAwareBit, Docking mgr checks this bit before sleeping }
  291. kPowerStateSleepCanPowerOffBit = 3; { supports power down sleep (ie PCI power off) }
  292. kPowerStateSleepNoDPMSBit = 4; { Bug #2425210. Do not use DPMS with this display. }
  293. kPowerStateSleepWaketoDozeBit = 5; { Supports Wake to Doze }
  294. kPowerStateNeedsRefreshMask = $00000001;
  295. kPowerStateSleepAwareMask = $00000002;
  296. kPowerStateSleepForbiddenMask = $00000004;
  297. kPowerStateSleepCanPowerOffMask = $00000008;
  298. kPowerStateSleepNoDPMSMask = $00000010;
  299. kPowerStateSleepWaketoDozeMask = $00000020;
  300. { Control Codes }
  301. cscReset = 0;
  302. cscKillIO = 1;
  303. cscSetMode = 2;
  304. cscSetEntries = 3;
  305. cscSetGamma = 4;
  306. cscGrayPage = 5;
  307. cscGrayScreen = 5;
  308. cscSetGray = 6;
  309. cscSetInterrupt = 7;
  310. cscDirectSetEntries = 8;
  311. cscSetDefaultMode = 9;
  312. cscSwitchMode = 10; { Takes a VDSwitchInfoPtr }
  313. cscSetSync = 11; { Takes a VDSyncInfoPtr }
  314. cscSavePreferredConfiguration = 16; { Takes a VDSwitchInfoPtr }
  315. cscSetHardwareCursor = 22; { Takes a VDSetHardwareCursorPtr }
  316. cscDrawHardwareCursor = 23; { Takes a VDDrawHardwareCursorPtr }
  317. cscSetConvolution = 24; { Takes a VDConvolutionInfoPtr }
  318. cscSetPowerState = 25; { Takes a VDPowerStatePtr }
  319. cscPrivateControlCall = 26; { Takes a VDPrivateSelectorDataPtr }
  320. cscSetMultiConnect = 28; { Takes a VDMultiConnectInfoPtr }
  321. cscSetClutBehavior = 29; { Takes a VDClutBehavior }
  322. cscSetDetailedTiming = 31; { Takes a VDDetailedTimingPtr }
  323. cscDoCommunication = 33; { Takes a VDCommunicationPtr }
  324. cscProbeConnection = 34; { Takes nil pointer (may generate a kFBConnectInterruptServiceType service interrupt) }
  325. cscSetScaler = 36; { Takes a VDScalerPtr }
  326. cscSetMirror = 37; { Takes a VDMirrorPtr }
  327. cscUnusedCall = 127; { This call used to expend the scrn resource. Its imbedded data contains more control info }
  328. { Status Codes }
  329. cscGetMode = 2;
  330. cscGetEntries = 3;
  331. cscGetPageCnt = 4;
  332. cscGetPages = 4; { This is what C&D 2 calls it. }
  333. cscGetPageBase = 5;
  334. cscGetBaseAddr = 5; { This is what C&D 2 calls it. }
  335. cscGetGray = 6;
  336. cscGetInterrupt = 7;
  337. cscGetGamma = 8;
  338. cscGetDefaultMode = 9;
  339. cscGetCurMode = 10; { Takes a VDSwitchInfoPtr }
  340. cscGetSync = 11; { Takes a VDSyncInfoPtr }
  341. cscGetConnection = 12; { Return information about the connection to the display }
  342. cscGetModeTiming = 13; { Return timing info for a mode }
  343. cscGetModeBaseAddress = 14; { Return base address information about a particular mode }
  344. cscGetScanProc = 15; { QuickTime scan chasing routine }
  345. cscGetPreferredConfiguration = 16; { Takes a VDSwitchInfoPtr }
  346. cscGetNextResolution = 17; { Takes a VDResolutionInfoPtr }
  347. cscGetVideoParameters = 18; { Takes a VDVideoParametersInfoPtr }
  348. cscGetGammaInfoList = 20; { Takes a VDGetGammaListPtr }
  349. cscRetrieveGammaTable = 21; { Takes a VDRetrieveGammaPtr }
  350. cscSupportsHardwareCursor = 22; { Takes a VDSupportsHardwareCursorPtr }
  351. cscGetHardwareCursorDrawState = 23; { Takes a VDHardwareCursorDrawStatePtr }
  352. cscGetConvolution = 24; { Takes a VDConvolutionInfoPtr }
  353. cscGetPowerState = 25; { Takes a VDPowerStatePtr }
  354. cscPrivateStatusCall = 26; { Takes a VDPrivateSelectorDataPtr }
  355. cscGetDDCBlock = 27; { Takes a VDDDCBlockPtr }
  356. cscGetMultiConnect = 28; { Takes a VDMultiConnectInfoPtr }
  357. cscGetClutBehavior = 29; { Takes a VDClutBehaviorPtr }
  358. cscGetTimingRanges = 30; { Takes a VDDisplayTimingRangePtr }
  359. cscGetDetailedTiming = 31; { Takes a VDDetailedTimingPtr }
  360. cscGetCommunicationInfo = 32; { Takes a VDCommunicationInfoPtr }
  361. cscGetScalerInfo = 35; { Takes a VDScalerInfoPtr }
  362. cscGetScaler = 36; { Takes a VDScalerPtr }
  363. cscGetMirror = 37; { Takes a VDMirrorPtr }
  364. { Bit definitions for the Get/Set Sync call }
  365. kDisableHorizontalSyncBit = 0;
  366. kDisableVerticalSyncBit = 1;
  367. kDisableCompositeSyncBit = 2;
  368. kEnableSyncOnBlue = 3;
  369. kEnableSyncOnGreen = 4;
  370. kEnableSyncOnRed = 5;
  371. kNoSeparateSyncControlBit = 6;
  372. kTriStateSyncBit = 7;
  373. kHorizontalSyncMask = $01;
  374. kVerticalSyncMask = $02;
  375. kCompositeSyncMask = $04;
  376. kDPMSSyncMask = $07;
  377. kTriStateSyncMask = $80;
  378. kSyncOnBlueMask = $08;
  379. kSyncOnGreenMask = $10;
  380. kSyncOnRedMask = $20;
  381. kSyncOnMask = $38;
  382. { Power Mode constants for translating DPMS modes to Get/SetSync calls. }
  383. kDPMSSyncOn = 0;
  384. kDPMSSyncStandby = 1;
  385. kDPMSSyncSuspend = 2;
  386. kDPMSSyncOff = 7;
  387. { Bit definitions for the Get/Set Convolution call }
  388. kConvolved = 0;
  389. kLiveVideoPassThru = 1;
  390. kConvolvedMask = $01;
  391. kLiveVideoPassThruMask = $02;
  392. type
  393. VPBlockPtr = ^VPBlock;
  394. VPBlock = record
  395. vpBaseOffset: SInt32; { Offset to page zero of video RAM (From minorBaseOS). }
  396. vpRowBytes: SInt16; { Width of each row of video memory. }
  397. vpBounds: Rect; { BoundsRect for the video display (gives dimensions). }
  398. vpVersion: SInt16; { PixelMap version number. }
  399. vpPackType: SInt16;
  400. vpPackSize: SInt32;
  401. vpHRes: SInt32; { Horizontal resolution of the device (pixels per inch). }
  402. vpVRes: SInt32; { Vertical resolution of the device (pixels per inch). }
  403. vpPixelType: SInt16; { Defines the pixel type. }
  404. vpPixelSize: SInt16; { Number of bits in pixel. }
  405. vpCmpCount: SInt16; { Number of components in pixel. }
  406. vpCmpSize: SInt16; { Number of bits per component }
  407. vpPlaneBytes: SInt32; { Offset from one plane to the next. }
  408. end;
  409. VDEntryRecordPtr = ^VDEntryRecord;
  410. VDEntryRecord = record
  411. csTable: Ptr; { (long) pointer to color table entry=value, r,g,b:SInt16 }
  412. end;
  413. VDEntRecPtr = ^VDEntryRecord;
  414. { Parm block for SetGray control call }
  415. VDGrayRecordPtr = ^VDGrayRecord;
  416. VDGrayRecord = record
  417. csMode: boolean; { Same as GDDevType value (0=color, 1=mono) }
  418. filler: SInt8;
  419. end;
  420. VDGrayPtr = ^VDGrayRecord;
  421. { Parm block for SetInterrupt call }
  422. VDFlagRecordPtr = ^VDFlagRecord;
  423. VDFlagRecord = record
  424. csMode: SInt8;
  425. filler: SInt8;
  426. end;
  427. VDFlagRecPtr = ^VDFlagRecord;
  428. { Parm block for SetEntries control call }
  429. VDSetEntryRecordPtr = ^VDSetEntryRecord;
  430. VDSetEntryRecord = record
  431. csTable: ColorSpecPtr; { Pointer to an array of color specs }
  432. csStart: SInt16; { Which spec in array to start with, or -1 }
  433. csCount: SInt16; { Number of color spec entries to set }
  434. end;
  435. VDSetEntryPtr = ^VDSetEntryRecord;
  436. { Parm block for SetGamma control call }
  437. VDGammaRecordPtr = ^VDGammaRecord;
  438. VDGammaRecord = record
  439. csGTable: Ptr; { pointer to gamma table }
  440. end;
  441. VDGamRecPtr = ^VDGammaRecord;
  442. VDBaseAddressInfoRecPtr = ^VDBaseAddressInfoRec;
  443. VDBaseAddressInfoRec = record
  444. csDevData: SInt32; { SInt32 - (long) timing mode }
  445. csDevBase: SInt32; { SInt32 - (long) base address of the mode }
  446. csModeReserved: SInt16; { SInt16 - (short) will some day be the depth }
  447. csModeBase: SInt32; { SInt32 - (long) reserved }
  448. end;
  449. VDBaseAddressInfoPtr = ^VDBaseAddressInfoRec;
  450. VDSwitchInfoRecPtr = ^VDSwitchInfoRec;
  451. VDSwitchInfoRec = record
  452. csMode: UInt16; { (word) mode depth }
  453. csData: UInt32; { (long) functional sResource of mode }
  454. csPage: UInt16; { (word) page to switch in }
  455. csBaseAddr: Ptr; { (long) base address of page (return value) }
  456. csReserved: UInt32; { (long) Reserved (set to 0) }
  457. end;
  458. VDSwitchInfoPtr = ^VDSwitchInfoRec;
  459. VDTimingInfoRecPtr = ^VDTimingInfoRec;
  460. VDTimingInfoRec = record
  461. csTimingMode: UInt32; { SInt32 - (long) timing mode (a la InitGDevice) }
  462. csTimingReserved: UInt32; { SInt32 - (long) reserved }
  463. csTimingFormat: UInt32; { SInt32 - (long) what format is the timing info }
  464. csTimingData: UInt32; { SInt32 - (long) data supplied by driver }
  465. csTimingFlags: UInt32; { SInt32 - (long) mode within device }
  466. end;
  467. VDTimingInfoPtr = ^VDTimingInfoRec;
  468. VDDisplayConnectInfoRecPtr = ^VDDisplayConnectInfoRec;
  469. VDDisplayConnectInfoRec = record
  470. csDisplayType: UInt16; { SInt16 - (word) Type of display connected }
  471. csConnectTaggedType: SInt8; { BYTE - type of tagging }
  472. csConnectTaggedData: SInt8; { BYTE - tagging data }
  473. csConnectFlags: UInt32; { SInt32 - (long) tell us about the connection }
  474. csDisplayComponent: UInt32; { SInt32 - (long) if the card has a direct connection to the display, it returns the display component here (FUTURE) }
  475. csConnectReserved: UInt32; { SInt32 - (long) reserved }
  476. end;
  477. VDDisplayConnectInfoPtr = ^VDDisplayConnectInfoRec;
  478. VDMultiConnectInfoRecPtr = ^VDMultiConnectInfoRec;
  479. VDMultiConnectInfoRec = record
  480. csDisplayCountOrNumber: UInt32; { For GetMultiConnect, returns count n of 1..n connections; otherwise, indicates the ith connection. }
  481. csConnectInfo: VDDisplayConnectInfoRec; { Standard VDDisplayConnectionInfo for connection i. }
  482. end;
  483. VDMultiConnectInfoPtr = ^VDMultiConnectInfoRec;
  484. { RawSenseCode
  485. This abstract data type is not exactly abstract. Rather, it is merely enumerated constants
  486. for the possible raw sense code values when 'standard' sense code hardware is implemented.
  487. For 'standard' sense code hardware, the raw sense is obtained as follows:
  488. ¥ Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines
  489. ¥ Read the state of the monitor sense lines 2, 1, and 0. (2 is the MSB, 0 the LSB)
  490. IMPORTANT Note:
  491. When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants
  492. are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo'
  493. }
  494. RawSenseCode = UInt8;
  495. const
  496. kRSCZero = 0;
  497. kRSCOne = 1;
  498. kRSCTwo = 2;
  499. kRSCThree = 3;
  500. kRSCFour = 4;
  501. kRSCFive = 5;
  502. kRSCSix = 6;
  503. kRSCSeven = 7;
  504. { ExtendedSenseCode
  505. This abstract data type is not exactly abstract. Rather, it is merely enumerated constants
  506. for the values which are possible when the extended sense algorithm is applied to hardware
  507. which implements 'standard' sense code hardware.
  508. For 'standard' sense code hardware, the extended sense code algorithm is as follows:
  509. (Note: as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0')
  510. ¥ Drive sense line 'A' low and read the values of 'B' and 'C'.
  511. ¥ Drive sense line 'B' low and read the values of 'A' and 'C'.
  512. ¥ Drive sense line 'C' low and read the values of 'A' and 'B'.
  513. In this way, a six-bit number of the form BC/AC/AB is generated.
  514. IMPORTANT Note:
  515. When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants
  516. are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo'
  517. }
  518. type
  519. ExtendedSenseCode = UInt8;
  520. const
  521. kESCZero21Inch = $00; { 21" RGB }
  522. kESCOnePortraitMono = $14; { Portrait Monochrome }
  523. kESCTwo12Inch = $21; { 12" RGB }
  524. kESCThree21InchRadius = $31; { 21" RGB (Radius) }
  525. kESCThree21InchMonoRadius = $34; { 21" Monochrome (Radius) }
  526. kESCThree21InchMono = $35; { 21" Monochrome }
  527. kESCFourNTSC = $0A; { NTSC }
  528. kESCFivePortrait = $1E; { Portrait RGB }
  529. kESCSixMSB1 = $03; { MultiScan Band-1 (12" thru 1Six") }
  530. kESCSixMSB2 = $0B; { MultiScan Band-2 (13" thru 19") }
  531. kESCSixMSB3 = $23; { MultiScan Band-3 (13" thru 21") }
  532. kESCSixStandard = $2B; { 13"/14" RGB or 12" Monochrome }
  533. kESCSevenPAL = $00; { PAL }
  534. kESCSevenNTSC = $14; { NTSC }
  535. kESCSevenVGA = $17; { VGA }
  536. kESCSeven16Inch = $2D; { 16" RGB (GoldFish) }
  537. kESCSevenPALAlternate = $30; { PAL (Alternate) }
  538. kESCSeven19Inch = $3A; { Third-Party 19Ó }
  539. kESCSevenDDC = $3E; { DDC display }
  540. kESCSevenNoDisplay = $3F; { No display connected }
  541. { DepthMode
  542. This abstract data type is used to to reference RELATIVE pixel depths.
  543. Its definition is largely derived from its past usage, analogous to 'xxxVidMode'
  544. Bits per pixel DOES NOT directly map to 'DepthMode' For example, on some
  545. graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other
  546. hardware, 'kDepthMode1' may represent 8BPP.
  547. DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc.
  548. behave as expected. The values of the constants which comprise the set are such
  549. that 'kDepthMode4 < kDepthMode6' behaves as expected.
  550. }
  551. type
  552. DepthMode = UInt16;
  553. const
  554. kDepthMode1 = 128;
  555. kDepthMode2 = 129;
  556. kDepthMode3 = 130;
  557. kDepthMode4 = 131;
  558. kDepthMode5 = 132;
  559. kDepthMode6 = 133;
  560. kFirstDepthMode = 128; { These constants are obsolete, and just included }
  561. kSecondDepthMode = 129; { for clients that have converted to the above }
  562. kThirdDepthMode = 130; { kDepthModeXXX constants. }
  563. kFourthDepthMode = 131;
  564. kFifthDepthMode = 132;
  565. kSixthDepthMode = 133;
  566. type
  567. VDPageInfoPtr = ^VDPageInfo;
  568. VDPageInfo = record
  569. csMode: SInt16; { (word) mode within device }
  570. csData: SInt32; { (long) data supplied by driver }
  571. csPage: SInt16; { (word) page to switch in }
  572. csBaseAddr: Ptr; { (long) base address of page }
  573. end;
  574. VDPgInfoPtr = ^VDPageInfo;
  575. VDSizeInfoPtr = ^VDSizeInfo;
  576. VDSizeInfo = record
  577. csHSize: SInt16; { (word) desired/returned h size }
  578. csHPos: SInt16; { (word) desired/returned h position }
  579. csVSize: SInt16; { (word) desired/returned v size }
  580. csVPos: SInt16; { (word) desired/returned v position }
  581. end;
  582. VDSzInfoPtr = ^VDSizeInfo;
  583. VDSettingsPtr = ^VDSettings;
  584. VDSettings = record
  585. csParamCnt: SInt16; { (word) number of params }
  586. csBrightMax: SInt16; { (word) max brightness }
  587. csBrightDef: SInt16; { (word) default brightness }
  588. csBrightVal: SInt16; { (word) current brightness }
  589. csCntrstMax: SInt16; { (word) max contrast }
  590. csCntrstDef: SInt16; { (word) default contrast }
  591. csCntrstVal: SInt16; { (word) current contrast }
  592. csTintMax: SInt16; { (word) max tint }
  593. csTintDef: SInt16; { (word) default tint }
  594. csTintVal: SInt16; { (word) current tint }
  595. csHueMax: SInt16; { (word) max hue }
  596. csHueDef: SInt16; { (word) default hue }
  597. csHueVal: SInt16; { (word) current hue }
  598. csHorizDef: SInt16; { (word) default horizontal }
  599. csHorizVal: SInt16; { (word) current horizontal }
  600. csHorizMax: SInt16; { (word) max horizontal }
  601. csVertDef: SInt16; { (word) default vertical }
  602. csVertVal: SInt16; { (word) current vertical }
  603. csVertMax: SInt16; { (word) max vertical }
  604. end;
  605. VDDefModePtr = ^VDDefMode;
  606. VDDefMode = record
  607. csID: SInt8;
  608. filler: SInt8;
  609. end;
  610. VDSyncInfoRecPtr = ^VDSyncInfoRec;
  611. VDSyncInfoRec = record
  612. csMode: SInt8;
  613. csFlags: SInt8;
  614. end;
  615. VDSyncInfoPtr = ^VDSyncInfoRec;
  616. AVIDType = UInt32;
  617. DisplayIDType = AVIDType;
  618. DisplayModeID = UInt32;
  619. VideoDeviceType = UInt32;
  620. GammaTableID = UInt32;
  621. {
  622. All displayModeID values from 0x80000000 to 0xFFFFFFFF and 0x00
  623. are reserved for Apple Computer.
  624. }
  625. { Constants for the cscGetNextResolution call }
  626. const
  627. kDisplayModeIDCurrent = $00; { Reference the Current DisplayModeID }
  628. kDisplayModeIDInvalid = $FFFFFFFF; { A bogus DisplayModeID in all cases }
  629. kDisplayModeIDFindFirstResolution = $FFFFFFFE; { Used in cscGetNextResolution to reset iterator }
  630. kDisplayModeIDNoMoreResolutions = $FFFFFFFD; { Used in cscGetNextResolution to indicate End Of List }
  631. kDisplayModeIDFindFirstProgrammable = $FFFFFFFC; { Used in cscGetNextResolution to find unused programmable timing }
  632. kDisplayModeIDBootProgrammable = $FFFFFFFB; { This is the ID given at boot time by the of driver to a programmable timing }
  633. kDisplayModeIDReservedBase = $80000000; { Lowest (unsigned) DisplayModeID reserved by Apple }
  634. { Constants for the GetGammaInfoList call }
  635. kGammaTableIDFindFirst = $FFFFFFFE; { Get the first gamma table ID }
  636. kGammaTableIDNoMoreTables = $FFFFFFFD; { Used to indicate end of list }
  637. kGammaTableIDSpecific = $00; { Return the info for the given table id }
  638. { Constants for GetMultiConnect call }
  639. kGetConnectionCount = $FFFFFFFF; { Used to get the number of possible connections in a Òmulti-headedÓ framebuffer environment. }
  640. kActivateConnection = $00; { Used for activating a connection (csConnectFlags value). }
  641. kDeactivateConnection = $0200; { Used for deactivating a connection (csConnectFlags value.) }
  642. { VDCommunicationRec.csBusID values }
  643. kVideoDefaultBus = 0;
  644. { VDCommunicationInfoRec.csBusType values }
  645. kVideoBusTypeInvalid = 0;
  646. kVideoBusTypeI2C = 1;
  647. { VDCommunicationRec.csSendType and VDCommunicationRec.csReplyType values and bits in VDCommunicationInfoRec.csSupportedTypes. }
  648. kVideoNoTransactionType = 0; { No transaction }
  649. kVideoSimpleI2CType = 1; { Simple I2C message }
  650. kVideoDDCciReplyType = 2; { DDC/ci message (with imbedded length) }
  651. { VDCommunicationRec.csCommFlags and VDCommunicationInfoRec.csSupportedCommFlags }
  652. kVideoReplyMicroSecDelayMask = $01; { If set, the driver should delay csMinReplyDelay micro seconds between send and recieve }
  653. type
  654. VDResolutionInfoRecPtr = ^VDResolutionInfoRec;
  655. VDResolutionInfoRec = record
  656. csPreviousDisplayModeID: DisplayModeID; { ID of the previous resolution in a chain }
  657. csDisplayModeID: DisplayModeID; { ID of the next resolution }
  658. csHorizontalPixels: UInt32; { # of pixels in a horizontal line at the max depth }
  659. csVerticalLines: UInt32; { # of lines in a screen at the max depth }
  660. csRefreshRate: Fixed; { Vertical Refresh Rate in Hz }
  661. csMaxDepthMode: DepthMode; { 0x80-based number representing max bit depth }
  662. csResolutionFlags: UInt32; { Reserved - flag bits }
  663. csReserved: UInt32; { Reserved }
  664. end;
  665. VDResolutionInfoPtr = ^VDResolutionInfoRec;
  666. VDVideoParametersInfoRecPtr = ^VDVideoParametersInfoRec;
  667. VDVideoParametersInfoRec = record
  668. csDisplayModeID: DisplayModeID; { the ID of the resolution we want info on }
  669. csDepthMode: DepthMode; { The bit depth we want the info on (0x80 based) }
  670. csVPBlockPtr: VPBlockPtr; { Pointer to a video parameter block }
  671. csPageCount: UInt32; { Number of pages supported by the resolution }
  672. csDeviceType: VideoDeviceType; { Device Type: Direct, Fixed or CLUT; }
  673. csDepthFlags: UInt32; { Flags }
  674. end;
  675. VDVideoParametersInfoPtr = ^VDVideoParametersInfoRec;
  676. VDGammaInfoRecPtr = ^VDGammaInfoRec;
  677. VDGammaInfoRec = record
  678. csLastGammaID: GammaTableID; { the ID of the previous gamma table }
  679. csNextGammaID: GammaTableID; { the ID of the next gamma table }
  680. csGammaPtr: Ptr; { Ptr to a gamma table data }
  681. csReserved: UInt32; { Reserved }
  682. end;
  683. VDGammaInfoPtr = ^VDGammaInfoRec;
  684. VDGetGammaListRecPtr = ^VDGetGammaListRec;
  685. VDGetGammaListRec = record
  686. csPreviousGammaTableID: GammaTableID; { ID of the previous gamma table }
  687. csGammaTableID: GammaTableID; { ID of the gamma table following csPreviousDisplayModeID }
  688. csGammaTableSize: UInt32; { Size of the gamma table in bytes }
  689. csGammaTableName: CStringPtr; { Gamma table name (c-string) }
  690. end;
  691. VDGetGammaListPtr = ^VDGetGammaListRec;
  692. VDRetrieveGammaRecPtr = ^VDRetrieveGammaRec;
  693. VDRetrieveGammaRec = record
  694. csGammaTableID: GammaTableID; { ID of gamma table to retrieve }
  695. csGammaTablePtr: GammaTblPtr; { Location to copy desired gamma to }
  696. end;
  697. VDRetrieveGammaPtr = ^VDRetrieveGammaRec;
  698. VDSetHardwareCursorRecPtr = ^VDSetHardwareCursorRec;
  699. VDSetHardwareCursorRec = record
  700. csCursorRef: Ptr; { reference to cursor data }
  701. csReserved1: UInt32; { reserved for future use }
  702. csReserved2: UInt32; { should be ignored }
  703. end;
  704. VDSetHardwareCursorPtr = ^VDSetHardwareCursorRec;
  705. VDDrawHardwareCursorRecPtr = ^VDDrawHardwareCursorRec;
  706. VDDrawHardwareCursorRec = record
  707. csCursorX: SInt32; { x coordinate }
  708. csCursorY: SInt32; { y coordinate }
  709. csCursorVisible: UInt32; { true if cursor is must be visible }
  710. csReserved1: UInt32; { reserved for future use }
  711. csReserved2: UInt32; { should be ignored }
  712. end;
  713. VDDrawHardwareCursorPtr = ^VDDrawHardwareCursorRec;
  714. VDSupportsHardwareCursorRecPtr = ^VDSupportsHardwareCursorRec;
  715. VDSupportsHardwareCursorRec = record
  716. csSupportsHardwareCursor: UInt32;
  717. { true if hardware cursor is supported }
  718. csReserved1: UInt32; { reserved for future use }
  719. csReserved2: UInt32; { must be zero }
  720. end;
  721. VDSupportsHardwareCursorPtr = ^VDSupportsHardwareCursorRec;
  722. VDHardwareCursorDrawStateRecPtr = ^VDHardwareCursorDrawStateRec;
  723. VDHardwareCursorDrawStateRec = record
  724. csCursorX: SInt32; { x coordinate }
  725. csCursorY: SInt32; { y coordinate }
  726. csCursorVisible: UInt32; { true if cursor is visible }
  727. csCursorSet: UInt32; { true if cursor successfully set by last set control call }
  728. csReserved1: UInt32; { reserved for future use }
  729. csReserved2: UInt32; { must be zero }
  730. end;
  731. VDHardwareCursorDrawStatePtr = ^VDHardwareCursorDrawStateRec;
  732. VDConvolutionInfoRecPtr = ^VDConvolutionInfoRec;
  733. VDConvolutionInfoRec = record
  734. csDisplayModeID: DisplayModeID; { the ID of the resolution we want info on }
  735. csDepthMode: DepthMode; { The bit depth we want the info on (0x80 based) }
  736. csPage: UInt32;
  737. csFlags: UInt32;
  738. csReserved: UInt32;
  739. end;
  740. VDConvolutionInfoPtr = ^VDConvolutionInfoRec;
  741. VDPowerStateRecPtr = ^VDPowerStateRec;
  742. VDPowerStateRec = record
  743. powerState: UInt32;
  744. powerFlags: UInt32;
  745. powerReserved1: UInt32;
  746. powerReserved2: UInt32;
  747. end;
  748. VDPowerStatePtr = ^VDPowerStateRec;
  749. {
  750. Private Data to video drivers.
  751. In versions of MacOS with multiple address spaces (System 8), the OS
  752. must know the extent of parameters in order to move them between the caller
  753. and driver. The old private-selector model for video drivers does not have
  754. this information so:
  755. For post-7.x Systems private calls should be implemented using the cscPrivateCall
  756. }
  757. VDPrivateSelectorDataRecPtr = ^VDPrivateSelectorDataRec;
  758. VDPrivateSelectorDataRec = record
  759. privateParameters: LogicalAddress; { Caller's parameters }
  760. privateParametersSize: ByteCount; { Size of data sent from caller to driver }
  761. privateResults: LogicalAddress; { Caller's return area. Can be nil, or same as privateParameters. }
  762. privateResultsSize: ByteCount; { Size of data driver returns to caller. Can be nil, or same as privateParametersSize. }
  763. end;
  764. VDPrivateSelectorRecPtr = ^VDPrivateSelectorRec;
  765. VDPrivateSelectorRec = record
  766. reserved: UInt32; { Reserved (set to 0). }
  767. data: array [0..0] of VDPrivateSelectorDataRec;
  768. end;
  769. VDDDCBlockRecPtr = ^VDDDCBlockRec;
  770. VDDDCBlockRec = record
  771. ddcBlockNumber: UInt32; { Input -- DDC EDID (Extended Display Identification Data) number (1-based) }
  772. ddcBlockType: ResType; { Input -- DDC block type (EDID/VDIF) }
  773. ddcFlags: UInt32; { Input -- DDC Flags }
  774. ddcReserved: UInt32; { Reserved }
  775. ddcBlockData: packed array [0..127] of Byte; { Output -- DDC EDID/VDIF data (kDDCBlockSize) }
  776. end;
  777. VDDDCBlockPtr = ^VDDDCBlockRec;
  778. const
  779. { timingSyncConfiguration }
  780. kSyncInterlaceMask = $80;
  781. kSyncAnalogCompositeMask = 0;
  782. kSyncAnalogCompositeSerrateMask = $04;
  783. kSyncAnalogCompositeRGBSyncMask = $02;
  784. kSyncAnalogBipolarMask = $08;
  785. kSyncAnalogBipolarSerrateMask = $04;
  786. kSyncAnalogBipolarSRGBSyncMask = $02;
  787. kSyncDigitalCompositeMask = $10;
  788. kSyncDigitalCompositeSerrateMask = $04;
  789. kSyncDigitalCompositeMatchHSyncMask = $04;
  790. kSyncDigitalSeperateMask = $18;
  791. kSyncDigitalVSyncPositiveMask = $04;
  792. kSyncDigitalHSyncPositiveMask = $02;
  793. type
  794. VDDisplayTimingRangeRecPtr = ^VDDisplayTimingRangeRec;
  795. VDDisplayTimingRangeRec = record
  796. csRangeSize: UInt32; { Init to sizeof(VDDisplayTimingRangeRec) }
  797. csRangeType: UInt32; { Init to 0 }
  798. csRangeVersion: UInt32; { Init to 0 }
  799. csRangeReserved: UInt32; { Init to 0 }
  800. csRangeBlockIndex: UInt32; { Requested block (first index is 0) }
  801. csRangeGroup: UInt32; { set to 0 }
  802. csRangeBlockCount: UInt32; { # blocks }
  803. csRangeFlags: UInt32; { dependent video }
  804. csMinPixelClock: UInt64; { Min dot clock in Hz }
  805. csMaxPixelClock: UInt64; { Max dot clock in Hz }
  806. csMaxPixelError: UInt32; { Max dot clock error }
  807. csTimingRangeSyncFlags: UInt32;
  808. csTimingRangeSignalLevels: UInt32;
  809. csReserved0: UInt32;
  810. csMinFrameRate: UInt32; { Hz }
  811. csMaxFrameRate: UInt32; { Hz }
  812. csMinLineRate: UInt32; { Hz }
  813. csMaxLineRate: UInt32; { Hz }
  814. csMaxHorizontalTotal: UInt32; { Clocks - Maximum total (active + blanking) }
  815. csMaxVerticalTotal: UInt32; { Clocks - Maximum total (active + blanking) }
  816. csMaxTotalReserved1: UInt32; { Reserved }
  817. csMaxTotalReserved2: UInt32; { Reserved }
  818. { Some cards require that some timing elements }
  819. { be multiples of a "character size" (often 8 }
  820. { clocks). The "xxxxCharSize" fields document }
  821. { those requirements. }
  822. csCharSizeHorizontalActive: SInt8; { Character size }
  823. csCharSizeHorizontalBlanking: SInt8; { Character size }
  824. csCharSizeHorizontalSyncOffset: SInt8; { Character size }
  825. csCharSizeHorizontalSyncPulse: SInt8; { Character size }
  826. csCharSizeVerticalActive: SInt8; { Character size }
  827. csCharSizeVerticalBlanking: SInt8; { Character size }
  828. csCharSizeVerticalSyncOffset: SInt8; { Character size }
  829. csCharSizeVerticalSyncPulse: SInt8; { Character size }
  830. csCharSizeHorizontalBorderLeft: SInt8; { Character size }
  831. csCharSizeHorizontalBorderRight: SInt8; { Character size }
  832. csCharSizeVerticalBorderTop: SInt8; { Character size }
  833. csCharSizeVerticalBorderBottom: SInt8; { Character size }
  834. csCharSizeHorizontalTotal: SInt8; { Character size for active + blanking }
  835. csCharSizeVerticalTotal: SInt8; { Character size for active + blanking }
  836. csCharSizeReserved1: UInt16; { Reserved (Init to 0) }
  837. csMinHorizontalActiveClocks: UInt32;
  838. csMaxHorizontalActiveClocks: UInt32;
  839. csMinHorizontalBlankingClocks: UInt32;
  840. csMaxHorizontalBlankingClocks: UInt32;
  841. csMinHorizontalSyncOffsetClocks: UInt32;
  842. csMaxHorizontalSyncOffsetClocks: UInt32;
  843. csMinHorizontalPulseWidthClocks: UInt32;
  844. csMaxHorizontalPulseWidthClocks: UInt32;
  845. csMinVerticalActiveClocks: UInt32;
  846. csMaxVerticalActiveClocks: UInt32;
  847. csMinVerticalBlankingClocks: UInt32;
  848. csMaxVerticalBlankingClocks: UInt32;
  849. csMinVerticalSyncOffsetClocks: UInt32;
  850. csMaxVerticalSyncOffsetClocks: UInt32;
  851. csMinVerticalPulseWidthClocks: UInt32;
  852. csMaxVerticalPulseWidthClocks: UInt32;
  853. csMinHorizontalBorderLeft: UInt32;
  854. csMaxHorizontalBorderLeft: UInt32;
  855. csMinHorizontalBorderRight: UInt32;
  856. csMaxHorizontalBorderRight: UInt32;
  857. csMinVerticalBorderTop: UInt32;
  858. csMaxVerticalBorderTop: UInt32;
  859. csMinVerticalBorderBottom: UInt32;
  860. csMaxVerticalBorderBottom: UInt32;
  861. csReserved1: UInt32; { Reserved (Init to 0) }
  862. csReserved2: UInt32; { Reserved (Init to 0) }
  863. csReserved3: UInt32; { Reserved (Init to 0) }
  864. csReserved4: UInt32; { Reserved (Init to 0) }
  865. csReserved5: UInt32; { Reserved (Init to 0) }
  866. csReserved6: UInt32; { Reserved (Init to 0) }
  867. csReserved7: UInt32; { Reserved (Init to 0) }
  868. csReserved8: UInt32; { Reserved (Init to 0) }
  869. end;
  870. VDDisplayTimingRangePtr = ^VDDisplayTimingRangeRec;
  871. const
  872. { csDisplayModeState }
  873. kDMSModeReady = 0; { Display Mode ID is configured and ready }
  874. kDMSModeNotReady = 1; { Display Mode ID is is being programmed }
  875. kDMSModeFree = 2; { Display Mode ID is not associated with a timing }
  876. { Video driver Errors -10930 to -10959 }
  877. kTimingChangeRestrictedErr = -10930;
  878. kVideoI2CReplyPendingErr = -10931;
  879. kVideoI2CTransactionErr = -10932;
  880. kVideoI2CBusyErr = -10933;
  881. kVideoI2CTransactionTypeErr = -10934;
  882. kVideoBufferSizeErr = -10935;
  883. kVideoCannotMirrorErr = -10936;
  884. { csTimingRangeSignalLevels }
  885. kRangeSupportsSignal_0700_0300_Bit = 0;
  886. kRangeSupportsSignal_0714_0286_Bit = 1;
  887. kRangeSupportsSignal_1000_0400_Bit = 2;
  888. kRangeSupportsSignal_0700_0000_Bit = 3;
  889. kRangeSupportsSignal_0700_0300_Mask = $01;
  890. kRangeSupportsSignal_0714_0286_Mask = $02;
  891. kRangeSupportsSignal_1000_0400_Mask = $04;
  892. kRangeSupportsSignal_0700_0000_Mask = $08;
  893. { csSignalConfig }
  894. kDigitalSignalBit = 0; { Do not set. Mac OS does not currently support arbitrary digital timings }
  895. kAnalogSetupExpectedBit = 1; { Analog displays - display expects a blank-to-black setup or pedestal. See VESA signal standards. }
  896. kDigitalSignalMask = $01;
  897. kAnalogSetupExpectedMask = $02;
  898. { csSignalLevels for analog }
  899. kAnalogSignalLevel_0700_0300 = 0;
  900. kAnalogSignalLevel_0714_0286 = 1;
  901. kAnalogSignalLevel_1000_0400 = 2;
  902. kAnalogSignalLevel_0700_0000 = 3;
  903. { csTimingRangeSyncFlags }
  904. kRangeSupportsSeperateSyncsBit = 0;
  905. kRangeSupportsSyncOnGreenBit = 1;
  906. kRangeSupportsCompositeSyncBit = 2;
  907. kRangeSupportsVSyncSerrationBit = 3;
  908. kRangeSupportsSeperateSyncsMask = $01;
  909. kRangeSupportsSyncOnGreenMask = $02;
  910. kRangeSupportsCompositeSyncMask = $04;
  911. kRangeSupportsVSyncSerrationMask = $08;
  912. { csHorizontalSyncConfig and csVerticalSyncConfig }
  913. kSyncPositivePolarityBit = 0; { Digital separate sync polarity for analog interfaces (0 => negative polarity) }
  914. kSyncPositivePolarityMask = $01;
  915. { For timings with kDetailedTimingFormat. }
  916. type
  917. VDDetailedTimingRecPtr = ^VDDetailedTimingRec;
  918. VDDetailedTimingRec = record
  919. csTimingSize: UInt32; { Init to sizeof(VDDetailedTimingRec) }
  920. csTimingType: UInt32; { Init to 0 }
  921. csTimingVersion: UInt32; { Init to 0 }
  922. csTimingReserved: UInt32; { Init to 0 }
  923. csDisplayModeID: DisplayModeID; { Init to 0 }
  924. csDisplayModeSeed: UInt32; { }
  925. csDisplayModeState: UInt32; { Display Mode state }
  926. csDisplayModeAlias: UInt32; { Mode to use when programmed. }
  927. csSignalConfig: UInt32;
  928. csSignalLevels: UInt32;
  929. csPixelClock: UInt64; { Hz }
  930. csMinPixelClock: UInt64; { Hz - With error what is slowest actual clock }
  931. csMaxPixelClock: UInt64; { Hz - With error what is fasted actual clock }
  932. csHorizontalActive: UInt32; { Pixels }
  933. csHorizontalBlanking: UInt32; { Pixels }
  934. csHorizontalSyncOffset: UInt32; { Pixels }
  935. csHorizontalSyncPulseWidth: UInt32; { Pixels }
  936. csVerticalActive: UInt32; { Lines }
  937. csVerticalBlanking: UInt32; { Lines }
  938. csVerticalSyncOffset: UInt32; { Lines }
  939. csVerticalSyncPulseWidth: UInt32; { Lines }
  940. csHorizontalBorderLeft: UInt32; { Pixels }
  941. csHorizontalBorderRight: UInt32; { Pixels }
  942. csVerticalBorderTop: UInt32; { Lines }
  943. csVerticalBorderBottom: UInt32; { Lines }
  944. csHorizontalSyncConfig: UInt32;
  945. csHorizontalSyncLevel: UInt32; { Future use (init to 0) }
  946. csVerticalSyncConfig: UInt32;
  947. csVerticalSyncLevel: UInt32; { Future use (init to 0) }
  948. csReserved1: UInt32; { Init to 0 }
  949. csReserved2: UInt32; { Init to 0 }
  950. csReserved3: UInt32; { Init to 0 }
  951. csReserved4: UInt32; { Init to 0 }
  952. csReserved5: UInt32; { Init to 0 }
  953. csReserved6: UInt32; { Init to 0 }
  954. csReserved7: UInt32; { Init to 0 }
  955. csReserved8: UInt32; { Init to 0 }
  956. end;
  957. VDDetailedTimingPtr = ^VDDetailedTimingRec;
  958. const
  959. { csScalerFeatures }
  960. kScaleStretchOnlyMask = $01; { True means the driver cannot add borders to avoid non-square pixels }
  961. kScaleCanUpSamplePixelsMask = $02; { True means timings with more active clocks than pixels (ie 640x480 pixels on a 1600x1200 timing) }
  962. kScaleCanDownSamplePixelsMask = $04; { True means timings with fewer active clocks than pixels (ie 1600x1200 pixels on a 640x480 timing) }
  963. { csScalerFlags }
  964. kScaleStretchToFitMask = $01; { True means the driver should avoid borders and allow non-square pixels }
  965. type
  966. VDClutBehavior = UInt32;
  967. VDClutBehaviorPtr = ^VDClutBehavior;
  968. const
  969. kSetClutAtSetEntries = 0; { SetEntries behavior is to update clut during SetEntries call }
  970. kSetClutAtVBL = 1; { SetEntries behavior is to upate clut at next vbl }
  971. type
  972. VDCommunicationRecPtr = ^VDCommunicationRec;
  973. VDCommunicationRec = record
  974. csBusID: SInt32; { kVideoDefaultBus for single headed cards. }
  975. csCommFlags: UInt32; { Always zero }
  976. csMinReplyDelay: UInt32; { Minimum delay between send and reply transactions (units depend on csCommFlags) }
  977. csReserved2: UInt32; { Always zero }
  978. csSendAddress: UInt32; { Usually I2C address (eg 0x6E) }
  979. csSendType: UInt32; { See kVideoSimpleI2CType etc. }
  980. csSendBuffer: LogicalAddress; { Pointer to the send buffer }
  981. csSendSize: ByteCount; { Number of bytes to send }
  982. csReplyAddress: UInt32; { Address from which to read (eg 0x6F for kVideoDDCciReplyType I2C address) }
  983. csReplyType: UInt32; { See kVideoDDCciReplyType etc. }
  984. csReplyBuffer: LogicalAddress; { Pointer to the reply buffer }
  985. csReplySize: ByteCount; { Max bytes to reply (size of csReplyBuffer) }
  986. csReserved3: UInt32;
  987. csReserved4: UInt32;
  988. csReserved5: UInt32; { Always zero }
  989. csReserved6: UInt32; { Always zero }
  990. end;
  991. VDCommunicationPtr = ^VDCommunicationRec;
  992. VDCommunicationInfoRecPtr = ^VDCommunicationInfoRec;
  993. VDCommunicationInfoRec = record
  994. csBusID: SInt32; { kVideoDefaultBus for single headed cards. }
  995. csBusType: UInt32; { See kVideoBusI2C etc. }
  996. csMinBus: SInt32; { Minimum bus (usually kVideoDefaultBus). Used to probe additional busses }
  997. csMaxBus: SInt32; { Max bus (usually kVideoDefaultBus). Used to probe additional busses }
  998. csSupportedTypes: UInt32; { Bit field for first 32 supported transaction types. Eg. 0x07 => support for kVideoNoTransactionType, kVideoSimpleI2CType and kVideoDDCciReplyType. }
  999. csSupportedCommFlags: UInt32; { Return the flags csCommFlags understood by this driver. }
  1000. csReserved2: UInt32; { Always zero }
  1001. csReserved3: UInt32; { Always zero }
  1002. csReserved4: UInt32; { Always zero }
  1003. csReserved5: UInt32; { Always zero }
  1004. csReserved6: UInt32; { Always zero }
  1005. csReserved7: UInt32; { Always zero }
  1006. end;
  1007. VDCommunicationInfoPtr = ^VDCommunicationInfoRec;
  1008. VDScalerRecPtr = ^VDScalerRec;
  1009. VDScalerRec = record
  1010. csScalerSize: UInt32; { Init to sizeof(VDScalerRec) }
  1011. csScalerVersion: UInt32; { Init to 0 }
  1012. csReserved1: UInt32; { Init to 0 }
  1013. csReserved2: UInt32; { Init to 0 }
  1014. csDisplayModeID: DisplayModeID; { Display Mode ID modified by this call. }
  1015. csDisplayModeSeed: UInt32; { }
  1016. csDisplayModeState: UInt32; { Display Mode state }
  1017. csReserved3: UInt32; { Init to 0 }
  1018. csScalerFlags: UInt32; { Init to 0 }
  1019. csHorizontalPixels: UInt32; { Graphics system addressable pixels }
  1020. csVerticalPixels: UInt32; { Graphics system addressable lines }
  1021. csReserved4: UInt32; { Init to 0 }
  1022. csReserved5: UInt32; { Init to 0 }
  1023. csReserved6: UInt32; { Init to 0 }
  1024. csReserved7: UInt32; { Init to 0 }
  1025. csReserved8: UInt32; { Init to 0 }
  1026. end;
  1027. VDScalerPtr = ^VDScalerRec;
  1028. VDScalerInfoRecPtr = ^VDScalerInfoRec;
  1029. VDScalerInfoRec = record
  1030. csScalerInfoSize: UInt32; { Init to sizeof(VDScalerInfoRec) }
  1031. csScalerInfoVersion: UInt32; { Init to 0 }
  1032. csReserved1: UInt32; { Init to 0 }
  1033. csReserved2: UInt32; { Init to 0 }
  1034. csScalerFeatures: UInt32; { Feature flags }
  1035. csMaxHorizontalPixels: UInt32; { limit to horizontal scaled pixels }
  1036. csMaxVerticalPixels: UInt32; { limit to vertical scaled pixels }
  1037. csReserved3: UInt32; { Init to 0 }
  1038. csReserved4: UInt32; { Init to 0 }
  1039. csReserved5: UInt32; { Init to 0 }
  1040. csReserved6: UInt32; { Init to 0 }
  1041. csReserved7: UInt32; { Init to 0 }
  1042. end;
  1043. VDScalerInfoPtr = ^VDScalerInfoRec;
  1044. const
  1045. { csMirrorFeatures }
  1046. kMirrorSameDepthOnlyMirrorMask = $01; { Commonly true - Mirroring can only be done if the displays are the same bitdepth }
  1047. kMirrorSameSizeOnlyMirrorMask = $02; { Commonly false - Mirroring can only be done if the displays are the same size }
  1048. kMirrorSameTimingOnlyMirrorMask = $04; { Sometimes true - Mirroring can only be done if the displays are the same timing }
  1049. kMirrorCommonGammaMask = $08; { Sometimes true - Only one gamma correction LUT. }
  1050. { csMirrorSupportedFlags and csMirrorFlags }
  1051. kMirrorCanMirrorMask = $01; { Set means we can HW mirrored right now (uses csMirrorEntryID) }
  1052. kMirrorAreMirroredMask = $02; { Set means we are HW mirrored right now (uses csMirrorEntryID) }
  1053. kMirrorUnclippedMirrorMask = $04; { Set means mirrored displays are not clipped to their intersection }
  1054. kMirrorHAlignCenterMirrorMask = $08; { Set means mirrored displays can/should be centered horizontally }
  1055. kMirrorVAlignCenterMirrorMask = $10; { Set means mirrored displays can/should be centered vertically }
  1056. kMirrorCanChangePixelFormatMask = $20; { Set means mirrored the device should change the pixel format of mirrored displays to allow mirroring. }
  1057. kMirrorCanChangeTimingMask = $40; { Set means mirrored the device should change the timing of mirrored displays to allow mirroring. }
  1058. type
  1059. VDMirrorRecPtr = ^VDMirrorRec;
  1060. VDMirrorRec = record
  1061. csMirrorSize: UInt32; { Init to sizeof(VDMirrorRec) }
  1062. csMirrorVersion: UInt32; { Init to 0 }
  1063. csMirrorRequestID: RegEntryID; { Input RegEntryID to check for mirroring support and state }
  1064. csMirrorResultID: RegEntryID; { Output RegEntryID of the next mirrored device }
  1065. csMirrorFeatures: UInt32; { Output summary features of the driver }
  1066. csMirrorSupportedFlags: UInt32; { Output configuration options supported by the driver }
  1067. csMirrorFlags: UInt32; { Output configuration options active now }
  1068. csReserved1: UInt32; { Init to 0 }
  1069. csReserved2: UInt32; { Init to 0 }
  1070. csReserved3: UInt32; { Init to 0 }
  1071. csReserved4: UInt32; { Init to 0 }
  1072. csReserved5: UInt32; { Init to 0 }
  1073. end;
  1074. VDMirrorPtr = ^VDMirrorRec;
  1075. {$ALIGN MAC68K}
  1076. end.