Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 1995 16:32:44 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        PVinci@ix.netcom.com, phk@ref.tfs.com
Cc:        hackers@FreeBSD.org
Subject:   Re: why does WD.C work??
Message-ID:  <199503170632.QAA10239@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> What I see, is that the wdparam structure is wrong according to table 12 
>> of ATA.  eg.
>> 	word 0	General Config.
>> 	word 1	# logical Cyl.
>> 	word 2	reserved
>> 	word 3	# logical heads.
>> but wdparam looks like:
>> 
>> 	struct wdparams {
>> 		/* drive info */
>> 	short	wdp_config;		/* general configuration */
>> 	short	wdp_fixedcyl;		/* number of non-removable 	
>> 					Cylinders */
>> 	short	wdp_removcyl;	/* number of removable cylinders */
>> 	short	wdp_heads;		/* number of heads */
>> 	short	wdp_unfbytespertrk;	/* number of unformatted 	
>> 					bytes/track */

>The "reserved" field was indeed at one time intended to be used for
>"removable" cylinders...

The padding is OK, but wdp_removcyl is used to calculate d_ncylinders
so it may cause problems if it is nonzero.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503170632.QAA10239>