--- Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx> 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 - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html