mmc_bus: add execute_command function

For now it just forwards the command to the SDHCI controller.
The bus will gain more features and functions as work advances (tracking
which card is active, arbitration of DMA transfers, etc).

Change-Id: I094eb84f27e7789387a3f8fb65fba1e5fcfa3e8a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3094
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Adrien Destugues
2020-10-11 16:02:22 +00:00
committed by waddlesplash
parent d4a668083c
commit 62eaf4c0e1
3 changed files with 44 additions and 10 deletions
+9
View File
@@ -35,4 +35,13 @@ typedef struct mmc_bus_interface {
} mmc_bus_interface;
// Interface between mmc device driver (mmc_disk, sdio drivers, ...) and mmc_bus
typedef struct mmc_device_interface {
driver_module_info info;
status_t (*execute_command)(device_node* node, uint8_t command,
uint32_t argument, uint32_t* result);
} mmc_device_interface;
#endif /* _MMC_H */