|
|
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 HDIOCTL_H ! 8: #define HDIOCTL_H ! 9: #define HDIOC ('H' << 8) ! 10: #define HDGETA (HDIOC|1) /* get drive attributes */ ! 11: #define HDSETA (HDIOC|2) /* set drive attributes */ ! 12: ! 13: /* ! 14: * Drive attributes ! 15: * Note: all fields defined as bytes to prevent compiler arith probs. ! 16: * All multi-byte fields are stored low-byte first. ! 17: * ie: number of cylinders - (hd_ncyl [1] << 8) + hc_ncyl[0] ! 18: */ ! 19: typedef ! 20: struct hdparm_s { ! 21: unsigned char ncyl[2]; /* number of cylinders */ ! 22: unsigned char nhead; /* number heads */ ! 23: unsigned char rwccp[2]; /* reduced write curr cyl */ ! 24: unsigned char wpcc[2]; /* write pre-compensation cyl */ ! 25: unsigned char eccl; /* max ecc data length */ ! 26: unsigned char ctrl; /* control byte */ ! 27: unsigned char fill2[3]; ! 28: unsigned char landc[2]; /* landing zone cylinder */ ! 29: unsigned char nspt; /* number of sectors per track */ ! 30: unsigned char hdfill3; ! 31: } hdparm_t; ! 32: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.