Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/broadcom Add vendor name.



details:   https://anonhg.NetBSD.org/src/rev/605d606fe746
branches:  trunk
changeset: 781736:605d606fe746
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Sep 27 00:24:36 2012 +0000

description:
Add vendor name.

diffstat:

 sys/arch/arm/broadcom/bcm53xx_usb.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r a4ab8f9eab7c -r 605d606fe746 sys/arch/arm/broadcom/bcm53xx_usb.c
--- a/sys/arch/arm/broadcom/bcm53xx_usb.c       Thu Sep 27 00:23:52 2012 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_usb.c       Thu Sep 27 00:24:36 2012 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_usb.c,v 1.1 2012/09/01 00:04:44 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_usb.c,v 1.2 2012/09/27 00:24:36 matt Exp $");
 
 #include <sys/bus.h>
 #include <sys/device.h>
@@ -52,6 +52,8 @@
 #include <dev/usb/ehcireg.h>
 #include <dev/usb/ehcivar.h>
 
+#include <dev/pci/pcidevs.h>
+
 struct bcmusb_softc {
        device_t usbsc_dev;
        bus_dma_tag_t usbsc_dmat;
@@ -112,6 +114,9 @@
        sc->sc_bus.dmatag = usbaa->usbaa_dmat;
        sc->sc_bus.hci_private = sc;
 
+       sc->sc_id_vendor = PCI_VENDOR_BROADCOM;
+       strlcpy(sc->sc_vendor, "Broadcom", sizeof(sc->sc_vendor));
+
        aprint_naive(": OHCI USB controller\n");
        aprint_normal(": OHCI USB controller\n");
 
@@ -168,6 +173,9 @@
                sc->sc_comps[sc->sc_ncomp++] = usbsc->usbsc_ohci_dev;
        }
 
+       sc->sc_id_vendor = PCI_VENDOR_BROADCOM;
+       strlcpy(sc->sc_vendor, "Broadcom", sizeof(sc->sc_vendor));
+
        aprint_naive(": EHCI USB controller\n");
        aprint_normal(": ECHI USB controller\n");
 



Home | Main Index | Thread Index | Old Index