[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adaptec 2940UWPro SCSI HBA
- To: misc@openbsd.org
- Subject: Adaptec 2940UWPro SCSI HBA
- From: Oscar Sznajder <os@atina.ar>
- Date: Mon, 06 Sep 1999 13:58:37 -0300
- Organization: NIC-ARGENTINA
Hello,
Some months ago I started using an Adaptec AHA2940UWPro adapter at home,
with OpenBDSD 2.4 at the time. I've been using it with 2.5, up to
-current without
problems. I would like to see it integrated to the HW the OS supports.
The adapter is an intermediate product between the AHA2940UW and the
AHA2944UW. It was originally not recognized by OpenBSD. Its identifier
code lacks
from sys/dev/pci/pcidevs.
The simple modifications I've made to some files under that directory
(ahc_pci.c & pcidevs) in order to get the adapter configured and useable
under OpenBSD
after kernel & floppies recompilation follow (diff -c against the
current versions in the CVS repository):
pcidevs:
Index: src/sys/dev/pci/pcidevs
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.177
diff -c -r1.177 pcidevs
*** pcidevs 1999/09/02 07:14:30 1.177
--- pcidevs 1999/09/06 19:39:30
***************
*** 627,632 ****
--- 627,633 ----
product ADP 3940U 0x8278 AHA-3940U
product ADP 398XU 0x8378 AHA-398XU
product ADP 2944U 0x8478 AHA-2944U
+ product ADP 2940UWPro 0x8778 AHA-2940UWPro
product ADP2 2940U2 0x0010 AHA-2940U2
product ADP2 7890 0x001f AIC-7890/1
ahc_pci.c:
Index: src/sys/dev/pci/ahc_pci.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/ahc_pci.c,v
retrieving revision 1.10
diff -c -r1.10 ahc_pci.c
*** ahc_pci.c 1999/08/27 23:29:52 1.10
--- ahc_pci.c 1999/09/06 19:39:33
***************
*** 101,106 ****
--- 101,107 ----
#define PCI_DEVICE_ID_ADAPTEC_AIC7860 0x60789004ul
#define PCI_DEVICE_ID_ADAPTEC_AIC7855 0x55789004ul
#define PCI_DEVICE_ID_ADAPTEC_AIC7850 0x50789004ul
+ #define PCI_DEVICE_ID_ADAPTEC_2940UWPro 0x87789004ul
#define DEVCONFIG 0x40
#define MPORTMODE 0x00000400ul /* aic7870 only
*/
***************
*** 246,251 ****
--- 247,255 ----
case PCI_DEVICE_ID_ADAPTEC_AIC7850:
return ("Adaptec aic7850 SCSI host adapter");
break;
+ case PCI_DEVICE_ID_ADAPTEC_2940UWPro:
+ return ("Adaptec 2940UW Pro Ultra SCSI host
adapter");
+ break;
default:
break;
}
***************
*** 283,288 ****
--- 287,293 ----
case PCI_DEVICE_ID_ADAPTEC_AIC7860:
case PCI_DEVICE_ID_ADAPTEC_AIC7855:
case PCI_DEVICE_ID_ADAPTEC_AIC7850:
+ case PCI_DEVICE_ID_ADAPTEC_2940UWPro:
return 1;
}
return 0;
***************
*** 356,361 ****
--- 361,367 ----
break;
case PCI_DEVICE_ID_ADAPTEC_2944U:
case PCI_DEVICE_ID_ADAPTEC_2940U:
+ case PCI_DEVICE_ID_ADAPTEC_2940UWPro:
ahc_t = AHC_294U;
break;
case PCI_DEVICE_ID_ADAPTEC_2944:
------------------------end of diff
output-------------------------------
-os