From owner-aic7xxx@FreeBSD.ORG Tue Mar 4 17:16:57 2008 Return-Path: Delivered-To: aic7xxx@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88668106566C for ; Tue, 4 Mar 2008 17:16:57 +0000 (UTC) (envelope-from george.locke.physics@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id EA05A8FC20 for ; Tue, 4 Mar 2008 17:16:56 +0000 (UTC) (envelope-from george.locke.physics@gmail.com) Received: by wr-out-0506.google.com with SMTP id c49so874983wra.19 for ; Tue, 04 Mar 2008 09:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=/fWoIQDuRS6K76s2wpR8qKjvobnVATajnccg5UjhQPM=; b=sLmbqlCaGxPJEBQtoMnNbsKSePkBnSKZoRt60hAQJ6WXd+KxnYJa/0QU4S4+aBTOVZ8rUiWcgnFM0Dau9NC7X3gblEuPP+oZAaaQo+K2u91ou3yl8nT3pd7I+3lt69dSu6Sd3eDDf2oyMyoHQgQLqixNFEjgL0VuEAZTPu3yBkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=dZvlyEOrmRFfpn17o58kmkNE8gMdDsv+8Ncx71a2nBcPxwzUK6+n7r5UyGZFUeLvFO4mqR3qydCZKZkJovh/uwaINFqknHRzd1gGXpsambS8hFz4F4o1210iqxXrp6TvZHbV5lb1c9YGRRELSIF4/rdHTAfet/r0gMJ3fiyWxzc= Received: by 10.141.171.6 with SMTP id y6mr761447rvo.84.1204649411687; Tue, 04 Mar 2008 08:50:11 -0800 (PST) Received: by 10.140.192.3 with HTTP; Tue, 4 Mar 2008 08:50:11 -0800 (PST) Message-ID: Date: Tue, 4 Mar 2008 11:50:11 -0500 From: "George Locke" To: aic7xxx@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: basic - how to reset ? X-BeenThere: aic7xxx@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Adaptec Device Drivers in FreeBSD and Linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 17:16:57 -0000 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! From owner-aic7xxx@FreeBSD.ORG Tue Mar 4 17:31:52 2008 Return-Path: Delivered-To: aic7xxx@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA737106566C for ; Tue, 4 Mar 2008 17:31:52 +0000 (UTC) (envelope-from george.locke.physics@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by mx1.freebsd.org (Postfix) with ESMTP id 7ACF38FC12 for ; Tue, 4 Mar 2008 17:31:52 +0000 (UTC) (envelope-from george.locke.physics@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so649501rvb.43 for ; Tue, 04 Mar 2008 09:31:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ob/nm9d5qsbSho+cizZU/ZI09OJX1Ar39bwfA3Zmekg=; b=DYBaT6UEhODnsWB50HSGkmsYBP7c3GvCJZkJq5HKT6KoYwXFg/sB//FOyxRPHyTvAanxxrz6Q4PPm3/+QImLuuplgJXBh0paePFSZ9KNFSBi4Fm8rQit7Q5TYbDaNU3A3N62z53YdbZr4d6YVVoiEYIkY0XAfuGzVpjbUn96d/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=m0cqEG7Lb4jqcEZwlCgqTAPilknIj7fdh9N5n436d13oiONfdyxcOA1sCSuwRxjnRS0kPtlirVhwJi7s1sgcIt9tVHHtM/OJqS88U7qPEOUs1drC37SLW9oahzD4OPa+P1lBMWErORaO5a9PBpolZYJByEdf5MqnHbIE71q4J+Q= Received: by 10.141.169.9 with SMTP id w9mr771604rvo.241.1204651911313; Tue, 04 Mar 2008 09:31:51 -0800 (PST) Received: by 10.140.192.3 with HTTP; Tue, 4 Mar 2008 09:31:51 -0800 (PST) Message-ID: Date: Tue, 4 Mar 2008 12:31:51 -0500 From: "George Locke" To: aic7xxx@freebsd.org In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: basic - how to reset ? X-BeenThere: aic7xxx@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Adaptec Device Drivers in FreeBSD and Linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 17:31:52 -0000 Hi again, So i'm going through the aic7xxx header files and I find this routine: ahc_reset (struct ahc_softc *ahc, int 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! >