mBaseOffset = 1 /*IdofmBaseOffset.*/ mRowBytes = 2 /*VideosResourceparameterId's*/ mBounds = 3 /*VideosResourceparameterId's*/ mVersion = 4 /*VideosResourceparameterId's*/ mHRes = 5 /*VideosResourceparameterId's*/ mVRes = 6 /*VideosResourceparameterId's*/ mPixelType = 7 /*VideosResourceparameterId's*/ mPixelSize = 8 /*VideosResourceparameterId's*/ mCmpCount = 9 /*VideosResourceparameterId's*/ mCmpSize = 10 /*VideosResourceparameterId's*/ mPlaneBytes = 11 /*VideosResourceparameterId's*/ mVertRefRate = 14 /*VideosResourceparameterId's*/ mVidParams = 1 /*Videoparameterblockid.*/ mTable = 2 /*Offsettothetable.*/ mPageCnt = 3 /*Numberofpages*/ mDevType = 4 /*DeviceType*/ oneBitMode = 128 /*IdofOneBitModeParameterlist.*/ twoBitMode = 129 /*IdofTwoBitModeParameterlist.*/ fourBitMode = 130 /*IdofFourBitModeParameterlist.*/ eightBitMode = 131/*IdofEightBitModeParameterlist.*/ sixteenBitMode = 132 /*IdofSixteenBitModeParameterlist.*/ thirtyTwoBitMode = 133 /*IdofThirtyTwoBitModeParameterlist.*/ firstVidMode = 128 /*Thenew,betterwaytodotheabove.*/ secondVidMode = 129 /*QuickDrawonlysupportssixvideo*/ thirdVidMode = 130 /*atthistime.*/ fourthVidMode = 131 fifthVidMode = 132 sixthVidMode = 133 spGammaDir = 64 spVidNamesDir = 65 /* kDeclROMtables = FOUR_CHAR_CODE('decl') */ /* kDetailedTimingFormat = FOUR_CHAR_CODE('arba') */ /*Timingisadetailedtiming*/ kDDCBlockSize = 128 kDDCBlockTypeEDID = 0/*EDIDblocktype.*/ kDDCForceReadBit = 0 /*ForceanewreadoftheEDID.*/ kDDCForceReadMask = (1<? timingVESA_1600x1200_85hz = 289 /*1600x1200(85Hz)VESAtiming(pixelclockis229.5 timingVESA_1792x1344_60hz = 296 /*1792x1344(60Hz)VESAtiming(204.75Mhzdotclock). timingVESA_1792x1344_75hz = 298 /*1792x1344(75Hz)VESAtiming(261.75Mhzdotclock). timingVESA_1856x1392_60hz = 300 /*1856x1392(60Hz)VESAtiming(218.25Mhzdotclock). timingVESA_1856x1392_75hz = 302 /*1856x1392(75Hz)VESAtiming(288Mhzdotclock). timingVESA_1920x1440_60hz = 304 /*1920x1440(60Hz)VESAtiming(234Mhzdotclock). timingVESA_1920x1440_75hz = 306 /*1920x1440(75Hz)VESAtiming(297Mhzdotclock). timingSMPTE240M_60hz = 400 /*60HzV,33.75KHzH,interlacedtiming,16:9aspect,typical timingFilmRate_48hz = 410 /*48HzV,25.20KHzH,non-interlacedtiming,typicalresolutionof timingSony_1600x1024_76hz = 500 /*1600x1024(76Hz)Sonytiming(pixelclockis170.447 timingSony_1920x1080_60hz = 510 /*1920x1080(60Hz)Sonytiming(pixelclockis159.84 timingSony_1920x1080_72hz = 520 /*1920x1080(72Hz)Sonytiming(pixelclockis216.023 timingSony_1920x1200_76hz = 540 /*1900x1200(76Hz)Sonytiming(pixelclockis243.20 timingApple_0x0_0hz_Offline = 550/*Indicatesthatthistimingwilltakethedisplayoff-line timingApple12 = timingApple_512x384_60hz timingApple12x = timingApple_560x384_60hz timingApple13 = timingApple_640x480_67hz timingApple13x = timingApple_640x400_67hz timingAppleVGA = timingVESA_640x480_60hz timingApple15 = timingApple_640x870_75hz timingApple15x = timingApple_640x818_75hz timingApple16 = timingApple_832x624_75hz timingAppleSVGA = timingVESA_800x600_56hz timingApple1Ka = timingVESA_1024x768_60hz timingApple1Kb = timingVESA_1024x768_70hz timingApple19 = timingApple_1024x768_75hz timingApple21 = timingApple_1152x870_75hz timingSony_1900x1200_74hz = 530 /*1900x1200(74Hz)Sonytiming(pixelclockis236.25 timingSony_1900x1200_76hz = timingSony_1920x1200_76hz/*1900x1200(76Hz)Sonytiming(pixelclockis245.48 kAllModesValid = 0 /*Allmodesnottrimmedbyprimaryinitaregood kAllModesSafe = 1 /*Allmodesnottrimmedbyprimaryinitareknow kReportsTagging = 2 /*Candetecttaggeddisplays(toidentifysmartmonitors)*/ kHasDirectConnection = 3 /*Trueimpliesthatdrivercantalkdirectlytodevice kUncertainConnection = 5 /*Theremaynotbeadisplay(nosenselines?). kTaggingInfoNonStandard = 6 /*SetwhencsConnectTaggedType/csConnectTaggedDataarenon-standard(i.e.,nottheApple kReportsDDCConnection = 7 /*Cardcandoddc(setkHasDirectConnect&&kHasDDCConnectif kHasDDCConnection = 8 /*Cardhasddcconnectnow.*/ kConnectionInactive = 9 /*SetwhentheconnectionisNOTcurrentlyactive(generally kDependentConnection = 10 /*SetwhensomeascpectofTHISconnectiondependson kBuiltInConnection = 11 /*SetwhenconnectionisKNOWNtobebuilt-in(this kOverrideConnection = 12 /*Setwhenthereportedconnectionisnotthetrue kFastCheckForDDC = 13 /*Setwhenall3aretrue:1)sensecodes kReportsHotPlugging = 14/*Detectsandreportshotplugggingonconnector(viaVSL kPanelConnect = 2 /*Forusewithfixed-in-placeLCDpanels.*/ kPanelTFTConnect = 2 /*AliasforkPanelConnect*/ kFixedModeCRTConnect = 3 /*Forusewithfixed-mode(i.e.,verylimitedrange)displays. kMultiModeCRT1Connect = 4 /*320x200maybe,12"maybe,13"(default),16"certain,19" kMultiModeCRT2Connect = 5 /*320x200maybe,12"maybe,13"certain,16"(default),19" kMultiModeCRT3Connect = 6 /*320x200maybe,12"maybe,13"certain,16"certain,19" kMultiModeCRT4Connect = 7 /*Expansiontolargemultimode(notyetused)*/ kModelessConnect = 8 /*Expansiontomodelessmodel(notyetused)*/ kFullPageConnect = 9 /*640x818(toget8bppin512Kcase)and640x870 kVGAConnect = 10 /*640x480VGAdefault--questioneverythingelse*/ kNTSCConnect = 11 /*NTSCST(default),FF,STconv,FFconv*/ kPALConnect = 12 /*PALST(default),FF,STconv,FFconv*/ kHRConnect = 13 /*Straight-6connect--640x480and640x400(toget8bpp kMonoTwoPageConnect = 15 /*1152x870Applecolortwo-pagedisplay*/ kColorTwoPageConnect = 16 /*1152x870AppleB&Wtwo-pagedisplay*/ kColor16Connect = 17 /*832x624AppleB&Wtwo-pagedisplay*/ kColor19Connect = 18 /*1024x768AppleB&Wtwo-pagedisplay*/ kGenericCRT = 19 /*IndicatesnothingexceptthatconnectionisCRTinnature. kGenericLCD = 20 /*IndicatesnothingexceptthatconnectionisLCDinnature. kDDCConnect = 21 /*DDCconnection,alwayssetkHasDDCConnection*/ kNoConnect = 22/*Nodisplayisconnected-loadsensingorsimilar kModeValid = 0 /*SaysthatthismodeshouldNOTbetrimmed.*/ kModeSafe = 1 /*Thismodedoesnotneedconfirmation*/ kModeDefault = 2 /*Thisisthedefaultmodeforthistypeof kModeShowNow = 3 /*Thismodeshouldalwaysbeshown(eventhoughit kModeNotResize = 4 /*Thismodeshouldnotbeusedtoresizethe kModeRequiresPan = 5 /*Thismodehasmorepixelsthanareactuallydisplayed kModeInterlaced = 6 /*Thismodeisinterlaced(singlepixellineslookbad). kModeShowNever = 7 /*Thismodeshouldnotbeshownintheuser kModeSimulscan = 8 /*Indicatesthatmorethanonedisplayconnectioncanbe kModeNotPreset = 9 /*Indicatesthatthetimingisnotafactorypreset kModeBuiltIn = 10 /*Indicatesthatthedisplaymodeisforthebuilt-in kModeStretched = 11/*Indicatesthatthedisplaymodewillbestretched/distortedto kDepthDependent = 0/*Saysthatthisdepthmodemaycausedependentchanges kResolutionHasMultipleDepthSizes = 0/*SaysthatthismodehasdifferentcsHorizontalPixels csVerticalLinesat kAVPowerOff = 0 /*Powerfullyoff*/ kAVPowerStandby = 1 kAVPowerSuspend = 2 kAVPowerOn = 3 kHardwareSleep = 128 kHardwareWake = 129 kHardwareWakeFromSuspend = 130 kHardwareWakeToDoze = 131 kHardwareWakeToDozeFromSuspend = 132 cscReset = 0 cscKillIO = 1 cscSetMode = 2 cscSetEntries = 3 cscSetGamma = 4 cscGrayPage = 5 cscGrayScreen = 5 cscSetGray = 6 cscSetInterrupt = 7 cscDirectSetEntries = 8 cscSetDefaultMode = 9 cscSwitchMode = 10 /*TakesaVDSwitchInfoPtr*/ cscSetSync = 11 /*TakesaVDSyncInfoPtr*/ cscSavePreferredConfiguration = 16 /*TakesaVDSwitchInfoPtr*/ cscSetHardwareCursor = 22 /*TakesaVDSetHardwareCursorPtr*/ cscDrawHardwareCursor = 23 /*TakesaVDDrawHardwareCursorPtr*/ cscSetConvolution = 24 /*TakesaVDConvolutionInfoPtr*/ cscSetPowerState = 25 /*TakesaVDPowerStatePtr*/ cscPrivateControlCall = 26 /*TakesaVDPrivateSelectorDataPtr*/ cscSetMultiConnect = 28 /*TakesaVDMultiConnectInfoPtr*/ cscSetClutBehavior = 29 /*TakesaVDClutBehavior*/ cscSetDetailedTiming = 31 /*TakesaVDDetailedTimingPtr*/ cscDoCommunication = 33 /*TakesaVDCommunicationPtr*/ cscProbeConnection = 34 /*Takesnilpointer(maygenerateakFBConnectInterruptServiceTypeserviceinterrupt)*/ cscUnusedCall = 127/*Thiscallusedtoexpendthescrnresource.Its cscGetMode = 2 cscGetEntries = 3 cscGetPageCnt = 4 cscGetPages = 4 /*ThisiswhatC&D2callsit.*/ cscGetPageBase = 5 cscGetBaseAddr = 5 /*ThisiswhatC&D2callsit.*/ cscGetGray = 6 cscGetInterrupt = 7 cscGetGamma = 8 cscGetDefaultMode = 9 cscGetCurMode = 10 /*TakesaVDSwitchInfoPtr*/ cscGetSync = 11 /*TakesaVDSyncInfoPtr*/ cscGetConnection = 12 /*Returninformationabouttheconnectiontothedisplay*/ cscGetModeTiming = 13 /*Returntiminginfoforamode*/ cscGetModeBaseAddress = 14 /*Returnbaseaddressinformationaboutaparticularmode*/ cscGetScanProc = 15 /*QuickTimescanchasingroutine*/ cscGetPreferredConfiguration = 16 /*TakesaVDSwitchInfoPtr*/ cscGetNextResolution = 17 /*TakesaVDResolutionInfoPtr*/ cscGetVideoParameters = 18 /*TakesaVDVideoParametersInfoPtr*/ cscGetGammaInfoList = 20 /*TakesaVDGetGammaListPtr*/ cscRetrieveGammaTable = 21 /*TakesaVDRetrieveGammaPtr*/ cscSupportsHardwareCursor = 22 /*TakesaVDSupportsHardwareCursorPtr*/ cscGetHardwareCursorDrawState = 23 /*TakesaVDHardwareCursorDrawStatePtr*/ cscGetConvolution = 24 /*TakesaVDConvolutionInfoPtr*/ cscGetPowerState = 25 /*TakesaVDPowerStatePtr*/ cscPrivateStatusCall = 26 /*TakesaVDPrivateSelectorDataPtr*/ cscGetDDCBlock = 27 /*TakesaVDDDCBlockPtr*/ cscGetMultiConnect = 28 /*TakesaVDMultiConnectInfoPtr*/ cscGetClutBehavior = 29 /*TakesaVDClutBehaviorPtr*/ cscGetTimingRanges = 30 /*TakesaVDDisplayTimingRangePtr*/ cscGetDetailedTiming = 31 /*TakesaVDDetailedTimingPtr*/ cscGetCommunicationInfo = 32/*TakesaVDCommunicationInfoPtr*/ kDisableHorizontalSyncBit = 0 kDisableVerticalSyncBit = 1 kDisableCompositeSyncBit = 2 kEnableSyncOnBlue = 3 kEnableSyncOnGreen = 4 kEnableSyncOnRed = 5 kNoSeparateSyncControlBit = 6 kTriStateSyncBit = 7 kHorizontalSyncMask = 0x01 kVerticalSyncMask = 0x02 kCompositeSyncMask = 0x04 kDPMSSyncMask = 0x07 kTriStateSyncMask = 0x80 kSyncOnBlueMask = 0x08 kSyncOnGreenMask = 0x10 kSyncOnRedMask = 0x20 kSyncOnMask = 0x38 kDPMSSyncOn = 0 kDPMSSyncStandby = 1 kDPMSSyncSuspend = 2 kDPMSSyncOff = 7 kConvolved = 0 kLiveVideoPassThru = 1 kConvolvedMask = 0x01 kLiveVideoPassThruMask = 0x02 kRSCZero = 0 kRSCOne = 1 kRSCTwo = 2 kRSCThree = 3 kRSCFour = 4 kRSCFive = 5 kRSCSix = 6 kRSCSeven = 7 kESCZero21Inch = 0x00 /*21"RGB*/ kESCOnePortraitMono = 0x14 /*PortraitMonochrome*/ kESCTwo12Inch = 0x21 /*12"RGB*/ kESCThree21InchRadius = 0x31 /*21"RGB(Radius)*/ kESCThree21InchMonoRadius = 0x34 /*21"Monochrome(Radius)*/ kESCThree21InchMono = 0x35 /*21"Monochrome*/ kESCFourNTSC = 0x0A /*NTSC*/ kESCFivePortrait = 0x1E /*PortraitRGB*/ kESCSixMSB1 = 0x03 /*MultiScanBand-1(12"thru1Six")*/ kESCSixMSB2 = 0x0B /*MultiScanBand-2(13"thru19")*/ kESCSixMSB3 = 0x23 /*MultiScanBand-3(13"thru21")*/ kESCSixStandard = 0x2B /*13"/14"RGBor12"Monochrome*/ kESCSevenPAL = 0x00 /*PAL*/ kESCSevenNTSC = 0x14 /*NTSC*/ kESCSevenVGA = 0x17 /*VGA*/ kESCSeven16Inch = 0x2D /*16"RGB(GoldFish)*/ kESCSevenPALAlternate = 0x30 /*PAL(Alternate)*/ kESCSevenDDC = 0x3E /*DDCdisplay*/ kESCSevenNoDisplay = 0x3F/*Nodisplayconnected*/ kDepthMode1 = 128 kDepthMode2 = 129 kDepthMode3 = 130 kDepthMode4 = 131 kDepthMode5 = 132 kDepthMode6 = 133 kFirstDepthMode = 128 /*Theseconstantsareobsolete,andjustincluded*/ kSecondDepthMode = 129 /*forclientsthathaveconvertedtotheabove*/ kThirdDepthMode = 130 /*kDepthModeXXXconstants.*/ kFourthDepthMode = 131 kFifthDepthMode = 132 kSixthDepthMode = 133 kDisplayModeIDCurrent = 0x00 /*ReferencetheCurrentDisplayModeID*/ kDisplayModeIDInvalid = 0xFFFFFFFF /*AbogusDisplayModeIDinallcases*/ kDisplayModeIDFindFirstResolution = 0xFFFFFFFE /*UsedincscGetNextResolutiontoresetiterator*/ kDisplayModeIDNoMoreResolutions = 0xFFFFFFFD /*UsedincscGetNextResolutiontoindicateEndOfList*/ kDisplayModeIDFindFirstProgrammable = 0xFFFFFFFC /*UsedincscGetNextResolutiontofindunusedprogrammabletiming*/ kDisplayModeIDBootProgrammable = 0xFFFFFFFB /*ThisistheIDgivenatboottimeby kDisplayModeIDReservedBase = 0x80000000/*Lowest(unsigned)DisplayModeIDreservedbyApple*/ kGammaTableIDFindFirst = 0xFFFFFFFE /*GetthefirstgammatableID*/ kGammaTableIDNoMoreTables = 0xFFFFFFFD /*Usedtoindicateendoflist*/ kGammaTableIDSpecific = 0x00/*Returntheinfoforthegiventableid*/ kActivateConnection = (0< kSyncPositivePolarityMask = (1<