Date: Fri, 13 Aug 2010 03:04:01 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r211254 - projects/ofed/head/sys/ofed/include/linux Message-ID: <201008130304.o7D341W8074150@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008130304.o7D341W8074150>