SDBUS_CALLBACK_ROUTINE callback function (ntddsd.h)

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.

Syntax

SDBUS_CALLBACK_ROUTINE SdbusCallbackRoutine;

void SdbusCallbackRoutine(
  [in] PVOID CallbackRoutineContext,
  [in] ULONG InterruptType
)
{...}

Parameters

[in] CallbackRoutineContext

Pointer to the context information that the bus driver passes to the callback routine. The device driver supplies the bus driver with this information when it initializes the SD bus interface.

[in] InterruptType

Must be set to SDBUS_INTTYPE_DEVICE.

Return value

None

Remarks

When an SD device driver initializes an instance of the SD bus interface, it loads the CallbackRoutine member of the SDBUS_INTERFACE_PARAMETERS structure with a pointer to PSDBUS_CALLBACK_ROUTINE.

The bus driver calls the SD card driver's callback routine whenever the card indicates an interrupt. The callback routine must send the appropriate device commands to handle and clear the interrupt on the card. After it completes the series of I/O operations, the SD card driver should acknowledge the interrupt. For more information about how SD card drivers acknowledge interrupts, see PSDBUS_ACKNOWLEDGE_INT_ROUTINE.

Requirements

Requirement Value
Target Platform Desktop
Header ntddsd.h (include Ntddsd.h)

See also

SDBUS_INTERFACE_PARAMETERS