# HG changeset patch
# User Steven Smith <ssmith@xxxxxxxxxxxxx>
# Node ID f872300b672fa395dc6539ac3bf72d0e4eefe96c
# Parent 69e52712fbc460c4f417d418b2f47b8bbf8b5810
[HVM] Use the right, PCI SIG assigned, vendor ID for xensource rather than
just making one up.
Signed-off-by: Steven Smith <sos22@xxxxxxxxx>
---
tools/ioemu/hw/xen_platform.c | 6 +++---
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c | 6 ++++--
2 files changed, 7 insertions(+), 5 deletions(-)
diff -r 69e52712fbc4 -r f872300b672f tools/ioemu/hw/xen_platform.c
--- a/tools/ioemu/hw/xen_platform.c Thu Sep 21 10:47:05 2006 +0100
+++ b/tools/ioemu/hw/xen_platform.c Thu Sep 21 11:15:13 2006 +0100
@@ -116,10 +116,10 @@ void pci_xen_platform_init(PCIBus *bus)
d = pci_register_device(bus, "xen-platform", sizeof(PCIDevice), -1, NULL,
NULL);
pch = (struct pci_config_header *)d->config;
- pch->vendor_id = 0xfffd;
- pch->device_id = 0x0101;
+ pch->vendor_id = 0x5853;
+ pch->device_id = 0x0001;
pch->command = 3; /* IO and memory access */
- pch->revision = 0;
+ pch->revision = 1;
pch->api = 0;
pch->subclass = 0x80; /* Other */
pch->class = 0xff; /* Unclassified device class */
diff -r 69e52712fbc4 -r f872300b672f
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c Thu Sep 21
10:47:05 2006 +0100
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c Thu Sep 21
11:15:13 2006 +0100
@@ -231,11 +231,13 @@ static int __devinit platform_pci_init(s
return ret;
}
-#define XEN_PLATFORM_VENDOR_ID 0xfffd
-#define XEN_PLATFORM_DEVICE_ID 0x0101
+#define XEN_PLATFORM_VENDOR_ID 0x5853
+#define XEN_PLATFORM_DEVICE_ID 0x0001
static struct pci_device_id platform_pci_tbl[] __devinitdata = {
{XEN_PLATFORM_VENDOR_ID, XEN_PLATFORM_DEVICE_ID,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ /* Continue to recognise the old ID for now */
+ {0xfffd, 0x0101, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{0,}
};
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|