usbuhci: make sure pci membar type is i/o
This commit is contained in:
parent
a3626a6efa
commit
dd2d6c9430
1 changed files with 3 additions and 1 deletions
|
@ -2129,7 +2129,9 @@ scanpci(void)
|
|||
continue;
|
||||
switch(p->ccrp){
|
||||
case 0:
|
||||
io = p->mem[4].bar & ~0x0F;
|
||||
if((p->mem[4].bar & 1) == 0)
|
||||
continue;
|
||||
io = (int)p->mem[4].bar & ~0xF;
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue