mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/sd: Rename read/write_data() as read/write_byte()
The read/write_data() methods write do a single byte access on the data line of a SD card. Rename them as read/write_byte(). Add some documentation (not in "hw/sd/sdcard_legacy.h" which we are going to remove soon). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200814092346.21825-2-f4bug@amsat.org>
This commit is contained in:
parent
9006f1e706
commit
c769a88d44
5 changed files with 33 additions and 18 deletions
|
@ -232,10 +232,10 @@ static void omap_mmc_transfer(struct omap_mmc_s *host)
|
|||
if (host->fifo_len > host->af_level)
|
||||
break;
|
||||
|
||||
value = sd_read_data(host->card);
|
||||
value = sd_read_byte(host->card);
|
||||
host->fifo[(host->fifo_start + host->fifo_len) & 31] = value;
|
||||
if (-- host->blen_counter) {
|
||||
value = sd_read_data(host->card);
|
||||
value = sd_read_byte(host->card);
|
||||
host->fifo[(host->fifo_start + host->fifo_len) & 31] |=
|
||||
value << 8;
|
||||
host->blen_counter --;
|
||||
|
@ -247,10 +247,10 @@ static void omap_mmc_transfer(struct omap_mmc_s *host)
|
|||
break;
|
||||
|
||||
value = host->fifo[host->fifo_start] & 0xff;
|
||||
sd_write_data(host->card, value);
|
||||
sd_write_byte(host->card, value);
|
||||
if (-- host->blen_counter) {
|
||||
value = host->fifo[host->fifo_start] >> 8;
|
||||
sd_write_data(host->card, value);
|
||||
sd_write_byte(host->card, value);
|
||||
host->blen_counter --;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue