亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dalgco.c

?? 此代碼為WCE5.0下顯示器的源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
  lpHDE = (LPHW_DAL_EXTENSION)hDAL;

  if (lpHDE->aDriverData[ulDriverID].ulFlags & DRIVERDATA_USEGAMEGAMMA)
  {
    MOVEMEMORY((LPVOID)lpaGamma16,
               (LPVOID)lpHDE->aDriverData[ulDriverID].aGameGamma16,
               (sizeof(DEVCLUT16) * 256));
  } else
  {
    MOVEMEMORY((LPVOID)lpaGamma16,
               (LPVOID)lpHDE->aDriverData[ulDriverID].aGamma16,
               (sizeof(DEVCLUT16) * 256));
  }

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALGetGamma16Correction - Exit"));
}



/******************************Public*Routine******************************\
*
* ULONG DALGetGraphicsControllerInfo()
*
* Returns information on the capabilities of the graphics controller in the
* current mode.
*
*
\**************************************************************************/

ULONG DALGetGraphicsControllerInfo(
HDAL hDAL, 
ULONG ulDriverID)
{
  LPHW_DAL_EXTENSION lpHDE;
  ULONG              ulControllers;
  ULONG              ulCaps;
  BOOL               bFirst;
  ULONG              i;

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALGetGraphicsControllerInfo - Entry"));
  DALASSERT((hDAL != NULL), "DAL handle 'hDAL' is NULL!");

  // grab the structure for the DAL out of the DDL's handle to it
  lpHDE = (LPHW_DAL_EXTENSION)hDAL;
  ulControllers = lpHDE->aControllerMap[ulDriverID];

  ulCaps = 0;
  bFirst = TRUE;

  for (i = 0; i < lpHDE->ulControllersCount; i++)
  {
    if (ulControllers & VECTORFROMINDEX(i))
    {
      // found a controller as specified by the caller
      if (bFirst)
      {
        // DAL wants to return the intersection of all the capabilities of
        // controllers requested by the caller, and hence DAL finds the
        // *first* specified controller and logically 'and' all other caps
        // against the caps of the first controller.

        ulCaps = lpHDE->aControllers[i].lpHWED->aControllerCaps[i];
        bFirst = FALSE;
      } else
      {
        ulCaps &= lpHDE->aControllers[i].lpHWED->aControllerCaps[i];
      }
    }
  }

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALGetGraphicsControllerInfo - Exit"));
  return(ulCaps);
}



/******************************Public*Routine******************************\
*
* BOOL DALGetDisplayEDID(HDAL    hDAL,
*                        ULONG   ulDriverID,
*                        ULONG   ulDisplayIndex,
*                        LPUCHAR lpucQueryBuffer,
*                        ULONG   ulLength)
*
* Retrieves EDID data from a particular display (given the display index)
* as it is required for NT 5.0 conformance.
*
* PARAMETERS:
*  hDAL             Handle to HW_DAL_EXTENSION structure.
*  ulDriverID       Corresponds to a driver instance relative to this DAL.
*  ulDisplayIndex   Specific index into display vector.
*  lpucQueryBuffer  EDID information will be placed in here.
*  ulLength         Length of EDID data placed in lpucQueryBuffer.
*
*
* Note: DAL does nothing for controllers which are not active
*
\**************************************************************************/

