mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/sd: Rename sdbus_read_data() as sdbus_read_byte()
The sdbus_read_data() method do a single byte access on the data line of a SD bus. Rename it as sdbus_read_byte() and document it. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200814092346.21825-4-f4bug@amsat.org>
This commit is contained in:
parent
39017143d6
commit
8467f62201
9 changed files with 27 additions and 19 deletions
|
@ -166,7 +166,15 @@ int sdbus_do_command(SDBus *sd, SDRequest *req, uint8_t *response);
|
|||
* Write a byte on the data lines of a SD bus.
|
||||
*/
|
||||
void sdbus_write_byte(SDBus *sd, uint8_t value);
|
||||
uint8_t sdbus_read_data(SDBus *sd);
|
||||
/**
|
||||
* Read a byte from a SD bus.
|
||||
* @sd: bus
|
||||
*
|
||||
* Read a byte from the data lines of a SD bus.
|
||||
*
|
||||
* Return: byte value read
|
||||
*/
|
||||
uint8_t sdbus_read_byte(SDBus *sd);
|
||||
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