--- BasiliskII/src/include/video_defs.h 2000/08/20 14:08:44 1.3 +++ BasiliskII/src/include/video_defs.h 2001/06/27 19:03:38 1.6 @@ -1,7 +1,7 @@ /* * video_defs.h - Definitions for MacOS video drivers * - * Basilisk II (C) 1997-2000 Christian Bauer + * Basilisk II (C) 1997-2001 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,58 +23,58 @@ // Video driver control codes enum { - cscReset = 0, - cscKillIO, - cscSetMode, - cscSetEntries, - cscSetGamma, - cscGrayPage, - cscSetGray, - cscSetInterrupt, - cscDirectSetEntries, - cscSetDefaultMode, - cscSwitchMode, - cscSetSync, - cscSavePreferredConfiguration = 16, - cscSetHardwareCursor = 22, - cscDrawHardwareCursor, - cscSetConvolution, - cscSetPowerState, - cscPrivateControlCall, - cscSetMultiConnect, - cscSetClutBehavior, + cscReset = 0, + cscKillIO = 1, + cscSetMode = 2, + cscSetEntries = 3, + cscSetGamma = 4, + cscGrayPage = 5, + cscSetGray = 6, + cscSetInterrupt = 7, + cscDirectSetEntries = 8, + cscSetDefaultMode = 9, + cscSwitchMode = 10, + cscSetSync = 11, + cscSavePreferredConfiguration = 16, + cscSetHardwareCursor = 22, + cscDrawHardwareCursor = 23, + cscSetConvolution = 24, + cscSetPowerState = 25, + cscPrivateControlCall = 26, + cscSetMultiConnect = 27, + cscSetClutBehavior = 28, cscUnusedCall = 127 }; // Video driver status codes enum { - cscGetMode = 2, - cscGetEntries, - cscGetPageCnt, - cscGetPageBase, - cscGetGray, - cscGetInterrupt, - cscGetGamma, - cscGetDefaultMode, - cscGetCurMode, - cscGetSync, - cscGetConnection, - cscGetModeTiming, - cscGetModeBaseAddress, - cscGetScanProc, - cscGetPreferredConfiguration, - cscGetNextResolution, - cscGetVideoParameters, - cscGetGammaInfoList = 20, - cscRetrieveGammaTable, - cscSupportsHardwareCursor, - cscGetHardwareCursorDrawState, - cscGetConvolution, - cscGetPowerState, - cscPrivateStatusCall, - cscGetDDCBlock, - cscGetMultiConnect, - cscGetClutBehavior + cscGetMode = 2, + cscGetEntries = 3, + cscGetPageCnt = 4, + cscGetPageBase = 5, + cscGetGray = 6, + cscGetInterrupt = 7, + cscGetGamma = 8, + cscGetDefaultMode = 9, + cscGetCurMode = 10, + cscGetSync = 11, + cscGetConnection = 12, + cscGetModeTiming = 13, + cscGetModeBaseAddress = 14, + cscGetScanProc = 15, + cscGetPreferredConfiguration = 16, + cscGetNextResolution = 17, + cscGetVideoParameters = 18, + cscGetGammaInfoList = 20, + cscRetrieveGammaTable = 21, + cscSupportsHardwareCursor = 22, + cscGetHardwareCursorDrawState = 23, + cscGetConvolution = 24, + cscGetPowerState = 25, + cscPrivateStatusCall = 26, + cscGetDDCBlock = 27, + cscGetMultiConnect = 28, + cscGetClutBehavior = 29 }; enum { // VDSwitchInfo struct @@ -108,12 +108,38 @@ enum { // VDTimingInfo struct csTimingFlags = 16 }; -enum { // VDPageInfo struct - csPageMode = 0, - csPageData = 2, - csPagePage = 6, - csPageBaseAddr = 8 - +enum { // VDResolutionInfo struct + csPreviousDisplayModeID = 0, + csRIDisplayModeID = 4, + csHorizontalPixels = 8, + csVerticalLines = 12, + csRefreshRate = 16, + csMaxDepthMode = 20, + csResolutionFlags = 22 +}; + +enum { // VDVideoParametersInfo struct + csDisplayModeID = 0, + csDepthMode = 4, + csVPBlockPtr = 6, + csPageCount = 10, + csDeviceType = 14 +}; + +enum { // VPBlock struct + vpBaseOffset = 0, + vpRowBytes = 4, + vpBounds = 6, + vpVersion = 14, + vpPackType = 16, + vpPackSize = 18, + vpHRes = 22, + vpVRes = 26, + vpPixelType = 30, + vpPixelSize = 32, + vpCmpCount = 34, + vpCmpSize = 36, + vpPlaneBytes = 38 }; #endif