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

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

?? sdhcd.h

?? 6410BSP3
?? H
?? 第 1 頁 / 共 2 頁
字號:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//

// Copyright (c) 2002-2004 BSQUARE Corporation.  All rights reserved.
// DO NOT REMOVE --- BEGIN EXTERNALLY DEVELOPED SOURCE CODE ID 40973--- DO NOT REMOVE

// Header file defining the host controller interface

#ifndef _SDCARD_HCD_DEFINED
#define _SDCARD_HCD_DEFINED

#include "SDCardDDK.h"

#define SD_HC_MAX_NAME_LENGTH 16

#define BUS_VER_STR_2_0     (TEXT("VER 2.0"))
#define BUS_VER_FOR_HOST    BUS_VER_STR_2_0

#define DEFAULT_MAX_SLOT_CURRENT   200


typedef struct _SDCARD_HC_CONTEXT *PSDCARD_HC_CONTEXT;

// typedef for slot option handler codes
typedef enum _SD_SLOT_OPTION_CODE {
    SDHCDNop = -1,
    SDHCDSetSlotPower,              // set slot power, takes a DWORD for the power bit mask
    SDHCDSetSlotInterface,          // set slot interface, takes a SD_CARD_INTERFACE structure
    SDHCDEnableSDIOInterrupts,      // enable SDIO interrupts on the slot, no parameters
    SDHCDDisableSDIOInterrupts,     // disable SDIO interrupts on the slot, no parameters
    SDHCDAckSDIOInterrupt,          // acknowledge that the SDIO interrupt was handled, no parameters
    SDHCDGetWriteProtectStatus,     // get Write protect status. Updates SD_CARD_INTERFACE structure
    SDHCDQueryBlockCapability,      // query whether HC supports requested block length, 
                                    //   takes SD_HOST_BLOCK_CAPABILITY structure
    SDHCDSetClockStateDuringIdle,   // set the clock state(on or off) during the idle state
    SDHCDSetSlotPowerState,         // set the slot power state, takes a CEDEVICE_POWER_STATE
    SDHCDGetSlotPowerState,         // get the slot power state, takes a CEDEVICE_POWER_STATE
    SDHCDWakeOnSDIOInterrupts,      // wake on SDIO interrupts in D3, takes a BOOL
    SDHCDGetSlotInfo,               // get info on a specific slot, takes a PSDCARD_HC_SLOT_INFO
    SDHCDSetSlotInterfaceEx,        // set slot interface, takes a SD_CARD_INTERFACE_EX structure
    SDHCAllocateDMABuffer,          // Allocate Physical Memory thnat can be used by SDHC.
    SDHCFreeDMABuffer,              // Free physicla memory that allocated by SDHCAllocateDMABuffer
    SDHCDSlotOptionCount            // count of valid slot option codes
} SD_SLOT_OPTION_CODE, *PSD_SLOT_OPTION_CODE;

// typedef for asynchronous slot event codes
typedef enum _SD_SLOT_EVENT {
    NOP,                // no operation
    DeviceEjected,      // device was ejected
    DeviceInserted,     // device was inserted 
    DeviceInterrupting, // device is interrupting
    BusRequestComplete, // a bus request was completed
    SlotDeselectRequest,// Deslect the card in the slot
    SlotSelectRequest,  // Select the card in the slot
    SlotResetRequest    // Reset the card in the slot
} SD_SLOT_EVENT, *PSD_SLOT_EVENT;

// typedef for the Send command Handler
typedef SD_API_STATUS (*PSD_BUS_REQUEST_HANDLER) (PSDCARD_HC_CONTEXT, DWORD, PSD_BUS_REQUEST);

// typedef for the I/O cancel handler
typedef BOOLEAN (*PSD_CANCEL_REQUEST_HANDLER) (PSDCARD_HC_CONTEXT, DWORD, PSD_BUS_REQUEST);

// typedef for set slot options
typedef SD_API_STATUS (*PSD_GET_SET_SLOT_OPTION) (PSDCARD_HC_CONTEXT, DWORD, SD_SLOT_OPTION_CODE, PVOID, ULONG);

// typedef for initialize controller
typedef SD_API_STATUS (*PSD_INITIALIZE_CONTROLLER) (PSDCARD_HC_CONTEXT);

// typedef for initialize controller
typedef SD_API_STATUS (*PSD_DEINITIALIZE_CONTROLLER) (PSDCARD_HC_CONTEXT);

// typedef for power control handler
typedef SD_API_STATUS (*PSD_CHANGE_CARD_POWER) (PSDCARD_HC_CONTEXT, DWORD, INT);


// the following bit masks define the slot capabilities of a host controller

