#include <dev/ht_config_dev.h>
#include "pci_debug.h"
+#include <if/acpi_rpcclient_defs.h>
+
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define BAR_PROBE 0xffffffff
struct device_caps *c = &dev_caps[bus][dev][fun][idx];
errval_t err;
+ size = ROUND_UP(size, BASE_PAGE_SIZE); // Some BARs are less than 4 KiB
// first try with maximally-sized caps (we'll reduce this if it doesn't work)
uint8_t bits = log2ceil(size);