lkml.org 
[lkml]   [2010]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 19/68] ide: add hwif->port_no field
    From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    Subject: [PATCH] ide: add hwif->port_no field

    Add port_no field to ide_hwif_t matching port_no field used in
    struct ata_port.

    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    ---
    include/linux/ide.h | 7 ++++++-
    1 file changed, 6 insertions(+), 1 deletion(-)

    Index: b/include/linux/ide.h
    ===================================================================
    --- a/include/linux/ide.h
    +++ b/include/linux/ide.h
    @@ -682,7 +682,12 @@ typedef struct hwif_s {

    u8 major; /* our major number */
    u8 index; /* 0 for ide0; 1 for ide1; ... */
    - u8 channel; /* for dual-port chips: 0=primary, 1=secondary */
    +
    + union {
    + /* for dual-port chips: 0=primary, 1=secondary */
    + u8 channel;
    + u8 port_no;
    + };

    u32 host_flags;


    \
     
     \ /
      Last update: 2010-01-29 17:09    [W:2.269 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site