📄 sdcardapi.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
// Copyright (c) 2002 BSQUARE Corporation. All rights reserved.
// DO NOT REMOVE --- BEGIN EXTERNALLY DEVELOPED SOURCE CODE ID 40973--- DO NOT REMOVE
// Header file for local bus driver implementation of APIs
#ifndef _SDCARD_API_DEFINED
#define _SDCARD_API_DEFINED
#include "SDCardDDK.h"
#include "SDBusRequest.h"
// Undefine the macro'd version of internal bus driver routines. Internally,
// the bus driver should be calling the __X implementations.
#undef SDSynchronousBusRequest
#undef SDBusRequest
#undef SDCancelBusRequest
#undef SDFreeBusRequest
#undef SDCardInfoQuery
#undef SDReadWriteRegistersDirect
#undef SDGetTuple
#undef SDIOConnectInterrupt
#undef SDIODisconnectInterrupt
#undef SDSetCardFeature
SD_API_STATUS SDRegisterClient__X(SD_DEVICE_HANDLE hDevice,
PVOID pDeviceContext,
PSDCARD_CLIENT_REGISTRATION_INFO pInfo);
SD_API_STATUS SDSynchronousBusRequest__X(SD_DEVICE_HANDLE hDevice,
UCHAR Command,
DWORD Argument,
SD_TRANSFER_CLASS TransferClass,
SD_RESPONSE_TYPE ResponseType,
PSD_COMMAND_RESPONSE pResponse,
ULONG NumBlocks,
ULONG BlockSize,
PUCHAR pBuffer,
DWORD Flags);
SD_API_STATUS SDBusRequest__X(SD_DEVICE_HANDLE hHandle,
UCHAR Command,
DWORD Argument,
SD_TRANSFER_CLASS TransferClass,
SD_RESPONSE_TYPE ResponseType,
ULONG NumBlocks,
ULONG BlockSize,
PUCHAR pBuffer,
PSD_BUS_REQUEST_CALLBACK pCallback,
DWORD RequestParam,
HBUS_REQUEST *phRequest,
DWORD Flags);
BOOLEAN SDCancelBusRequest__X(HBUS_REQUEST HhRequest);
VOID SDFreeBusRequest__X(HBUS_REQUEST hRequest);
SD_API_STATUS SDCardInfoQuery__X( SD_DEVICE_HANDLE hHandle,
SD_INFO_TYPE InfoType,
PVOID pCardInfo,
ULONG StructureSize);
SD_API_STATUS SDReadWriteRegistersDirect__X(SD_DEVICE_HANDLE hDevice,
SD_IO_TRANSFER_TYPE ReadWrite,
UCHAR Function,
DWORD Address,
BOOLEAN ReadAfterWrite,
PUCHAR pBuffer,
ULONG Length);
SD_API_STATUS SDGetTuple__X(SD_DEVICE_HANDLE hDevice,
UCHAR TupleCode,
PUCHAR pBuffer,
PULONG pBufferSize,
BOOL CommonCIS);
SD_API_STATUS SDIOConnectInterrupt__X(SD_DEVICE_HANDLE hDevice,
PSD_INTERRUPT_CALLBACK pIsrFunction);
VOID SDIODisconnectInterrupt__X(SD_DEVICE_HANDLE hDevice);
SD_API_STATUS SDSetCardFeature__X(SD_DEVICE_HANDLE hDevice,
SD_SET_FEATURE_TYPE CardFeature,
PVOID pCardInfo,
ULONG StructureSize);
VOID SDAcquireDeviceLock(SD_DEVICE_HANDLE hDevice);
VOID SDReleaseDeviceLock(SD_DEVICE_HANDLE hDevice);
VOID SDCompleteBusRequest(PSDBUS_BUS_REQUEST pRequest);
#endif
// DO NOT REMOVE --- END EXTERNALLY DEVELOPED SOURCE CODE ID --- DO NOT REMOVE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -