Module Name:    src
Committed By:   matt
Date:           Thu Sep 27 00:24:36 UTC 2012

Modified Files:
        src/sys/arch/arm/broadcom: bcm53xx_usb.c

Log Message:
Add vendor name.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/broadcom/bcm53xx_usb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/broadcom/bcm53xx_usb.c
diff -u src/sys/arch/arm/broadcom/bcm53xx_usb.c:1.1 src/sys/arch/arm/broadcom/bcm53xx_usb.c:1.2
--- src/sys/arch/arm/broadcom/bcm53xx_usb.c:1.1	Sat Sep  1 00:04:44 2012
+++ src/sys/arch/arm/broadcom/bcm53xx_usb.c	Thu Sep 27 00:24:36 2012
@@ -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 @@ __KERNEL_RCSID(1, "$NetBSD: bcm53xx_usb.
 #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 @@ ohci_bcmusb_attach(device_t parent, devi
 	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 @@ ehci_bcmusb_attach(device_t parent, devi
 		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");
 

Reply via email to