All of lore.kernel.org
 help / color / mirror / Atom feed
From: "zhao, forrest" <forrest.zhao@intel.com>
To: jeff@garzik.org
Cc: linux-ide@vger.kernel.org
Subject: A question about right-shift in ahci_port_start()
Date: Mon, 17 Apr 2006 15:25:53 +0800	[thread overview]
Message-ID: <1145258753.3417.5.camel@forrest26.sh.intel.com> (raw)

Hi, Jeff

When reading ahci_port_start(), I found the
following code segments:

.......
if (hpriv->cap & HOST_CAP_64)
        writel((pp->cmd_slot_dma >> 16) >> 16, port_mmio +
PORT_LST_ADDR_HI);
        writel(pp->cmd_slot_dma & 0xffffffff, port_mmio +
PORT_LST_ADDR);
        readl(port_mmio + PORT_LST_ADDR); /* flush */
......

I can't figure out why you use ">>16>>16" instead of
">>32" for right-shift 32 bits.

Would you please give me some hint?

Thanks,
Forrest

             reply	other threads:[~2006-04-17  7:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-17  7:25 zhao, forrest [this message]
2006-04-17  7:46 ` A question about right-shift in ahci_port_start() 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=1145258753.3417.5.camel@forrest26.sh.intel.com \
    --to=forrest.zhao@intel.com \
    --cc=jeff@garzik.org \
    --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.