Subject: Re: proposal for MI floppy formatting
To: John Kohl <jtk@kolvir.arlington.ma.us>
From: Matthias Pfaller <leo@dachau.marco.de>
List: tech-kern
Date: 11/19/1996 16:27:53
John Kohl wrote:
> struct fdformat_cmd {
> 	int head;		/* IN */
> 	int cylinder;		/* IN */
> 	enum fdformat_result result;	/* OUT */
> };
> 
> #define FDFORMAT_VERSION 19961116
> struct fdformat_parms {
> /* list of items taken from i386 formatting glop (NEC 765);
>    should be made the union of support needed for other devices. */
>     int fdformat_version;	/* rev this when needed; write drivers to
> 				   allow forward compatibility, please,
> 				   and add elements to the end of the
> 				   structure */
>     int sector_shift;
>     int nbps;				/* number of bytes per sector */
>     int ncyl;				/* number of cylinders */
>     int nspt;				/* sectors per track */
>     int ntrk;				/* number of heads/tracks per cyl */
>     int stepspercyl;			/* steps per cylinder */
>     int gaplen;				/* formatting gap length */
>     int fillbyte;			/* formatting fill byte */
>     int xfer_rate;			/* in bits per second; driver
> 					   must convert */
> };

It would be nice if one could pass an array containing the
sectornumbers. That way it would be possible to do interleave,
cylinder/head skew and to do some wierd formats like old OS9 (where
sector numbers start with 0 and not with 1) or Amstrad CPC floppies (where
sector numbers start at 0x01, 0x41 or 0xC1 depending on the filesystem
type). Flags to select between FM/MFM and between ISO/IBM-34 format
would be nice as well.

Matthias
-- 
leo@dachau.marco.de			in real life: Matthias Pfaller
marco GmbH, 85221 Dachau, Germany	tel: +49 8131 516142