xref: /haiku/headers/private/drivers/mmc.h (revision 15fb7d88e971c4d6c787c6a3a5c159afb1ebf77b)
1 /*
2  * Copyright 2019, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Adrien Destugues, pulkomandy@pulkomandy.tk
7  */
8 #ifndef _MMC_H
9 #define _MMC_H
10 
11 
12 #include <device_manager.h>
13 
14 
15 #define MMC_BUS_MODULE_NAME "bus_managers/mmc_bus/driver_v1"
16 
17 
18 // Interface between mmc_bus and underlying implementation
19 typedef struct mmc_bus_interface {
20 	driver_module_info info;
21 
22 	status_t (*set_clock)(void* controller, uint32_t kilohertz);
23 	status_t (*execute_command)(void* controller, uint8_t command,
24 		uint32_t argument, uint32_t* result);
25 } mmc_bus_interface;
26 
27 
28 #endif /* _MMC_H */
29