This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bytesToHR() | |
{ | |
local SIZE=$1 | |
local UNITS="B KiB MiB GiB TiB PiB" | |
for F in $UNITS; do | |
local UNIT=$F | |
test ${SIZE%.*} -lt 1024 && break; | |
SIZE=$(echo "$SIZE / 1024" | bc -l) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c | |
index 6c91bd44a0..f3c7b9d328 100644 | |
--- a/hw/pci/pcie.c | |
+++ b/hw/pci/pcie.c | |
@@ -39,6 +39,166 @@ | |
#define PCIE_DEV_PRINTF(dev, fmt, ...) \ | |
PCIE_DPRINTF("%s:%x "fmt, (dev)->name, (dev)->devfn, ## __VA_ARGS__) | |
+static uint16_t pcie_link_max_width(PCIDevice *dev) | |
+{ |
NewerOlder