SD driver reference

This section describes the programming reference for writing SD bus drivers.

In this section

EnumerationDescription

SD_COMMAND_CLASS

The SD_COMMAND_CLASS enumeration lists the classes of Secure Digital (SD) card commands.

SD_COMMAND_CODE

The SD_COMMAND_CODE data type is used to specify the code of a Secure Digital (SD) card command.


typedef UCHAR SD_COMMAND_CODE;

SD_REQUEST_FUNCTION

The SD_REQUEST_FUNCTION enumeration indicates the type of request packet that a Secure Digital (SD) card driver sends to the bus driver.

SD_RESPONSE_TYPE

The SD_RESPONSE_TYPE enumeration lists the types of response data that a Secure Digital (SD) card returns in response to a command.

SD_TRANSFER_TYPE

The SD_TRANSFER_TYPE enumeration specifies the type of a Secure Digital (SD) data transfer.

SDBUS_PROPERTY

The SDBUS_PROPERTY enumeration lists the properties of a Secure Digital (SD) card that an SD device driver can set with an SD request.

SDPROP_MEDIA_STATE

The SDPROP_MEDIA_STATE enumeration lists the values associated with the media states property.

SFFDISK_DCMD

The SFFDISK_DCMD enumeration identifies the type of Secure Digital (SD) card operation.

SFFDISK_DPCMD

The SFFDISK_DPCMD enumeration lists the operations performed by an IOCTL_SFFDISK_DEVICE_PASSWORD request.

SdBusOpenInterface

The SdBusOpenInterface routine obtains an interface from the Secure Digital (SD) bus driver.

SdBusSubmitRequest

The SdBusSubmitRequest routine sends a synchronous Secure Digital (SD) request to the bus driver.

SdBusSubmitRequestAsync

The SdBusSubmitRequestAsync routine sends an asynchronous Secure Digital (SD) request to the bus driver interface.

IOCTL_SFFDISK_DEVICE_COMMAND

IOCTL_SFFDISK_DEVICE_PASSWORD

IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL

User-mode applications use this IOCTL to retrieve a protocol value that identifies the card as either an SD card or an MMC card. For a description of this command, see the Secure Digital I/O (SDIO) specification.

PSDBUS_ACKNOWLEDGE_INT_ROUTINE

The PSDBUS_ACKNOWLEDGE_INT_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver must call to acknowledge to the bus driver that it has finished processing the interrupt.

PSDBUS_CALLBACK_ROUTINE

The PSDBUS_CALLBACK_ROUTINE prototype declares the Secure Digital (SD) driver callback routine that the SD bus driver uses to report device interrupts to the driver.

PSDBUS_INITIALIZE_INTERFACE_ROUTINE

The PSDBUS_INITIALIZE_INTERFACE_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver uses to initialize an interface instance that it creates with the SdBusOpenInterface routine.

 

In this section

StructureDescription

SD_COMMAND_CLASS

The SD_COMMAND_CLASS enumeration lists the classes of Secure Digital (SD) card commands.

SD_COMMAND_CODE

The SD_COMMAND_CODE data type is used to specify the code of a Secure Digital (SD) card command.


typedef UCHAR SD_COMMAND_CODE;

SD_REQUEST_FUNCTION

The SD_REQUEST_FUNCTION enumeration indicates the type of request packet that a Secure Digital (SD) card driver sends to the bus driver.

SD_RESPONSE_TYPE

The SD_RESPONSE_TYPE enumeration lists the types of response data that a Secure Digital (SD) card returns in response to a command.

SD_TRANSFER_TYPE

The SD_TRANSFER_TYPE enumeration specifies the type of a Secure Digital (SD) data transfer.

SDBUS_PROPERTY

The SDBUS_PROPERTY enumeration lists the properties of a Secure Digital (SD) card that an SD device driver can set with an SD request.

SDPROP_MEDIA_STATE

The SDPROP_MEDIA_STATE enumeration lists the values associated with the media states property.

SFFDISK_DCMD

The SFFDISK_DCMD enumeration identifies the type of Secure Digital (SD) card operation.

SFFDISK_DPCMD

The SFFDISK_DPCMD enumeration lists the operations performed by an IOCTL_SFFDISK_DEVICE_PASSWORD request.

SdBusOpenInterface

The SdBusOpenInterface routine obtains an interface from the Secure Digital (SD) bus driver.

SdBusSubmitRequest

The SdBusSubmitRequest routine sends a synchronous Secure Digital (SD) request to the bus driver.

SdBusSubmitRequestAsync

The SdBusSubmitRequestAsync routine sends an asynchronous Secure Digital (SD) request to the bus driver interface.

