|
|
1.1 root 1: /*
2: * ioctl info for ra driver
3: */
4:
5: #define UIORRCT (('u'<<8) | 0) /* read a block of the rct */
6: #define UIOWRCT (('u'<<8) | 1) /* write a block of rct */
7: #define UIOCHAR (('u'<<8) | 2) /* get drive characteristics (sizes) */
8: #define UIOREPL (('u'<<8) | 3) /* replace a block */
9: #define UIOSPDW (('u'<<8) | 4) /* spin down on close */
10: #define UIORST (('u'<<8) | 5) /* hopeless controller reset */
11:
12: /*
13: * struct for RRCT and WRCT
14: */
15:
16: struct ud_rctbuf {
17: caddr_t buf;
18: int lbn;
19: };
20:
21: /*
22: * struct for REPL
23: */
24:
25: struct ud_repl {
26: daddr_t replbn; /* good block */
27: daddr_t lbn; /* bad block */
28: short prim; /* nonzero if primary replacement */
29: };
30:
31: /*
32: * struct for CHAR
33: */
34:
35: struct ud_unit {
36: daddr_t radsize; /* size, from ONLINE end packet */
37: daddr_t rctsize; /* rct size, from get unit status */
38: long medium; /* generic type name */
39: short tracksz;
40: short groupsz;
41: short cylsz;
42: char rbns;
43: char copies;
44: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.