projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initial support for USB, UHCI, and USB Keyboards.
[seabios.git]
/
src
/
pci.c
diff --git
a/src/pci.c
b/src/pci.c
index bf0e549b9f501e610bed5020870457d1b2cc17bb..e6b74d5347ba4e4f3e692cddf169667e82ffb770 100644
(file)
--- a/
src/pci.c
+++ b/
src/pci.c
@@
-178,3
+178,11
@@
pci_find_class(u16 classid)
}
return -1;
}
+
+void
+pci_set_bus_master(u16 bdf)
+{
+ u16 val = pci_config_readw(bdf, PCI_COMMAND);
+ val |= PCI_COMMAND_MASTER;
+ pci_config_writew(bdf, PCI_COMMAND, val);
+}