Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-pci.patch 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. diff --git a/repos/os/src/test/pci/test.cc b/repos/os/src/test/pci/test.cc
  2. index c6d9e2012b..050de6136c 100644
  3. --- a/repos/os/src/test/pci/test.cc
  4. +++ b/repos/os/src/test/pci/test.cc
  5. @@ -92,4 +92,5 @@ void Component::construct(Genode::Env &env)
  6. pci.release_device(prev_device_cap);
  7. log("--- Platform test finished ---");
  8. + env.parent().exit(0);
  9. }
  10. commit 03a5f469313e9fdc9ee1135ebf0b167e4d3d3266
  11. Author: Emery Hemingway <ehmry@posteo.net>
  12. Date: Wed Oct 21 15:16:34 2020 +0200
  13. test-pci: recognize VirtIO vendor IDs
  14. diff --git a/repos/os/src/test/pci/test.cc b/repos/os/src/test/pci/test.cc
  15. index c6d9e2012b..9cc2a2ac4b 100644
  16. --- a/repos/os/src/test/pci/test.cc
  17. +++ b/repos/os/src/test/pci/test.cc
  18. @@ -19,7 +19,10 @@
  19. using namespace Genode;
  20. -enum { INTEL_VENDOR_ID = 0x8086 };
  21. +enum {
  22. + INTEL_VENDOR_ID = 0x8086,
  23. + VIRTIO_VENDOR_ID = 0x1af4,
  24. +};
  25. /**
  26. @@ -45,7 +48,9 @@ static void print_device_info(Platform::Device_capability device_cap)
  27. Hex(fun, Hex::OMIT_PREFIX), " "
  28. "class=", Hex(class_code), " "
  29. "vendor=", Hex(vendor_id), " ",
  30. - (vendor_id == INTEL_VENDOR_ID ? "(Intel)" : "(unknown)"),
  31. + (vendor_id == INTEL_VENDOR_ID ? "(Intel)" :
  32. + vendor_id == VIRTIO_VENDOR_ID ? "(VirtIO)" :
  33. + "(unknown)"),
  34. " device=", Hex(device_id));
  35. for (int resource_id = 0; resource_id < 6; resource_id++) {