[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Curious about this code in the ohci_service_td()
From: |
Wei Yang |
Subject: |
[Qemu-devel] Curious about this code in the ohci_service_td() |
Date: |
Sun, 19 Feb 2012 00:19:47 +0800 |
I am reading the code in ohci_service_td().
There is a calculation of the length of the buffer.
if ((td.cbp & 0xfffff000) != (td.be & 0xfffff000)) {
len = (td.be & 0xfff) + 0x1001 - (td.cbp & 0xfff);
} else {
len = (td.be - td.cbp) + 1;
}
I am curious about the first case.
So the td.be could be less than the tb.cbp?
Seems this is a buffer ring and the size is around 4k?
--
Richard Yang
Help You, Help Me
- [Qemu-devel] Curious about this code in the ohci_service_td(),
Wei Yang <=