linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reset IOCTLs
@ 2007-12-03 23:04 Kantor Zsolt
  2007-12-04 11:51 ` Sergei Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Kantor Zsolt @ 2007-12-03 23:04 UTC (permalink / raw)
  To: linux-ide

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),
and the second with the third are in the hdreg.h (HDIO_DRIVE_RESET - 0x031c, WIN_DEVICE_RESET -
0x08)

Thanks
  Kantor


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: reset IOCTLs
  2007-12-03 23:04 reset IOCTLs Kantor Zsolt
@ 2007-12-04 11:51 ` Sergei Shtylyov
  2007-12-04 18:21   ` Kantor Zsolt
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2007-12-04 11:51 UTC (permalink / raw)
  To: Kantor Zsolt; +Cc: linux-ide

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: reset IOCTLs
  2007-12-04 11:51 ` Sergei Shtylyov
@ 2007-12-04 18:21   ` Kantor Zsolt
  2007-12-04 18:31     ` Sergei Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Kantor Zsolt @ 2007-12-04 18:21 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide


--- 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 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: reset IOCTLs
  2007-12-04 18:21   ` Kantor Zsolt
@ 2007-12-04 18:31     ` Sergei Shtylyov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2007-12-04 18:31 UTC (permalink / raw)
  To: Kantor Zsolt; +Cc: linux-ide

Kantor Zsolt wrote:

> 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 ?

    Yes.

> and the first one for
> non-IDE CD-ROMs is a hard reset ?

    Don't know.

> because in the cdrom.h file states this: CDROMRESET 0x5312 /*
> hard-reset the drive */

> Cheers
>   Kantor

MBR, Sergei

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-04 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 23:04 reset IOCTLs Kantor Zsolt
2007-12-04 11:51 ` Sergei Shtylyov
2007-12-04 18:21   ` Kantor Zsolt
2007-12-04 18:31     ` Sergei Shtylyov

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).