*BSD News Article 54780


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!news.nic.surfnet.nl!tuegate.tue.nl!news.iaehv.nl!news
From: Cees Lambrechtse <cees@iaehv.nl>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Adaptec Ultra
Date: Fri, 10 Nov 1995 16:51:37 -0800
Organization: Internet Access Eindhoven, the Netherlands
Lines: 38
Message-ID: <30A3F399.4404@iaehv.nl>
References: <309EBAA5.5B44@iaehv.nl>
NNTP-Posting-Host: pm3d24.iaehv.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b1 (Windows; I; 16bit)

Last week I inquired about a driver for an Adaptec AHA-2940
Ultra for FreeBSD 2.0.5R.  It turns out to be much simpler then
that.  All you have to do is apply the following patch:

(in /usr/src/sys/pci)
*** aic7870.c~	Fri Nov 10 16:33:06 1995
--- aic7870.c	Fri Nov 10 16:33:39 1995
***************
*** 35,40 ****
--- 35,41 ----
  #include <i386/scsi/aic7xxx.h>
  #define PCI_BASEADR0	PCI_MAP_REG_START
+ #define PCI_DEVICE_ID_ADAPTEC_2940U	0x81789004ul
  #define PCI_DEVICE_ID_ADAPTEC_2940	0x71789004ul
  #define PCI_DEVICE_ID_ADAPTEC_AIC7870	0x70789004ul
  #define PCI_DEVICE_ID_ADAPTEC_AIC7850	0x70759004ul
***************
*** 58,63 ****
--- 59,67 ----
  aic7870_probe (pcici_t tag, pcidi_t type)
  {
  	switch(type) {
+ 		case PCI_DEVICE_ID_ADAPTEC_2940U:
+ 			return ("Adaptec 294X Ultra SCSI host adapter");
+ 			break;
  		case PCI_DEVICE_ID_ADAPTEC_2940:
  			return ("Adaptec 294X SCSI host adapter");
  			break;
----------------------------------------------------------------

This works with my (non-Ultra) drive.  Thanks go to the
following people:

	Richard Crook <richard@sj.co.uk>
	Tom Samplonius <tom@uniserve.com>
	Bob Zahn <bzahn@delta.profile.net>

				Hans Zuidam