mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +00:00
parent
9e6189ea11
commit
00c518b55e
@ -98,32 +98,19 @@ class Genode::Usb_dwc_otg : Mmio
|
||||
if (!_is_sof())
|
||||
return false;
|
||||
|
||||
static int cnt, stat_cnt, filter_cnt, trigger_cnt, kick_cnt;
|
||||
static int cnt = 0;
|
||||
|
||||
stat_cnt++;
|
||||
if (stat_cnt == 8000) {
|
||||
log("kicked: ", kick_cnt, " filtered: ", filter_cnt, " triggered: ", trigger_cnt);
|
||||
stat_cnt = 0;
|
||||
}
|
||||
|
||||
cnt++;
|
||||
if (cnt == 8*20) {
|
||||
if (++cnt == 8*20) {
|
||||
cnt = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (read<Guid::Kick>())
|
||||
kick_cnt++;
|
||||
|
||||
if (!read<Guid::Num_valid>() || read<Guid::Kick>())
|
||||
return false;
|
||||
|
||||
if (_need_trigger_sof(read<Host_frame_number::Num>(), read<Guid::Num>())) {
|
||||
trigger_cnt++;
|
||||
if (_need_trigger_sof(read<Host_frame_number::Num>(),
|
||||
read<Guid::Num>()))
|
||||
return false;
|
||||
}
|
||||
|
||||
filter_cnt++;
|
||||
|
||||
write<Core_irq_status::Sof>(1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user