#ifdef _MMC_SPEC_42_
// slot supports 8 bit data transfers
#define SD_SLOT_SD_8BIT_CAPABLE                  0x00000002
#endif

// slot supports 1 bit data transfers
#define SD_SLOT_SD_1BIT_CAPABLE                  0x00000004
// the slot supports 4 bit data transfers
#define SD_SLOT_SD_4BIT_CAPABLE                  0x00000008
// the slot supports High Speed Transfer.
#define SD_SLOT_HIGH_SPEED_CAPABLE               0x00000010
// the slot is SD I/O capable, minimally supporting interrupt signalling. 
// driver can OR-in SD_SLOT_SDIO_INT_DETECT_4BIT_MULTI_BLOCK if the slot is capable
// of handling interrupt signalling during 4 bit Data transfers
#define SD_SLOT_SDIO_CAPABLE                     0x00000020
// the slot supports 4 bit SDMemory data transfer.
// Combine this flag with SD_SLOT_SDIO_CAPABLE and SD_SLOT_SD_1BIT_CAPABLE if
// the slot supports 4 bit SDMemory and 1 bit SDIO
#define SD_SLOT_SDMEM_4BIT_CAPABLE               0x00000040
// the slot supports 4 bit SDIO data transfer
// Combine this flag with SD_SLOT_SDIO_CAPABLE and SD_SLOT_SD_1BIT_CAPABLE if
// the slot supports 4 bit SDIO and 1 bit SD/MMC
#define SD_SLOT_SDIO_4BIT_CAPABLE                0x00000080

// slot supports interrupt detection during 4-bit multi-block transfers
#define SD_SLOT_SDIO_INT_DETECT_4BIT_MULTI_BLOCK 0x00000100

    // Host needs Soft-Block support for CMD18 read operations.
#define SD_SLOT_USE_SOFT_BLOCK_CMD18             0x00000200
    // Host needs Soft-Block support for CMD25 write operations.
#define SD_SLOT_USE_SOFT_BLOCK_CMD25             0x00000400
    // Host needs Soft-Block support for CMD53 multi-block read operations.
#define SD_SLOT_USE_SOFT_BLOCK_CMD53_READ        0x00000800
    // Host needs Soft-Block support for CMD53 multi-block read operations.
#define SD_SLOT_USE_SOFT_BLOCK_CMD53_WRITE       0x00001000


// host controller context
typedef struct _SDCARD_HC_CONTEXT {
    DWORD                       dwVersion;          // version of context structure

    WCHAR                       HostControllerName[SD_HC_MAX_NAME_LENGTH];  // friendly name
    CRITICAL_SECTION            HCCritSection;      // host controller critical section
    PSD_BUS_REQUEST_HANDLER     pBusRequestHandler; // bus request handler
    PSD_GET_SET_SLOT_OPTION     pSlotOptionHandler; // slot option handler
    PSD_CANCEL_REQUEST_HANDLER  pCancelIOHandler;   // cancel request handler
    PSD_INITIALIZE_CONTROLLER   pInitHandler;       // init handler       
    PSD_DEINITIALIZE_CONTROLLER pDeinitHandler;     // deinit handler
    PVOID                       pHCSpecificContext; // host controller specific context
    PSD_CHANGE_CARD_POWER       pChangeCardPowerHandler; // Pointer to power control handler
} SDCARD_HC_CONTEXT, *PSDCARD_HC_CONTEXT;

// host controller slot info structure
typedef struct _SDCARD_HC_SLOT_INFO {
    DWORD       Capabilities;           // bit mask defining capabilities
    DWORD       VoltageWindowMask;      // bit mask for slot's voltage window capability, same format at OCR register
    DWORD       DesiredVoltageMask;     // desired voltage bit mask
    DWORD       MaxClockRate;           // maximum clock rate in HZ, Max 4.29 GHz
    DWORD       PowerUpDelay;           // power up delay in MS
} SDCARD_HC_SLOT_INFO, *PSDCARD_HC_SLOT_INFO;

#define SDCARD_HC_BUS_INTERFACE_VERSION_MAJOR   1
#define SDCARD_HC_BUS_INTERFACE_VERSION_MINOR   0
#define SDCARD_HC_BUS_INTERFACE_VERSION \
    MAKELONG(SDCARD_HC_BUS_INTERFACE_VERSION_MINOR, \
        SDCARD_HC_BUS_INTERFACE_VERSION_MAJOR)

// macro to extract the extension specific context
#define GetExtensionFromHCDContext(d, pContext) ((d)((pContext)->pHCSpecificContext))

