Data Structures | |
struct | sdioemb_wdf_interface |
struct | sdioemb_wdf_slot_data |
Functions | |
NTSTATUS | sdioemb_wdf_create_child_list (WDFDEVICE device, struct sdioemb_slot *slot) |
void | sdioemb_wdf_destroy_child_list (struct sdioemb_slot *slot) |
int | sdioemb_wdf_slot_register (struct sdioemb_slot *slot) |
void | sdioemb_wdf_slot_unregister (struct sdioemb_slot *slot) |
void | sdioemb_wdf_event_log_init (PWDFDEVICE_INIT device_init) |
NTSTATUS | sdioemb_wdf_event_log_create (WDFDEVICE device) |
Sdioemb makes use of the Windows Driver Model to bind function drivers to function device. When a card is inserted into a slot the following occurs.
Slot drivers must be kernel-mode WDF drivers.
Slot drivers must be kernel-mode WDF (or WDM) drivers.
NTSTATUS sdioemb_wdf_create_child_list | ( | WDFDEVICE | device, | |
struct sdioemb_slot * | slot | |||
) |
Create and initialize a slot's child list.
This must be called before registering the slot with sdioemb_wdf_slot_register().
device | the FDO for the slot. | |
slot | the slot. |
References sdioemb_wdf_slot_data::child_list, sdioemb_wdf_slot_data::device, and sdioemb_slot::drv_data.
void sdioemb_wdf_destroy_child_list | ( | struct sdioemb_slot * | slot | ) |
Destroy a slot's child list.
The slot must not be registered.
slot | the slot. |
References sdioemb_wdf_slot_data::child_list, and sdioemb_slot::drv_data.
NTSTATUS sdioemb_wdf_event_log_create | ( | WDFDEVICE | device | ) |
Create the event logging infrastructure for a WDF device.
This creates the I/O queues etc. for the event logging for a WDF device with one or more slots.
device | the WDF device. |
A error status otherwise.
void sdioemb_wdf_event_log_init | ( | PWDFDEVICE_INIT | device_init | ) |
Initialize a WDF device for event logging.
device_init | the device initialization information. |
int sdioemb_wdf_slot_register | ( | struct sdioemb_slot * | slot | ) |
Register a WDF slot driver.
This sets the add and delete function notifiers to create the correct WDF child devices.
slot | the slot to be registered. |
-ve error code on failure.
References sdioemb_slot_notifiers::add_function, sdioemb_slot_notifiers::del_function, sdioemb_slot::notifs, and sdioemb_slot_register().
void sdioemb_wdf_slot_unregister | ( | struct sdioemb_slot * | slot | ) |
Unregister a WDF slot driver.
This unregisters the slot driver previously registered with sdioemb_wdf_slot_register().
slot | the slot to be unregistered. |
References sdioemb_slot_unregister().