|
|
1.1 root 1: #include "scsi.h"
2:
3: s_diag(drive, n, o)
4: struct scsi_o *o;
5: {
6: struct scsi_i input;
7:
8: input.bus_id = scsi_id;
9: input.cmd[0] = 0x1C;
10: input.cmd[1] = drive<<5;
11: input.cmd[2] = 0;
12: input.cmd[3] = n>>8;
13: input.cmd[4] = n;
14: input.cmd[5] = 0;
15: if(scsiio(&input, 0, o, n, "diag") < 0)
16: return(1);
17: return(0);
18: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.