The following utilities a have been designed to run on the AHA-154x/1640 Adaptec SCSI Host adapters. All files, except where noted, are compressed using 16 bit compression. These programs are being provided free and most of them were written by an individual(me). If you have some suggestions, then E-mail them to neese@adaptex. If you call our factory and ask questions about these, you will get a big, "I don't know what you are talking about!" If you use these programs for anything other than your own use, then give credit where credit is due (Roy Neese). Any time a file changes, I will put a date in the appropriate section. The updated files will show themselves as follows: ~/GETDEVS.EXE.Z UD 10/12/1989 So if you keep the old list you can tell which files have been updated from the last time you requested them. To get any of the files, use: uucp adaptex!~/file /usr/spool/uucppublic/file or uucp adaptex!/usr/spool/uucppublic/scsiutil/file /usr/spool/uucppublic/file ------------------------------------------------------------------------------- This is a quickie utility that displays all of the targets and luns on the SCSI bus. No command line options, just run it. A good way to find out if your SCSI device honors the right target/lun combinations. ~/GETDEVS.EXE.Z Size: 11013 Oct 11 09:12 GETDEVS.EXE.Z UD 1/25/1990 Size: 11190 Jan 25 16:57 GETDEVS.EXE.Z - More robust and now works on fast 386 and 486 machines. ------------------------------------------------------------------------------- The following utilities will operate on any hard drive that is INT13H BIOS compatible. These three utilities were written out of complete frustration. They will display information graphically, thus requiring at least a CGA Monitor. They all have the same command line options. (Nothing fancy here) For instance, gread 1 2000 gread 1500 gread 0 3000 gread 2 gread 2 4000 The above examples are all valid. If the first argument is a single digit it can be: 0 - test drive zero only 1 - test drive one only 2 - test both drives The larger number, tells the program the range for the transfer rate in KB. Defaults are [test drive zero][1000] None of the programs will destroy data, including gwrite. GRDRIVE does both reading and writing for one drive only and thus will only accept 0 or 1 for single digit arguments. GREAD/GWRITE does read /write tests for one or both drives. All of the programs go through the BIOS and will run on any hard drive. At the end of the run the program silently waits for you enter data concerning the configuration and then pressing will exit. If you have your favorite graphics screen dump program loaded, then you can print the results to a printer. WARNING: GRDRIVE and GWRITE read and write data during the test. If you reset your computer to exit these programs, you could blow your boot track. To safely exit while these are running press . DO NOT press . The programs will exit when it is safe to do so. ~/GRDRIVE.EXE.Z Size: 26244 Oct 11 09:12 GRDRIVE.EXE.Z ~/GREAD.EXE.Z Size: 26533 Oct 11 09:13 GREAD.EXE.Z ~/GWRITE.EXE.Z Size: 26591 Oct 11 09:13 GWRITE.EXE.Z ------------------------------------------------------------------------------- This a diagnostic for the AHA-154x/1640 and devices attached to these host adapters. It is menu driven and will destroy data without much warning. But can be very useful for tracking down problems. ~/SCSI.EXE.Z V6.0 Size: 37507 Oct 11 09:12 SCSI.EXE.Z UD 12/08/1989 V6.1 Size: 37466 Dec 18 09:05 SCSI.EXE.Z - Corrects program to work on machines faster than 20Mhz. UD 1/25/1989 V6.2 Size: 38707 Jan 25 16:57 SCSI.EXE.Z - More robust cleanup after itself. Now tested to work on 33 Mhz 386 and 486 machines. UD 6/12/1990 V6.3 Size: 39024 Jun 12 09:14 SCSI.EXE.Z - Removed checks for some tape firmware levels - Added disclaimer banner UD 6/15/1990 V6.4 Size: 39099 Jun 15 10:06 SCSI.EXE.Z - Fixed a bug in the read defect list that caused data overflows UD 7/25/1990 V6.5 Size: 43042 Jul 25 16:50 SCSI.EXE.Z - Added a disclaimer - Now works with the AHA-1640 MCA SCSI adapter - Added all SCSI-2 request sense messages - Request sense errors are now reported based on the sense key, error code, and qualifier. ------------------------------------------------------------------------------- A program to help understand those nasty, cryptic error codes reported by SCSI adapters and drivers. ~/SCSICODE.EXE.Z 1/17/92 V1.0 Size: 13212 Jan 17 10:55 SCSICODE.EXE.Z ------------------------------------------------------------------------------- This is a program that gives you access to the mode sense pages of a SCSI device. Although MS-DOS based, can be helpful in all operating environments, as programming the SCSI device is completely transparent to the operating system. It is menu driven, and after choosing a selection from the main menu you may press '?' for further help and/or an explanation of what you are about to do. This program has knowledge of the following drives, but can be used with virtually any SCSI device (I think??). Micropolis 137x CDC/Imprimis Wren III, IV, V, VI, VII (SCSI-1 and SCSI-2) 94181/94241/94601 Seagate ST 1400/1401/1480/2383/2502/4385/4702/4767/41200/41650 Quantum Q250, Q280, Pro 52/105/120/170/210/240/330/425/450/1050 GO 40/80/60/120 Conner CP-340, CP-3100, CP-3200 Maxtor XT-4xxxS, XT-8xxxS, LXT-10xS, LXT20xS Fujitsu M 2261/2262/2263/2611/2612/2613/2614/2622/2623/2624 The scsicntl.doc.Z is a troff user manual for the program. ~/SCSICNTL.EXE.Z V4.4 Size: 49087 Oct 11 09:12 SCSICNTL.EXE.Z UD 12/08/1989 V4.5 Size: 49104 Dec 12 08:44 SCSICNTL.EXE.Z - Corrects program to work on machines faster than 20Mhz. UD 1/22/90 V4.6 Size: 49070 Jan 22 08:54 SCSICNTL.EXE.Z - Adds support for the CDC Wren VII drive. UD 1/25/90 V4.8 Size: 50246 Jan 25 16:57 SCSICNTL.EXE.Z - Corrected the support for the Wren VII drive. They changed the name in the inquiry data to IMPRIMIS. More robust cleanup routine and general improvements to allow fast 386 and 486 machines to work. Option 11 to get the adapter configuration returns more data than ever. UD 6/13/90 V4.9 Size: 50240 Jun 13 14:36 SCSICNTL.EXE.Z - Added support for the Wren VI half height drives - Made an attempt to support the (yuck) Maxtor XT-3xxx series - THIS VERSION IS BUSTED UD 6/14/90 V5.0 Size: 50229 Jun 14 12:21 SCSICNTL.EXE.Z - Corrected what I broke. UD 6/15/90 V5.1 Size: 50298 Jun 15 10:06 SCSICNTL.EXE.Z - Fixed a bug in the read defect list that caused data overflows - Increased stack size UD 7/25/90 V5.2 Size: 54783 Jul 25 16:49 SCSICNTL.EXE.Z - Added a disclaimer - Now works with the AHA-1640 MCA SCSI adapter - Added all (and I mean all) SCSI-2 request sense messages - Select devices now shows whether a dev is removable or fixed, SCSI-0, SCSI-1, or SCSI-2, SCSI style descriptions of the type of device. - Request sense errors are now reported based on the sense key, error code, and qualifier. UD 9/10/90 V5.3 Size: 54806 Sep 10 09:08 SCSICNTL.EXE.Z - General cleanup of the code. UD 6/14/91 V5.8 Size: 76921 Apr 19 19:05 SCSICNTL.EXE.Z - Now large model - Added preliminary support for the AHA-1522 and AIC-6260 - Added support for the Quantum LP Series - Added AHA-1740 Identifier - No ASPI Support (yet) - Enhanced the error reporting UD 9/10/91 V5.9 Size: 76539 Sep 10 09:43 SCSICNTL.EXE.Z - Corrected a display bug in the Disk geometry page UD 1/13/92 V6.0 Size: 76937 Jan 13 11:22 SCSICNTL.EXE.Z - allows more programming options for unknown device types. You will probably need the SCSI guide for the device you are trying to program. - fixed some minor annoyances. UD 1/22/92 V6.1 Size: 76933 Jan 22 10:47 SCSICNTL.EXE.Z - fixed a major bug that broke version 6.0. Somehow got an old source module linked in with the new stuff. UD 3/5/92 V6.3 Size: 81151 Mar 05 09:16 SCSICNTL.EXE.Z - added support for SCSI-2 devices - added support for more drives UD 3/26/92 V6.4C Size: 87651 Mar 26 11:41 SCSICNTL.EXE.Z - added support to allow the program to talk to adapters other than those at 0x330 base port and DMA channel 5. - added general support for SCSI-2 devices - added the Change Definition command to the list of options - added support for a whole bunch of drives (Quantum/Seagate/Fujitsu) - dropped support for the Maxtor XT-3xxxS series UD 4/24/92 V6.4F Size: 87641 Apr 24 08:24 SCSICNTL.EXE.Z - fixed the AHA-1640 (MC) support,....(I think??) - fixed a bug in the cache control screen for the Seagate SCSI-2 drives UD 5/21/92 V6.4G Size: 88109 May 21 09:34 SCSICNTL.EXE.Z - fixed a bug in the AHA-1522 support which pointed to a null command - added more generic support to the disconnect page for unknown devices. UD 6/12/92 V6.4H Size: 88675 Jun 12 16:44 SCSICNTL.EXE.Z - added support for more Fujitsu hard drives. UD 11/24/92 V6.4I Size: 88821 Nov 24 10:21 SCSICNTL.EXE.Z - fixed a couple of minor screen bugs in the error recovery page UD 2/24/93 V6.4I Size: 85270 Feb 24 12:01 SCSICNTL.EXE.Z NOTE: This files uses 15 bit compression ------------------------------------------------------------------------------- This is a troff document for the SCSICNTL.EXE file. ~/scsicntl.doc.Z Size: 12116 Nov 4 09:37 scsicntl.doc.Z UD 1/25/1990 Size: 12594 Jan 25 16:50 scsicntl.doc.Z - Added a line to generate a table of contents and also some other additions to cover the 4.8 version of SCSICNTL. UD 2/2/1990 Size: 12725 Feb 2 11:30 scsicntl.doc.Z - Minor corrections to the english UD 4/24/1992 Size: 13723 Apr 24 08:33 scsicntl.doc.Z - Updated to show the options available to SCSICNTL.EXE V6.4F. ------------------------------------------------------------------------------- ~/scsiasc.doc.Z Size: 14083 Jun 12 09:01 scsiasc.doc.Z - ASCII version of scsicntl.doc.Z; for those who do not have troff capability ------------------------------------------------------------------------------- This is a driver for MS-DOS that will allow Windows 386 and Desqview 386 to run with the 154x/1640 host adapters. The only command line option is for setting the buffer size that the drive will use for hard disks transfers. It MUST be the first entry in the config.sys file. device=SCSIHA.SYS /b:[16 or 32] ~/SCSIHA.SYS.Z Size: 1160 Oct 11 09:22 SCSIHA.SYS.Z ------------------------------------------------------------------------------- This program is meant to be used in a MS-DOS environment in the AUTOEXEC.BAT file. It is only needed for the AHA-154[02][A] host adapters. It has the options: -t:5, 6, 8, 10 This sets the DMA transfer rate of the host adapter. The number indicates the DMA transfer rate in MBytes/sec. *** WARNING **** Not all systems can run as fast as the host adapter is capable. In fact, I don't know of a system that will run at 10MBytes/sec. **************** -f:2-15 This sets the bus-off time of the host adapter. -n:2-15 This sets the bus on time for the adapter. Caution: You can starve memory refresh if you set the host adapter at 15. If your system has static rams only, then this is okay, as static rams do not need refresh. Running this program without any options will cause the program to reset the defaults for the host adapter. ~/SETSCSI.EXE.Z Size: 7633 Oct 11 09:24 SETSCSI.EXE.Z ------------------------------------------------------------------------------- Additional ascii doc on the usage of SETSCSI.EXE ~/setscsi.doc.Z Size: 625 Feb 16 12:49 setscsi.doc.Z ------------------------------------------------------------------------------- This is the ADF file for the AHA-1640 MCA SCSI Host Adapter ~/@0F1F.ADF.Z Size: 1732 Oct 11 09:22 @0F1F.ADF.Z ------------------------------------------------------------------------------- This is a little routine that will get all of the inquiry information from a SCSI device connected to the AHA-1542. It runs under SCO XENIX-386 2.3GT and SCO XENIX/386 2.3.4GT. It's default device is the root device (rhd00), but will accept another device for an argument (i.e. rhd10, rct0). You must be root for this routine to run. ~/inq.Z V1.0 Size: 8658 Dec 19 16:24 inq.Z UD 9/10/90 V1.1 Size: 9983 Sep 10 13:27 inq.Z - Added code to print out everything that the inquiry data can provide as per the SCSI-2 specification. ------------------------------------------------------------------------------- This is an ascii version of the AHA-154xA User's manaul. It does have some control codes imbedded in it so that pictures can be displayed on the console. ~/1540USR.MAN.Z Size: 92083 Jan 26 17:08 1540USR.MAN.Z ------------------------------------------------------------------------------- This file will always contain the latest version of the 1542B BIOS and firmware. These are binary images of the ROMS only! Use of these ROMS on any other version of the 1540 family *will* cause problems. NOTE: If your adapter was installed by the OEM you purchased the system from, it would be wiser to get the updates through them as they may have had a special made for the them and using these generic BIOS/firmware codes could cause problems. ~/1542B.roms UD 1/13/92 Size: 46204 Sep 12 10:33 1542B.roms ------------------------------------------------------------------------------- A list of patches to allow a user to tune the SCSI driver. ~/sco.patches.Z Size: 2825 Jan 29 09:18 sco.patches.Z UD 2/5/1990 Size: 3191 Feb 5 16:09 sco.patches.Z - Added some more comments on bus on/off times. ------------------------------------------------------------------------------- A list of Adaptex tested CPU's and the 154x adapter. Not updated. ~/1540CPU.LIST.Z Size: 1158 Jan 30 08:27 1540CPU.LIST.Z ------------------------------------------------------------------------------- A list of drives that have been tested with the 154x adapter. Not updated. ~/1540DRV.LIST.Z Size: 1304 Jan 30 08:30 1540DRV.LIST.Z ------------------------------------------------------------------------------- A troff file containing a one page description of all SDS options available from Adaptec. You will need to print this out in landscape mode, if you are using a laser printer. Not updated. ~/sds3.desc.Z Size: 1046 Jan 31 13:26 sds3.desc.Z ------------------------------------------------------------------------------- This is a direct replacement driver for the AHA-154x family of host adapters running under SCO XENIX/386 2.3.2GT and SCO XENIX/386 2.3.4. I continue to update and fix things and add support for more SCSI devices. The file is a uuencoded/compressed/tar file. After uudecoding, uncompressing, and un-taring the file (NOTE: It untars to the relative ./tmp directory), tar the results to a floppy and install the driver using /etc/install. ~/xnx_scsi_drv.Z Size: 64789 Sep 10 09:25 xnx_scsi_drv.Z ~/scsi_drv.Z Size: 68721 May 28 09:54 scsi_drv.Z ~/scsi_drv.Z Size: 76265 Aug 29 11:51 scsi_drv.Z - 2.3.4 support added UD 1/13/92 v2.0 Size: 72205 Jan 13 10:13 scsi_drv.Z - better tape/DAT support added. - improved read scatter/gather to increase hit ratios. - interrupt handling reduced. - ccb search/find/release code overhead reduced. - device open code drastically improved to better handle various devices and be more forgiving. - error reporting on reads/writes improved to show the actual block that may have caused the error in the multi-block commands as opposed to just showing the block where the I/O started. UD 2/11/92 v2.1 Size: 72219 Feb 11 09:47 scsi_drv.Z - corrected a bug in the DMA initialization code. (Thanks Per) - calls dma_alloc to reserve the DMA channel the adapter will use. UD 2/24/93 v2.2 Size: 70801 Feb 24 08:22 scsi_drv.Z NOTE: the file has been compressed using 15 bit compression. - move some common routines to assembler to speed things up - reduced the number of arguments being passed around in function calls to help speed things up ------------------------------------------------------------------------------- This file contains my current SCO XENIX driver and current AHA-1542B roms. ~/update.pkg.Z Size: 120303 Feb 11 09:53 update.pkg.Z UD 2/24/93 Size: 118183 Feb 24 08:40 update.pkg.Z NOTE: 15 bit compression was used to create this file - now contains the v2.2 SCO XENIX driver ------------------------------------------------------------------------------- This file contains the current firmware for the AHA-1740, standard mode, enhanced mode, and the program to download the code. This is only for the AHA-1740. The AHA-1742A does not have download capability. ~/1740mcode.Z Size: 217247 Jan 17 08:37 1740mcode.Z UD 2/24/93 Size: 216093 Feb 24 11:58 1740mcode.Z NOTE: This file is a 14 bit compressed file. ------------------------------------------------------------------------------- This file contains the latest 1740/1740A/1742A ROM BIOS image. The current version is checksum 8800. ~/1740bios.Z Size: 7474 Feb 26 10:04 1740bios.Z ------------------------------------------------------------------------------- Binary ROM image for the AHA-154xB adapter BIOS, which uses 0x334 as the base port. ~/154XP334.ZIP Size: 6959 Apr 20 09:30 154XP334.ZIP ------------------------------------------------------------------------------- Disk image of the USL UNIX System 5 Release 4.2 enhanced mode driver for the AHA-174x SCSI host adapter. A README is included in the tar file. Sorry, it won't compress any smaller. ~/adse.tar V1.4 Size: 372224 Dec 11 12:05 adse.tar ------------------------------------------------------------------------------- This file contains all the latest OS/2 2.0 drviers and utilities provided by Adaptec. os2drv.zip Size: 99545 Feb 24 15:03 os2drv.zip -------------------------------------------------------------------------------