BOOL
DALGetDisplayEDID(
    HDAL hDAL,
    ULONG ulDriverID,
    ULONG ulDisplayIndex,
    LPUCHAR lpucQueryBuffer,
    ULONG ulLength
    )
{
  LPHW_DAL_EXTENSION lpHDE;
  LPDEVGDO           lpDisplay;
  ULONG              ulDDCManufacturerName; // Save the old value for comparison
  ULONG              ulDDCProductCode;      // Save the old value for comparison
  DDC_INFO           sDDCInfo;  
  BOOL               bFakeEDID;
  BOOL               bReturn = FALSE;

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALGetDisplayEDID - Entry"));
  DALASSERT((hDAL != NULL), "DAL handle 'hDAL' is NULL!");

  // grab the structure for the DAL out of the DDL's handle to it
  lpHDE = (LPHW_DAL_EXTENSION)hDAL;

  // make sure the index is not greater than max displays
  DALASSERT((ulDisplayIndex < lpHDE->ulDisplaysCount), "ulDisplayIndex is invalid");

  // Check the EDID data for the display that corresponds to the index
  // passed.
  lpDisplay = (LPDEVGDO) &lpHDE->aDisplays[ulDisplayIndex];

  if (lpHDE->ulFlags & HDAL_INITIALIZING)
  {
    
    // Since initialization is still not complete,
    // the cached EDID data is still fresh and could be
    // used to report EDID capability.
    if (lpDisplay->ulFlags & (GDO_EDID | GDO_EDID_REPORT_TO_OS_ONLY))
    {
      bReturn = TRUE;
    }
    else
    {
      bFakeEDID = bGetFakeEDID(lpHDE, ulDisplayIndex);

      if(bFakeEDID)
      {
        bReturn = TRUE;
      }
    }
  }
  else
  {
    // Atleast a DALSetmode call has been made since boot.
    // If DALGetDisplayEDID function is called it would be
    // better to get fresh EDID information rather than
    // reporting the cached data as before. Device may
    // have changed since last time EDID was querried.

    // Save the original manufacturer name and product code
    ulDDCManufacturerName = lpDisplay->sDDCInfo.ulDDCManufacturerName; 
    ulDDCProductCode = lpDisplay->sDDCInfo.ulDDCProductCode; 

    if (bGetEdidData(lpHDE, lpDisplay, (LPEDID_BUFFER)&lpDisplay->sEDID))
    {
      // Find the new Manufacturer ID, product ID, Display Name & Monitor Range Limit
      // The function parces some known formats of EDID only. For others it will
      // fail the call to make DAL treat it as non DDC device. EPR 39053, 39045 & 38944
      if(bGetDDCInfo((LPEDID_BUFFER)&lpDisplay->sEDID, (LPDDC_INFO)&sDDCInfo))
      {
        // Display returned a valid EDID structure, so flag the DAL to use the
        // EDID structure when testing if a mode is supported.

        if (lpDisplay->lpHWED->ulDisplayCaps & GDO_CAPS_REPORT_ONLY_EDID)
          lpDisplay->ulFlags |= GDO_EDID_REPORT_TO_OS_ONLY;
        else
          lpDisplay->ulFlags |= GDO_EDID;

        if ((ulDDCManufacturerName != sDDCInfo.ulDDCManufacturerName) ||
            (ulDDCProductCode != sDDCInfo.ulDDCProductCode))
        {
          // Product code or the manufacturer name has changed since last EDID query.
          // Set a flag to request update of the mode table and update lpDisplay->sDDCInfo.
          if (lpDisplay->ulFlags & GDO_EDID)
          {
            // We only need to update the mode table if we can use this EDID info for that
            lpHDE->ulFlags |= HDAL_UPDATEDISPLAYSMODESUPPORTED;
          }
          MOVEMEMORY((LPVOID)&lpDisplay->sDDCInfo, (LPVOID)&sDDCInfo, sizeof(DDC_INFO));
        }

        bReturn = TRUE;

      }
      else
      {
        // EDID Format reported can not be used by DAL.
        lpDisplay->ulFlags &= ~(GDO_EDID | GDO_EDID_REPORT_TO_OS_ONLY);
        lpDisplay->sDDCInfo.ulDDCManufacturerName = 0;
        lpDisplay->sDDCInfo.ulDDCProductCode = 0;

        // This will take care of the case when last time the display had reported EDID data 
        // but this time around it did not.
        if ((ulDDCManufacturerName != lpDisplay->sDDCInfo.ulDDCManufacturerName) ||
            (ulDDCProductCode != lpDisplay->sDDCInfo.ulDDCProductCode))
        {
          // Product code or the manufacturer name has changed since last EDID query.
          // Set a flag to request update of the mode table.
          if (!(lpDisplay->lpHWED->ulDisplayCaps & GDO_CAPS_REPORT_ONLY_EDID))
          {
            // We only need to update the mode table if we could use EDID info for that
            lpHDE->ulFlags |= HDAL_UPDATEDISPLAYSMODESUPPORTED;
          }
        }
      }
      
    } 
    else
    {
      lpDisplay->ulFlags &= ~(GDO_EDID | GDO_EDID_REPORT_TO_OS_ONLY);
      lpDisplay->sDDCInfo.ulDDCManufacturerName = 0;
      lpDisplay->sDDCInfo.ulDDCProductCode = 0;

      // This will take care of the case when last time the display had reported EDID data 
      // but this time around it did not.
      if ((ulDDCManufacturerName != lpDisplay->sDDCInfo.ulDDCManufacturerName) ||
          (ulDDCProductCode != lpDisplay->sDDCInfo.ulDDCProductCode))
      {
        // Product code or the manufacturer name has changed since last EDID query.
        // Set a flag to request update of the mode table.
        if (!(lpDisplay->lpHWED->ulDisplayCaps & GDO_CAPS_REPORT_ONLY_EDID))
        {
          // We only need to update the mode table if we could use EDID info for that
          lpHDE->ulFlags |= HDAL_UPDATEDISPLAYSMODESUPPORTED;
        }
      }

      // This display does not support EDID check if it supports fake EDID.
      bFakeEDID = bGetFakeEDID(lpHDE, ulDisplayIndex);

      if(bFakeEDID)
      {
        bReturn = TRUE;
      }
    }
  }
  
  //Based on Dalrule, not return Edid to OS
  if(DALRULE3_NOEDIDTOOS & lpHDE->ulDalRule3)
  {
    bReturn = FALSE;
  }

  if (bReturn)
  {
    // copy EDID
    MOVEMEMORY(lpucQueryBuffer,
               &lpDisplay->sEDID.aucEdidDataBuffer[0],
               ulLength);
  }

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALGetDisplayEDID - Exit"));
  return bReturn;
}

