Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!csn!copper!aspen.craycos.com!scott From: scott@craycos.com (Scott Bolte) Newsgroups: comp.os.386bsd.questions Subject: Re: What's "FreeBSD"? and will it support UltraStor 34F Message-ID: <1993Jul30.200708.14747@craycos.com> Date: 30 Jul 93 20:07:08 GMT References: <22v442$57h@pdq.coe.montana.edu> <LadVsA2OBh107h@hansford.com> <MHW.93Jul28172818@barney.cs.brown.edu> Organization: Cray Computer Corporation Lines: 56 In article <MHW.93Jul28172818@barney.cs.brown.edu> mhw@cs.brown.edu (Mark Weaver) writes: ... >I made the necessary mods to the UltraStor 14F driver and have been running >it reliably for a few months now with NetBSD 0.8. I would be happy to >supply the source code modifications to anyone who wants them. Alison Schary (aqs@paxvax.EE.CORNELL.EDU) and I worked out a minimal mod to ultra14.c. The patch included below has been blessed by Julian and passed on (I hope) to the assorted *BSD* camps. As you can see it boiled down to being more patient on board timeout. In my experience the extra time was needed only on the first access. This has been tested with both disk (me) and tape (Alison) devices. Scott *** /tmp/,RCSt1000117 Wed Jun 2 18:11:54 1993 --- ultra14f.c Wed Jun 2 18:06:44 1993 *************** *** 23,28 **** --- 23,29 ---- * * 16 Feb 93 Julian Elischer ADDED for SCSI system * commenced: Sun Sep 27 18:14:01 PDT 1992 + * slight mod to make work with 34F as well: Wed Jun 2 18:05:48 WST 1993 */ #include <sys/types.h> *************** *** 319,325 **** ,struct mscp *mscp) { int port = uha_data[unit].baseport; ! int spincount = FUDGE(delaycount) * 1; /* 1ms should be enough */ int s = splbio(); while( ((inb(port + UHA_LINT) & (UHA_LDIP)) --- 320,326 ---- ,struct mscp *mscp) { int port = uha_data[unit].baseport; ! int spincount = FUDGE(delaycount) * 1000; /* 1s should be enough */ int s = splbio(); while( ((inb(port + UHA_LINT) & (UHA_LDIP)) -- ___________________________________________________________________________ Scott Bolte scott@craycos.com +1 719 540 4186 Cray Computer Corporation, 1110 Bayfield Drive, Colorado Springs, CO 80906 As anyone here will tell you: I speak for myself. *** On the Internet no one can hear you scream ***