// macros to set host controller context structure entries
// the following structures entries must be filled out by all host controller drivers
#define SDHCDSetBusRequestHandler(pHc, d)       ((pHc)->pBusRequestHandler = d)
#define SDHCDSetCancelIOHandler(pHc, d)         ((pHc)->pCancelIOHandler = d)
#define SDHCDSetSlotOptionHandler(pHc, d)       ((pHc)->pSlotOptionHandler = d)
#define SDHCDSetControllerInitHandler(pHc, d)   ((pHc)->pInitHandler = d)
#define SDHCDSetControllerDeinitHandler(pHc, d) ((pHc)->pDeinitHandler = d)
#define SDHCDSetHCName(pHc, d)                  \
    (wcsncpy((pHc)->HostControllerName, d, dim((pHc)->HostControllerName) - 1))
#define SDHCDSetVersion(pHc)                    \
    ((pHc)->dwVersion = SDCARD_HC_BUS_INTERFACE_VERSION)
#define SDHCDSetChangePowerHandler(pHc,d)       ((pHc)->pChangeCardPowerHandler = d)
#define SDHCDGetChangePowerHandler(pHc)         ((pHc)->pChangeCardPowerHandler)

// the following macros provide HC synchronization and information
#define SDHCDAcquireHCLock(pHc)             EnterCriticalSection(&((pHc)->HCCritSection))
#define SDHCDReleaseHCLock(pHc)             LeaveCriticalSection(&((pHc)->HCCritSection))
#define SDHCDGetHCName(pHC)                 (pHC)->HostControllerName

// macros to set slot info structure entries
#define SDHCDSetSlotCapabilities(pSlot, d)    ((pSlot)->Capabilities = d)
#define SDHCDSetVoltageWindowMask(pSlot, d)   ((pSlot)->VoltageWindowMask = d) 
#define SDHCDSetDesiredSlotVoltage(pSlot,d)   ((pSlot)->DesiredVoltageMask = d)      
#define SDHCDSetMaxClockRate(pSlot, d)        ((pSlot)->MaxClockRate = d)
#define SDHCDSetPowerUpDelay(pSlot, d)        ((pSlot)->PowerUpDelay = d)


// macros used by the bus driver to invoke slot option handlers

#define SDEnableSDIOInterrupts(pSlot) \
    (pSlot)->pHostController->pSlotOptionHandler((pSlot)->pHostController,  \
    (pSlot)->SlotIndex,        \
    SDHCDEnableSDIOInterrupts, \
    NULL,                      \
    0)
#define SDDisableSDIOInterrupts(pSlot) \
    (pSlot)->pHostController->pSlotOptionHandler((pSlot)->pHostController,   \
    (pSlot)->SlotIndex,         \
    SDHCDDisableSDIOInterrupts, \
    NULL,                       \
    0)    