/******************************Public*Routine******************************\
*
* VOID DALSetDisplayDPMS(HDAL  hDAL,
*                        ULONG ulDriverID,
*                        ULONG ulState,
*                        ULONG ulDisplayIndex)
*
* Programs the display power management state to a single display --
* this was developed to meet NT 5.0 requirements.
*
* PARAMETERS:
*  hDAL             Handle to HW_DAL_EXTENSION structure.
*  ulDriverID       Corresponds to a driver instance relative to this DAL.
*  ulState          The power state to be set:
*                       typedef enum _VIDEO_POWER_STATE {
*                           VideoPowerUnspecified = 0,
*                           VideoPowerOn = 1,
*                           VideoPowerStandBy,
*                           VideoPowerSuspend,
*                           VideoPowerOff,
*                           VideoPowerHibernate,
*                           VideoPowerMaximum
*                       } VIDEO_POWER_STATE, *PVIDEO_POWER_STATE;
*  ulDisplayIndex   Specific index into display vector.
*
* Note: DAL does nothing for controllers which are not active
*
\**************************************************************************/

VOID
DALSetDisplayDPMS(
    HDAL hDAL,
    ULONG ulDriverID,
    ULONG ulState,
    ULONG ulDisplayIndex
    )
{
  LPHW_DAL_EXTENSION lpHDE;
  ULONG              i;
  ULONG            ulControllersOwned;
  LPDEVGCO           lpController;

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALSetDisplayDPMS - Entry"));
  DALASSERT((hDAL != NULL), "DAL handle 'hDAL' is NULL!");

  // grab the structure for the DAL out of the DDL's handle to it
  lpHDE = (LPHW_DAL_EXTENSION)hDAL;

  ulControllersOwned = lpHDE->aControllerMap[ulDriverID];

  // loop through every controller until matching DisplayIndex
  // is found (Note: the DisplayIndex is unique to each controller...
  // will not be found in two or more controllers).
  for (i = 0; i < lpHDE->ulControllersCount; i++)
  {
    if (ulControllersOwned & VECTORFROMINDEX(i))
    {

      lpController = (LPDEVGCO)&lpHDE->aControllers[i];
      if (lpController->ulFlags & GCO_ACTIVE)
      {
        // only program the DPMS state if the controller is active, the DPMS
        // state should be POWERSTATE_OFF if the controller is not active

        if (VECTORFROMINDEX(ulDisplayIndex) & lpController->ulDisplays)
        {
          // found a display on the controller, so the
          // DPMS state is applied to that display

          vSetDisplayPowerState(lpHDE,
                                (LPDEVGDO) &lpHDE->aDisplays[ulDisplayIndex],
                                ulState);
          break;
        }
      }
    }
  }

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALSetDisplayDPMS - Exit"));
}


