Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2008 12:31:51 -0500
From:      "George Locke" <george.locke.physics@gmail.com>
To:        aic7xxx@freebsd.org
Subject:   Re: basic - how to reset ?
Message-ID:  <bdf152150803040931v318b1e5bt232c40e90bff7ac2@mail.gmail.com>
In-Reply-To: <bdf152150803040850t52d893bdj5abf693cf69377b6@mail.gmail.com>
References:  <bdf152150803040850t52d893bdj5abf693cf69377b6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi again,

So i'm going through the aic7xxx header files and I find this routine:

ahc_reset <http://www.gelato.unsw.edu.au/lxr/ident?i=ahc_reset>(struct
ahc_softc <http://www.gelato.unsw.edu.au/lxr/ident?i=ahc_softc>; *ahc,
int reinit <http://www.gelato.unsw.edu.au/lxr/ident?i=reinit>)

(see
http://www.gelato.unsw.edu.au/lxr/source/drivers/scsi/aic7xxx/aic7xxx_core.c#L3992)

this routine seems to be the function i'm looking for, but it takes a
ahc_softc as an argument, which is a struct defined in aic7xxx.h (
http://www.gelato.unsw.edu.au/lxr/source/drivers/scsi/aic7xxx/aic7xxx.h#L915)

this struct is huge and contains about a gagillion data-members.  There has
to be some way that I can create one in some automated way, right?  or do i
have to fill in each blank myself?

thanks,
George

On Tue, Mar 4, 2008 at 11:50 AM, George Locke <
george.locke.physics@gmail.com> wrote:

> Hi,
>
> I'm trying to track down a problem i'm having talking to this archaic
> hardware, and among the tasks is to make sure my scsi controller is
> working.  (the archaic hardware is a CAMAC crate, which in this case
> communicates to the computer on the scsi bus.)
>
> I'm running current fedora on a brand new dell tower, using an adaptec
> aha-2940u pci card.
>
> I would be happy to hear RTFM replies if they are accompanied by a link to
> the manual!  haven't found a basic resource explaining the aic7xxx routines,
> etc.
>
> So all i want to do is write a little C++ (or other) program that i can
> run to just reset the scsi bus to see if the driver is working properly.
>
> thanks!
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bdf152150803040931v318b1e5bt232c40e90bff7ac2>