From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JXed3-000354-1U for mharc-grub-devel@gnu.org; Fri, 07 Mar 2008 10:37:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXed0-00032C-59 for grub-devel@gnu.org; Fri, 07 Mar 2008 10:36:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXecx-0002yn-Hy for grub-devel@gnu.org; Fri, 07 Mar 2008 10:36:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXecx-0002yV-5Z for grub-devel@gnu.org; Fri, 07 Mar 2008 10:36:55 -0500 Received: from pne-smtpout4-sn1.fre.skanova.net ([81.228.11.168]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXecw-0006YF-ML for grub-devel@gnu.org; Fri, 07 Mar 2008 10:36:54 -0500 Received: from [127.0.0.1] (88.193.32.97) by pne-smtpout4-sn1.fre.skanova.net (7.3.129) id 47A7970A001BB017 for grub-devel@gnu.org; Fri, 7 Mar 2008 16:36:53 +0100 Message-ID: <47D16136.1060705@nic.fi> Date: Fri, 07 Mar 2008 17:37:26 +0200 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: The development of GRUB 2 References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: Quoted-Printable X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) Subject: Re: [PATCH] cdrom access patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 15:36:58 -0000 Bean wrote: > Hi, >=20 > This patch use int 13 func 4B01 to detect cdrom. It also change the > name of the cd device to (hdN), where N is the bios drive number. Hi Bean, Have you tried to use EDD's functions to query for type of device? (references are to EDD3 spec) 8.24 Get Device Parameters (FN 48h) 26 DWord Pointer to the Device Parameter Table Extension (DPTE) 8.24.3 Device Parameter Table Extension (DPTE) 10-11 Word BIOS selected hardware specific option flags Bits 5 and 6; Removable device, ATAPI device. This FN 48h can also be used to filter out PCI cards from ATA driver in=20 case there is BIOS support for the device already. So use BIOS if there=20 is BIOS handler for it, otherwise fall back to ATA driver. I would prefer that CD's would be counted like (cd0) for first CD-ROM=20 device, (cd1) for second CD-ROM device, ... and so on. I think it is OK=20 to first allocate BIOS devices for CD's and after that use ATA driver=20 for rest of them. Ata driver can of course be accessed with ata name too. Thanks, Vesa J=E4=E4skel=E4inen