summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1995-07-04 21:21:33 +0000
committergibbs <gibbs@FreeBSD.org>1995-07-04 21:21:33 +0000
commitdde2724ff9cb8768e09dc322c3fdf7d3f10a53ed (patch)
treea87d5ba4fd5b42ecb47a4bdc28d95aee1146d827 /sys
parent1909eb5f65e761f15f815a60fc946ccd66931051 (diff)
downloadFreeBSD-src-dde2724ff9cb8768e09dc322c3fdf7d3f10a53ed.zip
FreeBSD-src-dde2724ff9cb8768e09dc322c3fdf7d3f10a53ed.tar.gz
Add PCI Id for the 3940 controller.
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/aic7870.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/pci/aic7870.c b/sys/pci/aic7870.c
index e0e4733..1e67740 100644
--- a/sys/pci/aic7870.c
+++ b/sys/pci/aic7870.c
@@ -19,7 +19,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: aic7870.c,v 1.10.2.2 1995/06/09 18:06:53 davidg Exp $
+ * $Id: aic7870.c,v 1.11 1995/06/11 19:31:48 rgrimes Exp $
*/
#include <pci.h>
@@ -35,6 +35,7 @@
#include <i386/scsi/aic7xxx.h>
#define PCI_BASEADR0 PCI_MAP_REG_START
+#define PCI_DEVICE_ID_ADAPTEC_3940 0x72789004ul
#define PCI_DEVICE_ID_ADAPTEC_2940 0x71789004ul
#define PCI_DEVICE_ID_ADAPTEC_AIC7870 0x70789004ul
#define PCI_DEVICE_ID_ADAPTEC_AIC7850 0x70759004ul
@@ -58,8 +59,11 @@ static char*
aic7870_probe (pcici_t tag, pcidi_t type)
{
switch(type) {
+ case PCI_DEVICE_ID_ADAPTEC_3940:
+ return ("Adaptec 3940 SCSI host adapter");
+ break;
case PCI_DEVICE_ID_ADAPTEC_2940:
- return ("Adaptec 294X SCSI host adapter");
+ return ("Adaptec 2940 SCSI host adapter");
break;
case PCI_DEVICE_ID_ADAPTEC_AIC7870:
return ("Adaptec aic7870 SCSI host adapter");
@@ -93,6 +97,9 @@ aic7870_attach(config_id, unit)
io_port -= 0xc01ul;
switch (pci_conf_read (config_id, PCI_ID_REG)) {
+ case PCI_DEVICE_ID_ADAPTEC_3940:
+ ahc_t = AHC_394;
+ break;
case PCI_DEVICE_ID_ADAPTEC_2940:
ahc_t = AHC_294;
break;
OpenPOWER on IntegriCloud