mirror of https://gitee.com/openkylin/qemu.git
add sdhci.c
This commit is contained in:
parent
9cc4045875
commit
3f16e741d9
|
@ -980,6 +980,10 @@ static bool sdhci_can_issue_command(SDHCIState *s)
|
|||
static inline bool
|
||||
sdhci_buff_access_is_sequential(SDHCIState *s, unsigned byte_num)
|
||||
{
|
||||
if (s->data_count >= (s->blksize & BLOCK_SIZE_MASK)) {
|
||||
s->data_count = 0;
|
||||
}
|
||||
|
||||
if ((s->data_count & 0x3) != byte_num) {
|
||||
trace_sdhci_error("Non-sequential access to Buffer Data Port register"
|
||||
"is prohibited\n");
|
||||
|
|
Loading…
Reference in New Issue