1 #ifndef _LINUX_FD_H 2 #define _LINUX_FD_H 3 4 #define FDCLRPRM 0 /* clear user-defined parameters */ 5 #define FDSETPRM 1 /* set user-defined parameters for current media */ 6 #define FDDEFPRM 2 /* set user-defined parameters until explicitly cleared */ 7 #define FDGETPRM 3 /* get disk parameters */ 8 #define FDMSGON 4 /* issue kernel messages on media type change */ 9 #define FDMSGOFF 5 /* don't issue kernel messages on media type change */ 10 #define FDFMTBEG 6 /* begin formatting a disk */ 11 #define FDFMTTRK 7 /* format the specified track */ 12 #define FDFMTEND 8 /* end formatting a disk */ 13 #define FDSETEMSGTRESH 10 /* set fdc error reporting treshold */ 14 15 #define FD_FILL_BYTE 0xF6 /* format fill byte */ 16 17 #define FORMAT_NONE 0 /* no format request */ 18 #define FORMAT_WAIT 1 /* format request is waiting */ 19 #define FORMAT_BUSY 2 /* formatting in progress */ 20 #define FORMAT_OKAY 3 /* successful completion */ 21 #define FORMAT_ERROR 4 /* formatting error */ 22 23 struct floppy_struct { 24 unsigned int size, /* nr of 512-byte sectors total */ 25 sect, /* sectors per track */ 26 head, /* nr of heads */ 27 track, /* nr of tracks */ 28 stretch; /* !=0 means double track steps */ 29 unsigned char gap, /* gap1 size */ 30 rate, /* data rate. |= 0x40 for perpendicular */ 31 spec1, /* stepping rate, head unload time */ 32 fmt_gap; /* gap2 size */ 33 char * name; /* used only for predefined formats */ 34 }; 35 36 struct format_descr { 37 unsigned int device,head,track; 38 }; 39 40 #endif