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