svn commit: r211254 - projects/ofed/head/sys/ofed/include/linux
Jeff Roberson
jeff at FreeBSD.org
Fri Aug 13 03:04:01 UTC 2010
Author: jeff
Date: Fri Aug 13 03:04:00 2010
New Revision: 211254
URL: http://svn.freebsd.org/changeset/base/211254
Log:
- Correct the value of 'device' and add 'vendor' to the pci_dev structure.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/linux/pci.h
Modified: projects/ofed/head/sys/ofed/include/linux/pci.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/pci.h Fri Aug 13 03:03:36 2010 (r211253)
+++ projects/ofed/head/sys/ofed/include/linux/pci.h Fri Aug 13 03:04:00 2010 (r211254)
@@ -108,6 +108,7 @@ struct pci_dev {
struct pci_driver *pdrv;
uint64_t dma_mask;
uint16_t device;
+ uint16_t vendor;
unsigned int irq;
};
@@ -377,7 +378,8 @@ linux_pci_attach(device_t dev)
pdev = device_get_softc(dev);
pdev->dev.parent = &linux_rootdev;
pdev->dev.bsddev = dev;
- pdev->device = device_get_unit(dev);
+ pdev->device = id->device;
+ pdev->vendor = id->vendor;
pdev->dev.dma_mask = &pdev->dma_mask;
pdev->pdrv = pdrv;
kobject_init(&pdev->dev.kobj, &dev_ktype);
More information about the svn-src-projects
mailing list