grub-devel
[Top][All Lists]
Advanced

[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

Attachment: cd4.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]