Add detection code for the Intel 82372FB IEEE 1394 OHCI controller.
authorJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Fri, 16 Jul 2004 09:42:50 +0000 (09:42 +0000)
committerJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Fri, 16 Jul 2004 09:42:50 +0000 (09:42 +0000)
sys/bus/firewire/fwohci_pci.c
sys/bus/firewire/fwohcireg.h

index bdb544c..79f8282 100644 (file)
@@ -32,7 +32,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  * 
  * $FreeBSD: src/sys/dev/firewire/fwohci_pci.c,v 1.38 2004/01/23 17:37:09 simokawa Exp $
- * $DragonFly: src/sys/bus/firewire/fwohci_pci.c,v 1.7 2004/07/16 09:10:50 asmodai Exp $
+ * $DragonFly: src/sys/bus/firewire/fwohci_pci.c,v 1.8 2004/07/16 09:42:50 asmodai Exp $
  */
 
 #define BOUNCE_BUFFER_TEST     0
@@ -185,6 +185,10 @@ fwohci_pci_probe( device_t dev )
                device_set_desc(dev, "Lucent FW322/323");
                return 0;
        }
+       if (id == (FW_VENDORID_INTEL | FW_DEVICE_82372FB)) {
+               device_set_desc(dev, "Intel 82372FB");
+               return 0;
+       }
 #endif
        if (pci_get_class(dev) == PCIC_SERIALBUS
                        && pci_get_subclass(dev) == PCIS_SERIALBUS_FW
index f5d3d8e..81b33ed 100644 (file)
@@ -32,7 +32,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  * 
  * $FreeBSD: src/sys/dev/firewire/fwohcireg.h,v 1.15 2004/01/06 14:24:01 simokawa Exp $
- * $DragonFly: src/sys/bus/firewire/fwohcireg.h,v 1.7 2004/07/16 09:10:50 asmodai Exp $
+ * $DragonFly: src/sys/bus/firewire/fwohcireg.h,v 1.8 2004/07/16 09:42:50 asmodai Exp $
  *
  */
 #define                PCI_CBMEM               0x10
@@ -44,6 +44,7 @@
 #define                FW_VENDORID_RICOH       0x1180
 #define                FW_VENDORID_APPLE       0x106b
 #define                FW_VENDORID_LUCENT      0x11c1
+#define                FW_VENDORID_INTEL       0x8086
 
 #define                FW_DEVICE_UPD861        (0x0063 << 16)
 #define                FW_DEVICE_UPD871        (0x00ce << 16)
@@ -68,6 +69,7 @@
 #define                FW_DEVICE_PANGEA        (0x0030 << 16)
 #define                FW_DEVICE_UNINORTH      (0x0031 << 16)
 #define                FW_DEVICE_FW322         (0x5811 << 16)
+#define                FW_DEVICE_82372FB       (0x7605 << 16)
 
 #define PCI_INTERFACE_OHCI     0x10