EMILE/libscsi/scsi_TEST_UNIT_READY.c
2007-03-22 17:00:50 +00:00

30 lines
407 B
C

/*
*
* (c) 2006 Laurent Vivier <Laurent@lvivier.info>
*
*/
#include <sys/types.h>
#include <stdio.h>
#include <scsi/scsi.h>
#include <macos/types.h>
#include <macos/errors.h>
#include "libscsi.h"
int scsi_TEST_UNIT_READY(int target)
{
unsigned char cdb[6];
cdb[0] = TEST_UNIT_READY;
cdb[1] = 0;
cdb[2] = 0;
cdb[3] = 0;
cdb[4] = 0;
cdb[5] = 0;
return scsi_command(target, cdb, 6, NULL);
}