From owner-freebsd-drivers@FreeBSD.ORG Wed May 23 09:37:54 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0840116A41F for ; Wed, 23 May 2007 09:37:54 +0000 (UTC) (envelope-from die.gestalt@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id A5AA413C455 for ; Wed, 23 May 2007 09:37:53 +0000 (UTC) (envelope-from die.gestalt@gmail.com) Received: by nz-out-0506.google.com with SMTP id m22so119418nzf for ; Wed, 23 May 2007 02:37:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YZtC4rFxtMM98pxpIDEAXK/vNaACYVU8LUia6RQ8+X18CAkF+zLGj9NupkkUSiHtNHWgbaZVWcq2ueH5wEBBGT4PihhoIs8tgaz12JLej98SsxpULV5bwlQPUKnt+qlqQbj3EFE5Z5rPoPe8kexLkldXlLtU1GkDtpok/oWTfu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=athXd5y0VhUmOtUA8QtSSUAMoXfuBTnGRevKeOGXJ2ywOQOL2+8hIOHbccq6VzUHk0N0EhyW4yMnmc8smifB2IBcCToEIEECVtDw7MN3iLvoX9ZXSgvaKoFYfpH3/S1rZTD4eJbrgMurabblxvCDYs83Ghds8JlbIAS2Hf2l+7E= Received: by 10.64.143.12 with SMTP id q12mr879228qbd.1179913072770; Wed, 23 May 2007 02:37:52 -0700 (PDT) Received: by 10.64.184.8 with HTTP; Wed, 23 May 2007 02:37:52 -0700 (PDT) Message-ID: <5bf3e10d0705230237w729e8344k777c1cdabcf57697@mail.gmail.com> Date: Wed, 23 May 2007 11:37:52 +0200 From: "Die Gestalt" To: freebsd-drivers@freebsd.org In-Reply-To: <863b1nvqqa.fsf@dwp.des.no> MIME-Version: 1.0 References: <5bf3e10d0705150724q3f0fd25fq89094bd02d8f9d29@mail.gmail.com> <86veetgnk4.fsf@dwp.des.no> <5bf3e10d0705210744s119d1c5cpc20ab1036e9f98ff@mail.gmail.com> <5bf3e10d0705221130t222b80b5w64a4e446b04d6029@mail.gmail.com> <863b1nvqqa.fsf@dwp.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Generic int 13h driver 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: Wed, 23 May 2007 09:37:54 -0000 On 5/23/07, Dag-Erling Sm=F8rgrav wrote: > > > Use PIO mode (no IRQs). It's slower, but using the BIOS is so slow you > probably won't notice anyway... > > Otherwise you need to install an interrupt handler which will catch IRQ > 14 and pass it on to the BIOS. I cannot decide if PIO will be used or not, since for SCSI devices (for example) I don't think there is a PIO mode... I also would prefer not to depend on the configuration of the BIOS. Unless you have an idea about how to enforce PIO mode from the driver? Although I see how to write an interrupt handler, I don't see how to pass the catched interrupt back to the BIOS. Do I need to read some sort of interrupt table in the BIOS?