* Re: Help Needed Reading / Poling the ATA Status Register
[not found] <c0cd3750-e4b0-4716-83a6-b7f8d7ef1156@y5g2000hsf.googlegroups.com>
@ 2008-01-31 0:20 ` Robert Hancock
0 siblings, 0 replies; only message in thread
From: Robert Hancock @ 2008-01-31 0:20 UTC (permalink / raw)
To: frank.priest@gmail.com; +Cc: linux-kernel
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..
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-31 0:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <c0cd3750-e4b0-4716-83a6-b7f8d7ef1156@y5g2000hsf.googlegroups.com>
2008-01-31 0:20 ` Help Needed Reading / Poling the ATA Status Register Robert Hancock
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.