IOCTL_SFFDISK_DEVICE_COMMAND

IOCTL_SFFDISK_DEVICE_PASSWORD

IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL

User-mode applications use this IOCTL to retrieve a protocol value that identifies the card as either an SD card or an MMC card. For a description of this command, see the Secure Digital I/O (SDIO) specification.

PSDBUS_ACKNOWLEDGE_INT_ROUTINE

The PSDBUS_ACKNOWLEDGE_INT_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver must call to acknowledge to the bus driver that it has finished processing the interrupt.

PSDBUS_CALLBACK_ROUTINE

The PSDBUS_CALLBACK_ROUTINE prototype declares the Secure Digital (SD) driver callback routine that the SD bus driver uses to report device interrupts to the driver.

PSDBUS_INITIALIZE_INTERFACE_ROUTINE

The PSDBUS_INITIALIZE_INTERFACE_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver uses to initialize an interface instance that it creates with the SdBusOpenInterface routine.

 

In this section

FunctionDescription

SD_COMMAND_CLASS

The SD_COMMAND_CLASS enumeration lists the classes of Secure Digital (SD) card commands.

SD_COMMAND_CODE

The SD_COMMAND_CODE data type is used to specify the code of a Secure Digital (SD) card command.


typedef UCHAR SD_COMMAND_CODE;

SD_REQUEST_FUNCTION

The SD_REQUEST_FUNCTION enumeration indicates the type of request packet that a Secure Digital (SD) card driver sends to the bus driver.

SD_RESPONSE_TYPE

The SD_RESPONSE_TYPE enumeration lists the types of response data that a Secure Digital (SD) card returns in response to a command.

SD_TRANSFER_TYPE

The SD_TRANSFER_TYPE enumeration specifies the type of a Secure Digital (SD) data transfer.

SDBUS_PROPERTY

The SDBUS_PROPERTY enumeration lists the properties of a Secure Digital (SD) card that an SD device driver can set with an SD request.

SDPROP_MEDIA_STATE

The SDPROP_MEDIA_STATE enumeration lists the values associated with the media states property.

SFFDISK_DCMD

The SFFDISK_DCMD enumeration identifies the type of Secure Digital (SD) card operation.

SFFDISK_DPCMD

The SFFDISK_DPCMD enumeration lists the operations performed by an IOCTL_SFFDISK_DEVICE_PASSWORD request.

SdBusOpenInterface

The SdBusOpenInterface routine obtains an interface from the Secure Digital (SD) bus driver.

SdBusSubmitRequest

The SdBusSubmitRequest routine sends a synchronous Secure Digital (SD) request to the bus driver.

SdBusSubmitRequestAsync

The SdBusSubmitRequestAsync routine sends an asynchronous Secure Digital (SD) request to the bus driver interface.

IOCTL_SFFDISK_DEVICE_COMMAND

IOCTL_SFFDISK_DEVICE_PASSWORD

IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL

User-mode applications use this IOCTL to retrieve a protocol value that identifies the card as either an SD card or an MMC card. For a description of this command, see the Secure Digital I/O (SDIO) specification.

PSDBUS_ACKNOWLEDGE_INT_ROUTINE

The PSDBUS_ACKNOWLEDGE_INT_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver must call to acknowledge to the bus driver that it has finished processing the interrupt.

PSDBUS_CALLBACK_ROUTINE

The PSDBUS_CALLBACK_ROUTINE prototype declares the Secure Digital (SD) driver callback routine that the SD bus driver uses to report device interrupts to the driver.

PSDBUS_INITIALIZE_INTERFACE_ROUTINE

The PSDBUS_INITIALIZE_INTERFACE_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver uses to initialize an interface instance that it creates with the SdBusOpenInterface routine.

 

In this section

FunctionDescription

SD_COMMAND_CLASS

The SD_COMMAND_CLASS enumeration lists the classes of Secure Digital (SD) card commands.

SD_COMMAND_CODE

The SD_COMMAND_CODE data type is used to specify the code of a Secure Digital (SD) card command.


typedef UCHAR SD_COMMAND_CODE;

SD_REQUEST_FUNCTION

The SD_REQUEST_FUNCTION enumeration indicates the type of request packet that a Secure Digital (SD) card driver sends to the bus driver.

SD_RESPONSE_TYPE

The SD_RESPONSE_TYPE enumeration lists the types of response data that a Secure Digital (SD) card returns in response to a command.

SD_TRANSFER_TYPE

The SD_TRANSFER_TYPE enumeration specifies the type of a Secure Digital (SD) data transfer.

SDBUS_PROPERTY

The SDBUS_PROPERTY enumeration lists the properties of a Secure Digital (SD) card that an SD device driver can set with an SD request.

