[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] hvmloader: enable bus mastering of PCI device
Without this, init routine in some PCI option ROM doesn't work well. Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> diff -r 6401c9533ef5 tools/firmware/hvmloader/hvmloader.c --- a/tools/firmware/hvmloader/hvmloader.c Wed Dec 10 14:05:41 2008 +0000 +++ b/tools/firmware/hvmloader/hvmloader.c Thu Dec 11 21:28:49 2008 +0900 @@ -269,6 +269,11 @@ static void pci_setup(void) printf("pci dev %02x:%x INT%c->IRQ%u\n", devfn>>3, devfn&7, 'A'+pin-1, isa_irq); } + + /* Enable bus mastering. */ + cmd = pci_readw(devfn, PCI_COMMAND); + cmd |= PCI_COMMAND_MASTER; + pci_writew(devfn, PCI_COMMAND, cmd); } /* Assign iomem and ioport resources in descending order of size. */ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |