From: Robert Hancock <hancockr@shaw.ca>
To: "frank.priest@gmail.com" <frank.priest@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Help Needed Reading / Poling the ATA Status Register
Date: Wed, 30 Jan 2008 18:20:34 -0600 [thread overview]
Message-ID: <47A11452.3030709@shaw.ca> (raw)
In-Reply-To: <c0cd3750-e4b0-4716-83a6-b7f8d7ef1156@y5g2000hsf.googlegroups.com>
frank.priest@gmail.com wrote:
> I am currently writing some code to send some ATA commands directly to
> the drive using ioctl and SG_IO which seems to work fine. However I
> also need to read the ATA status register values in real time which I
> am unsure how to do.
>
> I have seen in the libata developers guide the following functions to
> read the status and alternative status registers:-
>
> u8 (*check_status)(struct ata_port *ap);
> u8 (*check_altstatus)(struct ata_port *ap);
> u8 (*check_err)(struct ata_port *ap);
>
> However I have no idea how to access these functions directly or even
> if this is the best way to go about it. Any help at all would be much
> appreciated.
First question is why you need to poll the status register, since quite
likely there is a better solution to whatever that reason is..
parent reply other threads:[~2008-01-31 0:21 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <c0cd3750-e4b0-4716-83a6-b7f8d7ef1156@y5g2000hsf.googlegroups.com>]
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=47A11452.3030709@shaw.ca \
--to=hancockr@shaw.ca \
--cc=frank.priest@gmail.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox