home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
libscsi1.zoo
/
LibScsi-0.01
/
rezero.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-14
|
543b
|
31 lines
/*
* rezero.c - Copyright Steve Woodford, August 1993.
*
* Send 'rezero' command to SCSI target.
*/
#include <sys/types.h>
#include <sys/scsi.h>
#include "libscsi.h"
PUBLIC short
Scsi_Rezero(u_char id)
{
Scsi_Cmd sc;
if ( id & 0xc0 )
return(-1);
(void) _Scsi_Timeout( T_Rezero(id) );
sc.sc_command = CMD(id, SZ_CMD_REZERO);
sc.sc_z[0] = LUN(id, 0);
sc.sc_z[1] = 0;
sc.sc_z[2] = 0;
sc.sc_z[3] = 0;
sc.sc_link = 0;
return ( _Scsi_Command( DMA_READ, &sc, 0L, 0 ) );
}