X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fiface-host-pci-hw.h;h=1736c9001e48ad3a04d0c57e1ada9ff65a5557d2;hb=8361c0d1e416802f476ebd26e385a388747a4799;hp=b08d8977186410da45682d35b3bdecae316fad8e;hpb=ffd6d915b585a4a17a2d5b081313f0968885a105;p=palacios.releases.git diff --git a/linux_module/iface-host-pci-hw.h b/linux_module/iface-host-pci-hw.h index b08d897..1736c90 100644 --- a/linux_module/iface-host-pci-hw.h +++ b/linux_module/iface-host-pci-hw.h @@ -78,8 +78,17 @@ static int setup_hw_pci_dev(struct host_pci_device * host_dev) { bar->type = PT_BAR_IO; } else if (flags & IORESOURCE_MEM) { if (flags & IORESOURCE_MEM_64) { - printk("ERROR: 64 Bit BARS not yet supported\n"); - bar->type = PT_BAR_NONE; + struct v3_host_pci_bar * hi_bar = &(v3_dev->bars[i + 1]); + + bar->type = PT_BAR_MEM64_LO; + + hi_bar->type = PT_BAR_MEM64_HI; + hi_bar->size = bar->size; + hi_bar->addr = bar->addr; + hi_bar->cacheable = ((flags & IORESOURCE_CACHEABLE) != 0); + hi_bar->prefetchable = ((flags & IORESOURCE_PREFETCH) != 0); + + i++; } else if (flags & IORESOURCE_DMA) { bar->type = PT_BAR_MEM24; } else {