2006-10-27 09:21:28 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* (c) 2006 Laurent Vivier <Laurent@lvivier.info>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2006-11-01 17:44:33 +00:00
|
|
|
#include <stdio.h>
|
2006-10-27 09:21:28 +00:00
|
|
|
|
|
|
|
#include <scsi/scsi.h>
|
|
|
|
|
|
|
|
#include <macos/types.h>
|
|
|
|
#include <macos/errors.h>
|
|
|
|
|
|
|
|
#include "libscsi.h"
|
|
|
|
|
2006-11-01 17:44:33 +00:00
|
|
|
int scsi_TEST_UNIT_READY(int target)
|
2006-10-27 09:21:28 +00:00
|
|
|
{
|
2007-03-22 17:00:50 +00:00
|
|
|
unsigned char cdb[6];
|
2006-10-27 09:21:28 +00:00
|
|
|
|
|
|
|
cdb[0] = TEST_UNIT_READY;
|
|
|
|
cdb[1] = 0;
|
|
|
|
cdb[2] = 0;
|
|
|
|
cdb[3] = 0;
|
2006-11-01 17:44:33 +00:00
|
|
|
cdb[4] = 0;
|
2006-10-27 09:21:28 +00:00
|
|
|
cdb[5] = 0;
|
|
|
|
|
2006-11-01 17:44:33 +00:00
|
|
|
return scsi_command(target, cdb, 6, NULL);
|
2006-10-27 09:21:28 +00:00
|
|
|
}
|