Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2012 18:22:04 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r232876 - in stable/9/sys/dev/usb: . net
Message-ID:  <201203121822.q2CIM4Yo078968@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Mar 12 18:22:04 2012
New Revision: 232876
URL: http://svn.freebsd.org/changeset/base/232876

Log:
  MFC r232257:
  Add support for the MCS7832.

Modified:
  stable/9/sys/dev/usb/net/if_mos.c
  stable/9/sys/dev/usb/net/if_mosreg.h
  stable/9/sys/dev/usb/usbdevs
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/usb/net/if_mos.c
==============================================================================
--- stable/9/sys/dev/usb/net/if_mos.c	Mon Mar 12 18:17:43 2012	(r232875)
+++ stable/9/sys/dev/usb/net/if_mos.c	Mon Mar 12 18:22:04 2012	(r232876)
@@ -82,7 +82,7 @@
 __FBSDID("$FreeBSD$");
 
 /*
- * Moschip MCS7730/MCS7830 USB to Ethernet controller
+ * Moschip MCS7730/MCS7830/MCS7832 USB to Ethernet controller
  * The datasheet is available at the following URL:
  * http://www.moschip.com/data/products/MCS7830/Data%20Sheet_7830.pdf
  */
@@ -149,6 +149,7 @@ SYSCTL_INT(_hw_usb_mos, OID_AUTO, debug,
 static const STRUCT_USB_HOST_ID mos_devs[] = {
 	{USB_VPI(USB_VENDOR_MOSCHIP, USB_PRODUCT_MOSCHIP_MCS7730, MCS7730)},
 	{USB_VPI(USB_VENDOR_MOSCHIP, USB_PRODUCT_MOSCHIP_MCS7830, MCS7830)},
+	{USB_VPI(USB_VENDOR_MOSCHIP, USB_PRODUCT_MOSCHIP_MCS7832, MCS7832)},
 	{USB_VPI(USB_VENDOR_SITECOMEU, USB_PRODUCT_SITECOMEU_LN030, MCS7830)},
 };
 
@@ -715,6 +716,8 @@ mos_attach(device_t dev)
 		MOS_DPRINTFN("model: MCS7730");
 	} else if (sc->mos_flags & MCS7830) {
 		MOS_DPRINTFN("model: MCS7830");
+	} else if (sc->mos_flags & MCS7832) {
+		MOS_DPRINTFN("model: MCS7832");
 	}
 	error = uether_ifattach(ue);
 	if (error) {

Modified: stable/9/sys/dev/usb/net/if_mosreg.h
==============================================================================
--- stable/9/sys/dev/usb/net/if_mosreg.h	Mon Mar 12 18:17:43 2012	(r232875)
+++ stable/9/sys/dev/usb/net/if_mosreg.h	Mon Mar 12 18:22:04 2012	(r232876)
@@ -152,6 +152,7 @@
 
 #define	MCS7730	0x0001
 #define	MCS7830	0x0002
+#define	MCS7832	0x0004
 
 #define	MOS_INC(x, y)           (x) = (x + 1) % y
 

Modified: stable/9/sys/dev/usb/usbdevs
==============================================================================
--- stable/9/sys/dev/usb/usbdevs	Mon Mar 12 18:17:43 2012	(r232875)
+++ stable/9/sys/dev/usb/usbdevs	Mon Mar 12 18:22:04 2012	(r232876)
@@ -2303,6 +2303,7 @@ product MOSCHIP MCS7703		0x7703	MCS7703 
 product MOSCHIP MCS7730		0x7730  MCS7730 Ethernet
 product MOSCHIP MCS7820		0x7820	MCS7820 Serial Port Adapter
 product MOSCHIP MCS7830		0x7830	MCS7830 Ethernet
+product MOSCHIP MCS7832		0x7832	MCS7832 Ethernet
 product MOSCHIP MCS7840		0x7840	MCS7840 Serial Port Adapter
 
 /* Motorola products */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203121822.q2CIM4Yo078968>