|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 3.1.0
3: * Copyright (c) 1982, 1990 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6:
7: #ifndef __SYS_HDIOCTL_H__
8: #define __SYS_HDIOCTL_H__
9:
10: #define HDIOC ('H' << 8)
11: #define HDGETA (HDIOC|1) /* get drive attributes */
12: #define HDSETA (HDIOC|2) /* set drive attributes */
13:
14: /*
15: * Drive attributes
16: * Note: all fields defined as bytes to prevent compiler arith probs.
17: * All multi-byte fields are stored low-byte first.
18: * ie: number of cylinders - (hd_ncyl [1] << 8) + hc_ncyl[0]
19: */
20: typedef
21: struct hdparm_s {
22: unsigned char ncyl[2]; /* number of cylinders */
23: unsigned char nhead; /* number heads */
24: unsigned char rwccp[2]; /* reduced write curr cyl */
25: unsigned char wpcc[2]; /* write pre-compensation cyl */
26: unsigned char eccl; /* max ecc data length */
27: unsigned char ctrl; /* control byte */
28: unsigned char fill2[3];
29: unsigned char landc[2]; /* landing zone cylinder */
30: unsigned char nspt; /* number of sectors per track */
31: unsigned char hdfill3;
32: } hdparm_t;
33: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.