From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] cdrom access patch
Date: Fri, 07 Mar 2008 17:37:26 +0200 [thread overview]
Message-ID: <47D16136.1060705@nic.fi> (raw)
In-Reply-To: <ca0f59980803050049x2d88e6a0tc10b6e91dadc7e26@mail.gmail.com>
Bean wrote:
> Hi,
>
> 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
case there is BIOS support for the device already. So use BIOS if there
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
device, (cd1) for second CD-ROM device, ... and so on. I think it is OK
to first allocate BIOS devices for CD's and after that use ATA driver
for rest of them. Ata driver can of course be accessed with ata name too.
Thanks,
Vesa Jääskeläinen
next prev parent reply other threads:[~2008-03-07 15:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 8:49 [PATCH] cdrom access patch Bean
2008-03-07 15:37 ` Vesa Jääskeläinen [this message]
2008-03-09 15:33 ` Bean
2008-03-10 15:53 ` Bean
2008-03-11 21:10 ` Christian Franke
2008-03-12 5:26 ` Bean
2008-03-12 6:52 ` Christian Franke
2008-03-13 22:59 ` Christian Franke
2008-03-14 5:33 ` Bean
2008-03-14 17:28 ` Pavel Roskin
2008-03-14 19:58 ` Bean
2008-03-14 20:56 ` Bean
2008-03-14 20:58 ` Vesa Jääskeläinen
2008-03-15 7:34 ` Bean
2008-03-15 8:49 ` Vesa Jääskeläinen
2008-03-15 10:54 ` Bean
2008-03-15 19:01 ` Christian Franke
2008-03-17 4:31 ` Pavel Roskin
2008-03-17 6:21 ` Bean
2008-03-19 22:09 ` Pavel Roskin
2008-03-20 6:06 ` Bean
2008-03-24 4:15 ` Bean
2008-03-14 23:20 ` Christian Franke
-- strict thread matches above, loose matches on Subject: below --
2008-03-06 23:58 Kalamatee
2008-03-08 20:16 Kalamatee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D16136.1060705@nic.fi \
--to=chaac@nic.fi \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.