ia64/xen-unstable

changeset 11555:f872300b672f

[HVM] Use the right, PCI SIG assigned, vendor ID for xensource rather than
just making one up.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
author Steven Smith <ssmith@xensource.com>
date Thu Sep 21 11:15:13 2006 +0100 (2006-09-21)
parents 69e52712fbc4
children 4fab9c477f62
files tools/ioemu/hw/xen_platform.c unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
line diff
     1.1 --- a/tools/ioemu/hw/xen_platform.c	Thu Sep 21 10:47:05 2006 +0100
     1.2 +++ b/tools/ioemu/hw/xen_platform.c	Thu Sep 21 11:15:13 2006 +0100
     1.3 @@ -116,10 +116,10 @@ void pci_xen_platform_init(PCIBus *bus)
     1.4      d = pci_register_device(bus, "xen-platform", sizeof(PCIDevice), -1, NULL,
     1.5  			    NULL);
     1.6      pch = (struct pci_config_header *)d->config;
     1.7 -    pch->vendor_id = 0xfffd;
     1.8 -    pch->device_id = 0x0101;
     1.9 +    pch->vendor_id = 0x5853;
    1.10 +    pch->device_id = 0x0001;
    1.11      pch->command = 3; /* IO and memory access */
    1.12 -    pch->revision = 0;
    1.13 +    pch->revision = 1;
    1.14      pch->api = 0;
    1.15      pch->subclass = 0x80; /* Other */
    1.16      pch->class = 0xff; /* Unclassified device class */
     2.1 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c	Thu Sep 21 10:47:05 2006 +0100
     2.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c	Thu Sep 21 11:15:13 2006 +0100
     2.3 @@ -231,11 +231,13 @@ static int __devinit platform_pci_init(s
     2.4  	return ret;
     2.5  }
     2.6  
     2.7 -#define XEN_PLATFORM_VENDOR_ID 0xfffd
     2.8 -#define XEN_PLATFORM_DEVICE_ID 0x0101
     2.9 +#define XEN_PLATFORM_VENDOR_ID 0x5853
    2.10 +#define XEN_PLATFORM_DEVICE_ID 0x0001
    2.11  static struct pci_device_id platform_pci_tbl[] __devinitdata = {
    2.12  	{XEN_PLATFORM_VENDOR_ID, XEN_PLATFORM_DEVICE_ID,
    2.13  	 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
    2.14 +	/* Continue to recognise the old ID for now */
    2.15 +	{0xfffd, 0x0101, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
    2.16  	{0,}
    2.17  };
    2.18