Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2011 21:55:11 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r228334 - user/sbruno/1394dev/firewire
Message-ID:  <201112072155.pB7LtBZg057487@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Wed Dec  7 21:55:11 2011
New Revision: 228334
URL: http://svn.freebsd.org/changeset/base/228334

Log:
  Add JMicron JMB381 to the supported list, even though its the most broken.
  
  I'd just like to know if that's the card I'm dealing with.

Modified:
  user/sbruno/1394dev/firewire/fwohci_pci.c
  user/sbruno/1394dev/firewire/fwohcireg.h

Modified: user/sbruno/1394dev/firewire/fwohci_pci.c
==============================================================================
--- user/sbruno/1394dev/firewire/fwohci_pci.c	Wed Dec  7 21:54:44 2011	(r228333)
+++ user/sbruno/1394dev/firewire/fwohci_pci.c	Wed Dec  7 21:55:11 2011	(r228334)
@@ -213,6 +213,10 @@ fwohci_pci_probe( device_t dev )
 		device_set_desc(dev, "Sun PCIO-2");
 		return BUS_PROBE_DEFAULT;
 	}
+	if (id == (FW_VENDORID_JMICRON | FW_DEVICE_JMB381)) {
+		device_set_desc(dev, "JMicron JMB381 1394a");
+		return BUS_PROBE_DEFAULT;
+	}
 #endif
 	if (pci_get_class(dev) == PCIC_SERIALBUS
 			&& pci_get_subclass(dev) == PCIS_SERIALBUS_FW

Modified: user/sbruno/1394dev/firewire/fwohcireg.h
==============================================================================
--- user/sbruno/1394dev/firewire/fwohcireg.h	Wed Dec  7 21:54:44 2011	(r228333)
+++ user/sbruno/1394dev/firewire/fwohcireg.h	Wed Dec  7 21:55:11 2011	(r228334)
@@ -48,6 +48,7 @@
 #define		FW_VENDORID_INTEL	0x8086
 #define		FW_VENDORID_ADAPTEC	0x9004
 #define		FW_VENDORID_SUN		0x108e
+#define		FW_VENDORID_JMICRON	0x197b
 
 #define		FW_DEVICE_CS4210	(0x000f << 16)
 #define		FW_DEVICE_UPD861	(0x0063 << 16)
@@ -78,6 +79,7 @@
 #define		FW_DEVICE_7007		(0x7007 << 16)
 #define		FW_DEVICE_82372FB	(0x7605 << 16)
 #define		FW_DEVICE_PCIO2FW	(0x1102 << 16)
+#define		FW_DEVICE_JMB381	(0x2380 << 16)
 
 #define PCI_INTERFACE_OHCI	0x10
 



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