|
|
researchv10 Norman
#include <stdio.h>
#include "../scsi.h"
#include "../scsish.h"
#include "../tcl.h"
#include "fns.h"
int
sony_diskid(ClientData cd, Tcl_Interp *it, int argc, char **argv)
{
struct scsi_cmd cmd;
struct scsi_return ret;
int i, unit;
if(argc <= 1)
argv[i = 0] = "0";
else
i = 1;
for(; i < argc; i++){
unit = atoi(argv[i]);
set6(cmd, 0xC2, unit<<5, 0, 0, 0, 0);
if(s_io(0, &cmd, 0, &ret, 1024, cd->err))
ERR_RETURN
printf("(%d,%d) disk id block:\n", s_id, unit);
xd(ret.data, 1024, stdout);
}
return(TCL_OK);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.