From owner-freebsd-scsi Wed Apr 3 19:46: 7 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from bosvwl02.infy.com (bosvwl02.infy.com [216.52.49.36]) by hub.freebsd.org (Postfix) with SMTP id 76F7037B416 for ; Wed, 3 Apr 2002 19:46:04 -0800 (PST) Received: from 192.168.200.81 by bosvwl02.infy.com (InterScan E-Mail VirusWall NT); Wed, 03 Apr 2002 22:45:22 -0500 Received: from BLRKECIMR01.ad.infosys.com ([192.168.200.58]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 4 Apr 2002 09:15:26 +0530 Received: from kecmsg02.ad.infosys.com ([192.168.18.90]) by BLRKECIMR01.ad.infosys.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 4 Apr 2002 09:15:26 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: SCSI Callback function not getting called Date: Thu, 4 Apr 2002 09:15:25 +0530 Message-ID: <755FA95DB839D211856B0008C7287D930F3286DC@kecmsg02.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SCSI Callback function not getting called Thread-Index: AcHbJ99PsbNhXb9GRGWAen08gLsLqAAYxW4g From: "Yassar S" To: "Kenneth D. Merry" Cc: X-OriginalArrivalTime: 04 Apr 2002 03:45:26.0610 (UTC) FILETIME=[284C2320:01C1DB8B] Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm not writing a driver. I'm writing an application which uses the SIM calls like scsi_read_write etc. -Yassar. -----Original Message----- From: Kenneth D. Merry [mailto:ken@kdm.org] Sent: Wednesday, April 03, 2002 9:24 PM To: Yassar S Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: SCSI Callback function not getting called On Wed, Apr 03, 2002 at 16:00:24 +0530, Yassar S wrote: > Hi All, > =20 > What needs to be done for the callback function to get called=20 > after a SCSI operation through the SIM layer functions? >=20 > Is it not enough to provide the callback function pointer > to the scsi driver calls like scsi_read_write. If you're writing a driver, you need to call xpt_done() for the CCB once the transaction has completed. Look in src/sys/dev/aic7xxx/aic7xxx_freebsd.c for examples on how = command queueing and completion works in SIMs. Ken --=20 Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message