/******************************Public*Routine******************************\
*
* VOID DALSetDPMS(HDAL hDAL, ULONG ulState)
*
* programs the display power management state to the entire display
* subsystem in an atomic operation
*
* Note: DAL does nothing for controllers which are not active
*
\**************************************************************************/

VOID DALSetDPMS(HDAL hDAL, ULONG ulState)
{
  LPHW_DAL_EXTENSION lpHDE;
  ULONG              i, j;
  LPDEVGCO           lpController;

  DALDEBUG((DALDBG_ENTRY_EXIT, "DALSetDPMS - Entry"));
  DALASSERT((hDAL != NULL), "DAL handle 'hDAL' is NULL!");

  // grab the structure for the DAL out of the DDL's handle to it
  lpHDE = (LPHW_DAL_EXTENSION)hDAL;

  for (i = 0; i < lpHDE->ulControllersCount; i++)
  {
    lpController = (LPDEVGCO)&lpHDE->aControllers[i];
    if (lpController->ulFlags & GCO_ACTIVE)
    {
      // only program the DPMS state if the controller is active, the DPMS
      // state should be POWERSTATE_OFF if the controller is not active

      for (j = 0; j < lpHDE->ulDisplaysCount; j++)
      {
        // loop through the displays to idetify which are connected
        // to the identified controller

        if (VECTORFROMINDEX(j) & lpController->ulDisplays)
        {
          // found a display on the controller, so the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费视频网站 | 欧美日韩精品高清| 日韩一区二区在线免费观看| 亚洲国产精品t66y| 亚洲成人黄色小说| www.日韩大片| 精品999久久久| 日本女人一区二区三区| 在线日韩一区二区| 成人免费在线视频观看| 国产高清精品久久久久| 欧美日韩免费电影| 一区二区三区四区不卡在线| 国产精品91xxx| xfplay精品久久| 秋霞午夜鲁丝一区二区老狼| 91美女精品福利| 国产精品青草久久| 国产高清成人在线| 欧美一级精品在线| 午夜私人影院久久久久| 色综合久久中文字幕| 国产精品久久久久婷婷 | 国产精品国产三级国产普通话99 | 亚洲综合另类小说| 91亚洲国产成人精品一区二区三| 久久久精品国产免费观看同学| 男男成人高潮片免费网站| 欧美亚洲动漫制服丝袜| 中文字幕亚洲综合久久菠萝蜜| 成人深夜在线观看| 国产精品毛片a∨一区二区三区| 国产九色sp调教91| 中文字幕av不卡| 成人av在线播放网站| 欧美韩国日本综合| 99久久er热在这里只有精品66| 亚洲国产成人午夜在线一区| 成人开心网精品视频| 国产精品美女www爽爽爽| www.欧美日韩国产在线| 亚洲同性gay激情无套| 99精品欧美一区| 亚洲精品视频在线看| 日本丶国产丶欧美色综合| 一区二区三区在线观看国产| 欧美日韩精品一区视频| 奇米色777欧美一区二区| 欧美一区二区三区男人的天堂| 日本伊人色综合网| 国产无一区二区| 91欧美激情一区二区三区成人| 艳妇臀荡乳欲伦亚洲一区| 欧美一区二区三区免费大片| 麻豆国产精品777777在线| 久久精品人人爽人人爽| 99re6这里只有精品视频在线观看| 亚洲精品亚洲人成人网在线播放| 欧美又粗又大又爽| 麻豆精品一区二区| 国产亚洲精品7777| 欧美午夜不卡在线观看免费| 久久国产欧美日韩精品| 日本一区二区免费在线观看视频| 91女神在线视频| 日韩精品成人一区二区在线| 久久久久9999亚洲精品| 91国偷自产一区二区使用方法| 蜜臀99久久精品久久久久久软件| 久久久久国色av免费看影院| 91国偷自产一区二区开放时间 | 国产真实乱对白精彩久久| 日韩美女视频一区二区| 欧美美女一区二区| 国产一区二区不卡| 亚洲一本大道在线| 国产精品人妖ts系列视频| 欧美高清激情brazzers| 99re这里只有精品视频首页| 日韩电影免费在线看| 国产精品国产a| 欧美xxxxxxxxx| 欧美亚洲国产怡红院影院| 风间由美中文字幕在线看视频国产欧美| 亚洲摸摸操操av| 国产日韩欧美a| 日韩精品在线一区二区| 在线观看成人小视频| kk眼镜猥琐国模调教系列一区二区| 性欧美疯狂xxxxbbbb| 亚洲欧美国产77777| 精品久久人人做人人爽| 欧美高清性hdvideosex| 色噜噜狠狠色综合中国| 国产成都精品91一区二区三| 免费日本视频一区| 日韩av电影天堂| 亚洲国产日产av| 亚洲曰韩产成在线| 亚洲黄色免费电影| 亚洲色图.com| 国产精品美女久久久久av爽李琼| 精品国产免费久久| 精品久久99ma| 在线成人免费视频| 欧美日韩激情一区二区三区| 日本韩国欧美三级| 91视频免费观看| 色哟哟亚洲精品| 色婷婷亚洲一区二区三区| eeuss鲁片一区二区三区| 国产精品白丝jk白祙喷水网站| 日本少妇一区二区| 久久成人麻豆午夜电影| 毛片av一区二区| 国产乱对白刺激视频不卡| 国产精品一区二区在线看| 国产激情91久久精品导航| 国产成人午夜精品影院观看视频| 国产精品自在欧美一区| 风流少妇一区二区| 91免费在线播放| 欧美三级视频在线播放| 欧美精品 日韩| 精品久久一二三区| 国产精品久久久一本精品| 亚洲激情五月婷婷| 五月婷婷色综合| 狠狠色丁香久久婷婷综合丁香| 激情综合色丁香一区二区| 国产成人综合网| 93久久精品日日躁夜夜躁欧美| 91麻豆精品秘密| 欧美福利一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 国产日产欧美精品一区二区三区| 国产精品网友自拍| 一区二区三区欧美| 卡一卡二国产精品| 成人av动漫网站| 777亚洲妇女| 日本一区二区三区在线观看| 亚洲美女免费在线| 六月丁香婷婷色狠狠久久| 国产99久久久国产精品| 91老司机福利 在线| 91精品国产综合久久久久久久| 日韩视频免费观看高清完整版在线观看 | 亚洲色图欧美激情| 亚洲国产精品久久久久秋霞影院| 美女脱光内衣内裤视频久久网站 | 欧美伦理影视网| 国产肉丝袜一区二区| 一区二区三区四区在线免费观看| 秋霞影院一区二区| 91在线一区二区三区| 91精品国产一区二区三区| 中文字幕一区不卡| 久久超级碰视频| 欧美在线观看一区二区| 国产亚洲成av人在线观看导航| 一区二区三区高清| 国产一区二区三区香蕉| 欧美日韩一级大片网址| 中文字幕精品一区| 奇米一区二区三区| 日本高清不卡视频| 中文字幕精品在线不卡| 久热成人在线视频| 欧美天堂一区二区三区| 国产欧美日韩综合| 奇米影视在线99精品| 欧美在线观看18| 一区在线中文字幕| 国产盗摄一区二区三区| 日韩欧美一区二区免费| 亚洲资源中文字幕| 99免费精品在线| 日本一区二区在线不卡| 激情综合网最新| 日韩区在线观看| 视频一区二区三区入口| 91高清视频免费看| 亚洲女女做受ⅹxx高潮| 成人性生交大合| 国产精品网站导航| 国产福利一区在线观看| 精品三级在线看| 精品在线你懂的| 日韩欧美成人激情| 蜜桃免费网站一区二区三区| 欧美日韩不卡一区| 亚洲成va人在线观看| 欧美日韩亚洲综合| 日韩在线一区二区| 欧美麻豆精品久久久久久| 午夜日韩在线电影| 制服丝袜中文字幕亚洲| 热久久免费视频| 久久嫩草精品久久久久|