linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kantor Zsolt <kantorzsolt@yahoo.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: reset IOCTLs
Date: Tue, 4 Dec 2007 10:21:25 -0800 (PST)	[thread overview]
Message-ID: <719908.73262.qm@web35414.mail.mud.yahoo.com> (raw)
In-Reply-To: <47553F3B.1090805@ru.mvista.com>


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

> Hello.
> 
> Kantor Zsolt wrote:
> 
> > Can somebody tell me what is the difference between these reset commands (I'm developing an
> open
> > source application and I would like to know this): one is in the cdrom.h (CDROMRESET -
> 0x5312),
> 
>     This one seems to be handled only by discrete (non-IDE) CD-ROM drivers.
> 
> > and the second with the third are in the hdreg.h (HDIO_DRIVE_RESET - 0x031c,
> 
>     This gets handled as the usual IDE reset, i.e. wia SRST bit of the device 
> control register.
> 
> > WIN_DEVICE_RESET - 0x08)
> 
>     This is not an ioctl() at all but ATAPI Device Reset command which can be 
> use dto reset ATAPI device insted of the usual IDE reset.
> 
> > Thanks
> >   Kantor
> 
> MBR, Sergei
> 

Thanks a lot ! I have one more question: I see that the HDIO_DRIVE_RESET - 0x031c is a soft reset,
but the WIN_DEVICE_RESET - 0x08 for ATAPI devices is a soft reset too ? and the first one for
non-IDE CD-ROMs is a hard reset ? because in the cdrom.h file states this: CDROMRESET 0x5312 /*
hard-reset the drive */

Cheers
  Kantor


      ____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

  reply	other threads:[~2007-12-04 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03 23:04 reset IOCTLs Kantor Zsolt
2007-12-04 11:51 ` Sergei Shtylyov
2007-12-04 18:21   ` Kantor Zsolt [this message]
2007-12-04 18:31     ` Sergei Shtylyov

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=719908.73262.qm@web35414.mail.mud.yahoo.com \
    --to=kantorzsolt@yahoo.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=sshtylyov@ru.mvista.com \
    /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;
as well as URLs for NNTP newsgroup(s).