[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] cdrom access patch
From: |
Bean |
Subject: |
Re: [PATCH] cdrom access patch |
Date: |
Sat, 15 Mar 2008 15:34:09 +0800 |
On Sat, Mar 15, 2008 at 4:58 AM, Vesa Jääskeläinen <address@hidden> wrote:
>
> Bean wrote:
> > Hi,
> >
> > I have an idea, why not have both names, (hdN) and (cd), hopefully
> > this will make everyone happy.
> >
>
> Hi Bean,
>
> I think I suggested it already ;)
>
> Device alias is ok for me :) (and use of cd[nro] is more favorable).
Ok, the new patch add (cd0) alias for cdrom device, the corresponding
(hdN) is also present.
To Christian Franke:
We can use the root variable to access the boot partition, so (boot)
seems a little duplicate.
2008-03-15 Bean <address@hidden>
* disk/i386/pc/biosdisk.c (cd_start): Removed.
(cd_count): Removed.
(cd_drive): New variable.
(grub_biosdisk_get_drive): Return cd_drive if device name is (cd0).
(grub_biosdisk_call_hook): Only handle (hdN) device name.
(grub_biosdisk_iterate): Create (cd0) alias for cdrom device.
(grub_biosdisk_open): Replace cd_start with cd_drive.
(GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
detect cdrom device.
* include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
Removed.
(GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
(GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
(GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
(GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
(grub_biosdisk_cdrp): New structure.
(grub_biosdisk_get_cdinfo_int13_extensions): New function.
* include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
* kern/i386/pc/init.c (make_install_device): Use (hdN) as root device
name.
* kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
New function.
--
Bean
cd4.diff
Description: Text document
- Re: [PATCH] cdrom access patch, (continued)
- Re: [PATCH] cdrom access patch, Bean, 2008/03/10
- Re: [PATCH] cdrom access patch, Christian Franke, 2008/03/11
- Re: [PATCH] cdrom access patch, Bean, 2008/03/12
- Re: [PATCH] cdrom access patch, Christian Franke, 2008/03/12
- Re: [PATCH] cdrom access patch, Christian Franke, 2008/03/13
- Re: [PATCH] cdrom access patch, Bean, 2008/03/14
- Re: [PATCH] cdrom access patch, Pavel Roskin, 2008/03/14
- Re: [PATCH] cdrom access patch, Bean, 2008/03/14
- Re: [PATCH] cdrom access patch, Bean, 2008/03/14
- Re: [PATCH] cdrom access patch, Vesa Jääskeläinen, 2008/03/14
- Re: [PATCH] cdrom access patch,
Bean <=
- Re: [PATCH] cdrom access patch, Vesa Jääskeläinen, 2008/03/15
- Re: [PATCH] cdrom access patch, Bean, 2008/03/15
- Re: [PATCH] cdrom access patch, Christian Franke, 2008/03/15
- Re: [PATCH] cdrom access patch, Pavel Roskin, 2008/03/17
- Re: [PATCH] cdrom access patch, Bean, 2008/03/17
- Re: [PATCH] cdrom access patch, Pavel Roskin, 2008/03/19
- Re: [PATCH] cdrom access patch, Bean, 2008/03/20
- Re: [PATCH] cdrom access patch, Bean, 2008/03/24
- Re: [PATCH] cdrom access patch, Christian Franke, 2008/03/14
[PATCH] cdrom access patch, Kalamatee, 2008/03/06