All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: amruth pattanada <amruth.vamadev@gmail.com>
Cc: linux-ide@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: CHS to LBA mapping for SCSI 6/10/12/16 byte RW CDB
Date: Fri, 12 Mar 2010 08:21:24 -0500	[thread overview]
Message-ID: <4B9A3FD4.1020905@garzik.org> (raw)
In-Reply-To: <9edb119c1003120346r34c1c145t2be07595f9b151c6@mail.gmail.com>

On 03/12/2010 06:46 AM, amruth pattanada wrote:
> Hi
> All
> I require clarification regarding how bytes are stored in scsi_rw
> Command Descriptor Block for READ_6/WRITE_6 commands. In the
> structures below addr is either defined as 3 bytes or 4 bytes or 8
> bytes.How does it correspond to CHS in ATA. I assume addr[0]=Cylinder,
> addr[1]=head and addr[2]=sectors.Is my assumption correct. How does it
> map if it is 4/8 bytes addr.Is 3 bytes addr corresponds to 24 bit LBA,
> then how do we map 48 bit LBA. All scsi CDB structures are below.Any
> inputs will be highly appreciated.

Use the source, Luke.

All the answers you seek, drivers/ata/libata-scsi.c has, Yoda says.

	Jeff




  reply	other threads:[~2010-03-12 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-12 11:46 CHS to LBA mapping for SCSI 6/10/12/16 byte RW CDB amruth pattanada
2010-03-12 13:21 ` Jeff Garzik [this message]
2010-03-12 22:06 ` Tejun Heo

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=4B9A3FD4.1020905@garzik.org \
    --to=jeff@garzik.org \
    --cc=amruth.vamadev@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@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.