All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 7/18] ide: add ide_tf_read() helper
Date: Fri, 09 Nov 2007 13:29:27 +0300	[thread overview]
Message-ID: <47343687.1030309@ru.mvista.com> (raw)
In-Reply-To: <200711050021.50748.bzolnier@gmail.com>

Bartlomiej Zolnierkiewicz wrote:

> * Factor out code reading taskfile registers from ide_end_drive_cmd()
>   to the new ide_tf_read() helper.

> * Add IDE_TFLAG_IN_* taskfile flags to indicate the need to load
>   particular IDE taskfile register in ide_tf_read().

> * Update ide_end_drive_cmd() to set respective IDE_TFLAG_IN_* taksfile flags.

> * Add ide_get_lba_addr() for getting LBA sector address from taskfile struct.

> * Factor out code getting sector address from ide_dump_ata_status()
>   to the new ide_dump_sector() function.

> * Convert ide_dump_sector() to use ide_tf_read() and ide_get_lba_addr().

> * Remove no longer needed ide_read_24().

> The only change in functionality caused by this patch is that
> ide_dump_ata_status() no longer prints "high"/"low" parts of LBA48
> sector address (of course LBA48 sector address is still printed).

> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

> Index: b/include/linux/ide.h
> ===================================================================
> --- a/include/linux/ide.h
> +++ b/include/linux/ide.h
> @@ -913,6 +913,27 @@ enum {
>  	IDE_TFLAG_IN_DATA		= (1 << 17),
>  	IDE_TFLAG_CUSTOM_HANDLER	= (1 << 18),
>  	IDE_TFLAG_DMA_PIO_FALLBACK	= (1 << 19),
> +	IDE_TFLAG_IN_HOB_FEATURE	= (1 << 20),
> +	IDE_TFLAG_IN_HOB_NSECT		= (1 << 21),
> +	IDE_TFLAG_IN_HOB_LBAL		= (1 << 22),
> +	IDE_TFLAG_IN_HOB_LBAM		= (1 << 23),
> +	IDE_TFLAG_IN_HOB_LBAH		= (1 << 24),
> +	IDE_TFLAG_IN_HOB_LBA		= IDE_TFLAG_IN_HOB_LBAL |
> +					  IDE_TFLAG_IN_HOB_LBAM |
> +					  IDE_TFLAG_IN_HOB_LBAH,
> +	IDE_TFLAG_IN_HOB		= IDE_TFLAG_IN_HOB_FEATURE |
> +					  IDE_TFLAG_IN_HOB_NSECT |
> +					  IDE_TFLAG_IN_HOB_LBA,
> +	IDE_TFLAG_IN_NSECT		= (1 << 25),
> +	IDE_TFLAG_IN_LBAL		= (1 << 26),
> +	IDE_TFLAG_IN_LBAM		= (1 << 27),
> +	IDE_TFLAG_IN_LBAH		= (1 << 28),
> +	IDE_TFLAG_IN_LBA		= IDE_TFLAG_IN_LBAL |
> +					  IDE_TFLAG_IN_LBAM |
> +					  IDE_TFLAG_IN_LBAH,
> +	IDE_TFLAG_IN_TF			= IDE_TFLAG_IN_NSECT |
> +					  IDE_TFLAG_IN_LBA,
> +	IDE_TFLAG_IN_DEVICE		= (1 << 29),

    Hm, yet the device/head is a part of the LBA in 24-bit mode...

>  };
>  
>  struct ide_taskfile {

MBR, Sergei

      reply	other threads:[~2007-11-09 10:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-04 23:21 [PATCH 7/18] ide: add ide_tf_read() helper Bartlomiej Zolnierkiewicz
2007-11-09 10:29 ` Sergei Shtylyov [this message]

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=47343687.1030309@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=bzolnier@gmail.com \
    --cc=linux-ide@vger.kernel.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.