SDPROP_MEDIA_STATE

The SDPROP_MEDIA_STATE enumeration lists the values associated with the media states property.

SFFDISK_DCMD

The SFFDISK_DCMD enumeration identifies the type of Secure Digital (SD) card operation.

SFFDISK_DPCMD

The SFFDISK_DPCMD enumeration lists the operations performed by an IOCTL_SFFDISK_DEVICE_PASSWORD request.

SdBusOpenInterface

The SdBusOpenInterface routine obtains an interface from the Secure Digital (SD) bus driver.

SdBusSubmitRequest

The SdBusSubmitRequest routine sends a synchronous Secure Digital (SD) request to the bus driver.

SdBusSubmitRequestAsync

The SdBusSubmitRequestAsync routine sends an asynchronous Secure Digital (SD) request to the bus driver interface.

IOCTL_SFFDISK_DEVICE_COMMAND

IOCTL_SFFDISK_DEVICE_PASSWORD

IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL

User-mode applications use this IOCTL to retrieve a protocol value that identifies the card as either an SD card or an MMC card. For a description of this command, see the Secure Digital I/O (SDIO) specification.

PSDBUS_ACKNOWLEDGE_INT_ROUTINE

The PSDBUS_ACKNOWLEDGE_INT_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver must call to acknowledge to the bus driver that it has finished processing the interrupt.

PSDBUS_CALLBACK_ROUTINE

The PSDBUS_CALLBACK_ROUTINE prototype declares the Secure Digital (SD) driver callback routine that the SD bus driver uses to report device interrupts to the driver.

PSDBUS_INITIALIZE_INTERFACE_ROUTINE

The PSDBUS_INITIALIZE_INTERFACE_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver uses to initialize an interface instance that it creates with the SdBusOpenInterface routine.

 

In this section

Control CodeDescription

SD_COMMAND_CLASS

The SD_COMMAND_CLASS enumeration lists the classes of Secure Digital (SD) card commands.

SD_COMMAND_CODE

The SD_COMMAND_CODE data type is used to specify the code of a Secure Digital (SD) card command.


typedef UCHAR SD_COMMAND_CODE;

SD_REQUEST_FUNCTION

The SD_REQUEST_FUNCTION enumeration indicates the type of request packet that a Secure Digital (SD) card driver sends to the bus driver.

SD_RESPONSE_TYPE

The SD_RESPONSE_TYPE enumeration lists the types of response data that a Secure Digital (SD) card returns in response to a command.

SD_TRANSFER_TYPE

The SD_TRANSFER_TYPE enumeration specifies the type of a Secure Digital (SD) data transfer.

SDBUS_PROPERTY

The SDBUS_PROPERTY enumeration lists the properties of a Secure Digital (SD) card that an SD device driver can set with an SD request.

SDPROP_MEDIA_STATE

The SDPROP_MEDIA_STATE enumeration lists the values associated with the media states property.

SFFDISK_DCMD

The SFFDISK_DCMD enumeration identifies the type of Secure Digital (SD) card operation.

SFFDISK_DPCMD

The SFFDISK_DPCMD enumeration lists the operations performed by an IOCTL_SFFDISK_DEVICE_PASSWORD request.

SdBusOpenInterface

The SdBusOpenInterface routine obtains an interface from the Secure Digital (SD) bus driver.

SdBusSubmitRequest

The SdBusSubmitRequest routine sends a synchronous Secure Digital (SD) request to the bus driver.

SdBusSubmitRequestAsync

The SdBusSubmitRequestAsync routine sends an asynchronous Secure Digital (SD) request to the bus driver interface.

IOCTL_SFFDISK_DEVICE_COMMAND

IOCTL_SFFDISK_DEVICE_PASSWORD

IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL

User-mode applications use this IOCTL to retrieve a protocol value that identifies the card as either an SD card or an MMC card. For a description of this command, see the Secure Digital I/O (SDIO) specification.

PSDBUS_ACKNOWLEDGE_INT_ROUTINE

The PSDBUS_ACKNOWLEDGE_INT_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver must call to acknowledge to the bus driver that it has finished processing the interrupt.

PSDBUS_CALLBACK_ROUTINE

The PSDBUS_CALLBACK_ROUTINE prototype declares the Secure Digital (SD) driver callback routine that the SD bus driver uses to report device interrupts to the driver.

PSDBUS_INITIALIZE_INTERFACE_ROUTINE

The PSDBUS_INITIALIZE_INTERFACE_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver uses to initialize an interface instance that it creates with the SdBusOpenInterface routine.

 

 

 

Send comments about this topic to Microsoft

Show: