|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 4.0
3: * All rights reserved. May not be copied without permission.
4: -lgl) */
5: /*
6: * Floppy io control commands.
7: */
8:
9: #ifndef FDIOCTL_H
10: #define FDIOCTL_H FDIOCTL_H
11:
12: #define FDIOC ('F'<<8)
13: #define FDFORMAT (FDIOC|1) /* Format diskette track */
14:
15: /*
16: * Formatting information is largely supplied
17: * by the low nibble of the minor device number opened for formatting
18: * which will specify the number of heads and the track density.
19: * 0 1 head, 40 tracks, 8 sectors per track
20: * 1 2 heads, 40 tracks, 8 sectors per track
21: * 2 2 heads, 80 tracks, 8 sectors per track
22: * 3 1 head, 40 tracks, 9 sectors per track
23: * 4 2 heads, 40 tracks, 9 sectors per track
24: * 5 2 heads, 80 tracks, 9 sectors per track
25: * Each FDFORMAT command will format a single track.
26: * The parameter block consists of an array of fform structures
27: * one for each sector being formatted specifying the cylinder,
28: * head, sector number, and size of the sector.
29: */
30: struct fform {
31: char ff_cylin; /* 0 .. number of tracks - 1 */
32: char ff_head; /* 0 or 1 */
33: char ff_sect; /* 1 .. number of sectors */
34: char ff_size; /* 1, 2, or 3 for 256, 512, or 1024 */
35: };
36:
37: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.