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