mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
parent
ac2061abfe
commit
7dcfc8bd49
@ -118,8 +118,12 @@ class Pci_driver : public Bsd::Bus_driver
|
|||||||
{
|
{
|
||||||
Platform::Device_capability cap;
|
Platform::Device_capability cap;
|
||||||
/* shift values for Pci interface used by Genode */
|
/* shift values for Pci interface used by Genode */
|
||||||
cap = _pci.next_device(prev, PCI_CLASS_MULTIMEDIA << 16,
|
cap = Genode::retry<Platform::Session::Out_of_metadata>(
|
||||||
PCI_CLASS_MASK << 16);
|
[&] () { return _pci.next_device(prev,
|
||||||
|
PCI_CLASS_MULTIMEDIA << 16,
|
||||||
|
PCI_CLASS_MASK << 16); },
|
||||||
|
[&] () { _pci.upgrade_ram(4096); });
|
||||||
|
|
||||||
if (prev.valid())
|
if (prev.valid())
|
||||||
_pci.release_device(prev);
|
_pci.release_device(prev);
|
||||||
return cap;
|
return cap;
|
||||||
|
Loading…
Reference in New Issue
Block a user