Question on a WD2797 "raw" command

David Solan Kdavid at gizzmo.UUCP
Mon Jul 3 02:03:29 AEST 1989


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
	The UNIX PC allegedly has the capacity for VERY raw reads of
the floppy drive through direct access of the WD2797 chip.
According to the manual (gd(7)) issuing the following ioctl:

	ioctl(fildes, GDCMD, &(fdrq structure))

where the fdrq structure has a WD2797 command (such as read track),
should work.  Has anyone ever got this to work -- for ANY WD2797
command, and if so, could examples be given?
	All I get for the above ioctl, after opening the /dev/rfp020
device, is a return of -1 and errno 14, "Bad address". (more info can
be found in /usr/include/sys/gdisk.h and /usr/include/sys/gdioctl.h)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

		David  Solan
		Objective Programming Incorporated
		Post Office Box 123
		Norwalk,  CT  06856
		Voice: (203) 866-6900
		attmail: <!dsolan> or <attmail!objctv!kdavid>
-- 
24 million Americans will die in the next 10 years without their seat belts on.
Buckle up now!                        {codas,u1100a}-----\
David Solan                   rutgers!rochester!kodak!pcid!gizzmo!kdavid
                                {lazlo,ethos,fthood}-----/



More information about the Unix-pc.general mailing list