Enable bus mastering
This commit is contained in:
parent
f624a5e322
commit
4544f9039a
1 changed files with 17 additions and 0 deletions
|
|
@ -108,6 +108,12 @@ fn main() {
|
|||
}
|
||||
|
||||
if let Some(ref args) = driver.command {
|
||||
// Enable bus mastering
|
||||
unsafe {
|
||||
let cmd = pci.read(bus.num, dev.num, func.num, 0x04);
|
||||
pci.write(bus.num, dev.num, func.num, 0x04, cmd | 4);
|
||||
}
|
||||
|
||||
let mut args = args.iter();
|
||||
if let Some(program) = args.next() {
|
||||
let mut command = Command::new(program);
|
||||
|
|
|
|||
Loading…
Reference in a new issue