mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
hw/sd: Add sdbus_write_data() to write multiples bytes on the data line
Add a sdbus_write_data() method to write multiple bytes on the data line of a SD bus. We might improve the tracing later, for now keep logging each byte individually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200814092346.21825-5-f4bug@amsat.org>
This commit is contained in:
parent
8467f62201
commit
e35c343dd9
2 changed files with 24 additions and 0 deletions
|
@ -175,6 +175,15 @@ void sdbus_write_byte(SDBus *sd, uint8_t value);
|
|||
* Return: byte value read
|
||||
*/
|
||||
uint8_t sdbus_read_byte(SDBus *sd);
|
||||
/**
|
||||
* Write data to a SD bus.
|
||||
* @sdbus: bus
|
||||
* @buf: data to write
|
||||
* @length: number of bytes to write
|
||||
*
|
||||
* Write multiple bytes of data on the data lines of a SD bus.
|
||||
*/
|
||||
void sdbus_write_data(SDBus *sdbus, const void *buf, size_t length);
|
||||
bool sdbus_data_ready(SDBus *sd);
|
||||
bool sdbus_get_inserted(SDBus *sd);
|
||||
bool sdbus_get_readonly(SDBus *sd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue