File:  [Research Unix] / researchv10dc / cmd / oworm / oscsi / start.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

#include	"scsi.h"

static
start(drive, st)
{
	struct scsi_i input;
	struct scsi_o output;

	input.bus_id = 1<<scsi_id;
	input.cmd[0] = 0x1B;
	input.cmd[1] = drive<<5;
	input.cmd[2] = 0;
	input.cmd[3] = 0;
	input.cmd[4] = st;
	input.cmd[5] = 0;
	if(scsiio(&input, &output, 0, "start") < 0)
		return(1);
	if(CHECK(output)){
		scsidump(&output);
		return(1);
	}
	return(0);
}

s_start(drive)
{
	return(start(drive, 1));
}

s_stop(drive)
{
	return(start(drive, 0));
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.