From owner-freebsd-drivers@FreeBSD.ORG Wed May 23 10:14:32 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 759BF16A51A for ; Wed, 23 May 2007 10:14:32 +0000 (UTC) (envelope-from die.gestalt@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by mx1.freebsd.org (Postfix) with ESMTP id 311B513C457 for ; Wed, 23 May 2007 10:14:31 +0000 (UTC) (envelope-from die.gestalt@gmail.com) Received: by nz-out-0506.google.com with SMTP id m22so126558nzf for ; Wed, 23 May 2007 03:14:31 -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=ezYM3BY2CarjsIdebcOF1wWhNeJJCscxWrgWJpatZ7z0XQlwtDhVKksPQdpEiowMmjyKw92M+P6FHW1nMVzH1Zkz32itOevqIPUP7hHdBL6SQ0SXOJ0ukyPevK+CiRzNkig0h+jkVAJlMRuS7Tc5u6QHZnvSjVp7EVXxF5EYWw8= 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=Iwcj0AQ7NtafdGIPmP0XAjzNP3XU/a88mXlWxyzUzWjqi1pAgllLemV5TLmfRiFqDVwovDRnccoL+TtIXeoR1YNkrOuWqFt95X9mL1y7t8UQLwUCl8AIzx2Ejlom7FOlrPAFvwOCi8PmaSpDDSeV2d7vcd0GmL7PkfH+wN74S3c= Received: by 10.65.212.3 with SMTP id o3mr348139qbq.1179915271469; Wed, 23 May 2007 03:14:31 -0700 (PDT) Received: by 10.64.184.8 with HTTP; Wed, 23 May 2007 03:14:31 -0700 (PDT) Message-ID: <5bf3e10d0705230314w3038a532uf0d8c0ed18a5d05f@mail.gmail.com> Date: Wed, 23 May 2007 12:14:31 +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 10:14:32 -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. So I will have to write an interrupt handler that catches the IRQ14, has go= t the address of the IRQ14 handler of the BIOS, run this handler in the VM86, and pray The Great Sysop? :p