#define SDAckSDIOInterrupts(pSlot) \
    (pSlot)->pHostController->pSlotOptionHandler((pSlot)->pHostController,   \

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一二三区| 亚洲综合视频在线观看| 在线电影国产精品| 欧美做爰猛烈大尺度电影无法无天| 国产精品综合在线视频| 激情文学综合插| 激情欧美日韩一区二区| 久久99热99| 国产麻豆视频一区二区| 国产精品一卡二卡| 成人av免费在线观看| 一本一道久久a久久精品 | 中文字幕中文字幕在线一区| 久久久久国产精品麻豆ai换脸| 久久精品一区二区三区不卡牛牛| 久久一留热品黄| 日本一区二区三级电影在线观看 | 亚洲国产精品尤物yw在线观看| 亚洲国产一区二区视频| 奇米影视7777精品一区二区| 狠狠色丁香久久婷婷综合丁香| 国产成人精品免费| 95精品视频在线| 欧美三级日韩在线| 精品三级在线观看| 国产精品伦一区二区三级视频| 亚洲视频 欧洲视频| 婷婷开心激情综合| 国产一区二区看久久| 91免费视频观看| 日韩欧美激情在线| 亚洲婷婷国产精品电影人久久| 亚洲大片在线观看| 岛国精品在线观看| 欧美日韩久久一区二区| 久久久噜噜噜久久人人看| 亚洲欧美综合色| 日韩不卡一二三区| 成人97人人超碰人人99| 欧美一区二区三区成人| 亚洲天天做日日做天天谢日日欢| 美女视频网站黄色亚洲| 91丨国产丨九色丨pron| 精品国产乱码久久久久久图片| 一区二区视频在线| 国产精品自在在线| 欧美一区二区三区在线视频| 最新成人av在线| 国产一区二区在线免费观看| 欧美亚洲一区二区在线| 中文字幕av不卡| 麻豆成人91精品二区三区| 欧美丝袜第三区| 中文字幕一区二区三区av| 狠狠色综合播放一区二区| 678五月天丁香亚洲综合网| 成人免费在线观看入口| 国产成人av福利| 日韩一区二区麻豆国产| 亚洲国产精品一区二区久久恐怖片| 成人午夜激情在线| 久久久久国产精品人| 久久精品国产亚洲aⅴ| 欧美视频在线观看一区| 亚洲伦理在线精品| 色综合天天综合网天天狠天天| 久久人人97超碰com| 久久精品国产99国产精品| 在线观看91精品国产麻豆| 亚洲午夜免费福利视频| 色哟哟一区二区| 一区二区三区**美女毛片| 91在线你懂得| 亚洲欧美偷拍另类a∨色屁股| 高清成人在线观看| 久久五月婷婷丁香社区| 久久99九九99精品| 精品久久久三级丝袜| 麻豆精品视频在线观看| 日韩精品一区二区在线| 国产在线不卡视频| 国产欧美日韩在线| 91一区二区在线| 亚洲欧美欧美一区二区三区| 日本道免费精品一区二区三区| 亚洲天堂2014| 色婷婷av一区二区三区大白胸| 伊人一区二区三区| 欧美三级电影在线看| 奇米影视一区二区三区| 欧美精品一区二区久久久| 国产精品综合久久| 亚洲欧美视频在线观看| 在线成人免费视频| 国产剧情在线观看一区二区| 日韩理论片在线| 欧美日韩国产成人在线91| 日本不卡视频在线| 国产亚洲综合色| 色综合中文综合网| 欧美精品一区二区三区高清aⅴ| 国产一区二区三区不卡在线观看| 国产精品国产三级国产a | 久久成人18免费观看| 久久久不卡网国产精品一区| 色狠狠色噜噜噜综合网| 麻豆精品国产传媒mv男同| 国产精品久久久久久久久晋中 | 国产高清久久久久| 亚洲精品久久久蜜桃| 91精品国产高清一区二区三区 | 免费一级片91| 国产精品毛片久久久久久久| 欧美三级在线看| 国产精华液一区二区三区| 一区二区三区久久| 久久久久久久久久久黄色| 色老头久久综合| 国产乱码精品一品二品| 亚洲va韩国va欧美va精品| 国产精品欧美久久久久一区二区| 欧美日韩日日摸| 成人精品gif动图一区| 久久精工是国产品牌吗| 亚洲人成人一区二区在线观看| 欧美成人性战久久| 欧美日韩成人高清| 成人高清av在线| 韩国欧美国产1区| 亚洲aⅴ怡春院| 有码一区二区三区| 中文字幕欧美三区| 亚洲精品一区二区三区影院| 欧美日韩免费观看一区三区| av色综合久久天堂av综合| 激情欧美日韩一区二区| 日本成人中文字幕| 图片区小说区国产精品视频| 亚洲色图制服诱惑 | 国产91富婆露脸刺激对白| 秋霞午夜av一区二区三区| 一区二区在线观看不卡| 亚洲免费在线电影| 亚洲欧美日韩一区二区 | 国产一区二区视频在线| 视频一区国产视频| 午夜精品成人在线视频| 夜夜操天天操亚洲| 一区二区免费在线| 一区二区激情视频| 亚洲午夜视频在线观看| 亚洲国产成人av| 一区二区不卡在线播放| 亚洲一区影音先锋| 婷婷一区二区三区| 日韩电影网1区2区| 久久成人久久爱| 国产精品影视在线| 成人av集中营| 色婷婷av一区| 69久久99精品久久久久婷婷| 日韩一区二区在线观看视频播放| 欧美一区二区精品| 久久久久久电影| 国产精品网站导航| 亚洲综合色婷婷| 秋霞午夜鲁丝一区二区老狼| 激情小说亚洲一区| 91一区二区在线观看| 欧美丝袜丝交足nylons图片| 91精品国产日韩91久久久久久| 精品欧美一区二区在线观看 | 91毛片在线观看| 欧美日韩国产首页| 精品国产一区二区精华| 国产精品婷婷午夜在线观看| 亚洲免费在线观看视频| 日本伊人色综合网| 国产传媒一区在线| 欧美视频一区在线观看| www国产精品av| 伊人婷婷欧美激情| 蜜桃av一区二区三区| 国产v日产∨综合v精品视频| 欧美在线不卡视频| 国产欧美一区在线| 午夜精品福利在线| 福利一区二区在线| 欧美日韩国产高清一区二区三区| 精品国产91乱码一区二区三区| 亚洲视频在线观看一区| 美国十次综合导航| 99精品久久久久久| 日韩欧美在线不卡| 亚洲精品综合在线| 国产精品自在欧美一区| 3d成人h动漫网站入口| 国产精品久久久久久户外露出| 五月婷婷欧美视频| 91一区二区在线|