From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 22 17:56:01 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC7F7106566B; Thu, 22 Sep 2011 17:56:01 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from DB3EHSOBE003.bigfish.com (db3ehsobe003.messaging.microsoft.com [213.199.154.141]) by mx1.freebsd.org (Postfix) with ESMTP id 0D2A18FC12; Thu, 22 Sep 2011 17:56:00 +0000 (UTC) Received: from mail118-db3-R.bigfish.com (10.3.81.251) by DB3EHSOBE003.bigfish.com (10.3.84.23) with Microsoft SMTP Server id 14.1.225.22; Thu, 22 Sep 2011 17:55:56 +0000 Received: from mail118-db3 (localhost.localdomain [127.0.0.1]) by mail118-db3-R.bigfish.com (Postfix) with ESMTP id 862651B38466; Thu, 22 Sep 2011 17:55:56 +0000 (UTC) X-SpamScore: 1 X-BigFish: VPS1(zzc85fhzz1202hzz8275bh8275dhz2ei2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:198.70.193.64; KIP:(null); UIP:(null); IPVD:NLI; H:avexcashub1.qlogic.com; RD:avexcashub2.qlogic.com; EFVD:NLI X-FB-SS: 0,0, Received-SPF: neutral (mail118-db3: 198.70.193.64 is neither permitted nor denied by domain of qlogic.com) client-ip=198.70.193.64; envelope-from=david.somayajulu@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail118-db3 (localhost.localdomain [127.0.0.1]) by mail118-db3 (MessageSwitch) id 1316714127740340_16124; Thu, 22 Sep 2011 17:55:27 +0000 (UTC) Received: from DB3EHSMHS005.bigfish.com (unknown [10.3.81.254]) by mail118-db3.bigfish.com (Postfix) with ESMTP id A65D716B804F; Thu, 22 Sep 2011 17:55:27 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.64) by DB3EHSMHS005.bigfish.com (10.3.87.105) with Microsoft SMTP Server (TLS) id 14.1.225.22; Thu, 22 Sep 2011 17:55:26 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub2.qlogic.org ([::1]) with mapi; Thu, 22 Sep 2011 10:55:24 -0700 From: David Somayajulu To: "freebsd-current@freebsd.org" , "freebsd-drivers@freebsd.org" Date: Thu, 22 Sep 2011 10:55:23 -0700 Thread-Topic: Choosing between DELAY(useconds) and pause() Thread-Index: Acx5UM0zVf9+7OruR7GrAyAHGLy0DA== Message-ID: <75E1A2A7D185F841A975979B0906BBA67BCCAB7609@AVEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Choosing between DELAY(useconds) and pause() X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 17:56:01 -0000 It appears that the pause() function cannot be used in driver functions whi= ch are invoked early in the boot process. Is there is a kernel api which a = device driver can use to determine whether to use pause() or DELAY(), for d= elays which are say greater than 10hz - may be even 1 hz ? Cheers, David S. ________________________________ This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message.