Re: Floppy drive not found by RELENG_5_1

From: Oliver Lehmann <lehmann_at_ans-netz.de>
Date: Tue, 4 Nov 2003 20:42:46 +0100
Ok,

to get back a working and floppydrive detection on FreeBSD/alpha:

What's about the attached patch?
I moved in fd_probe() 
	if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) {
out of the
#if defined(__i386__) || defined(__amd64__)
block and created an #else section (like it was in RELENG_4) where the
fd->type is set to 144 by force.

Why not just re-create the #else block? Why moving the if statement out of
the #ifdef block? Doing it that way, it's still possible to set
hint.fd.0.flags for example to 3 (720KB Floppy), and only set the 1.44M
type as a fallback when flags is NULL (FDT_NONE) which means in that case,
hint.fd.0.flags isn't defined. (Because we don't query the "BIOS" as we do
it for x86 to get the info what kind of floppy is attached to fdc.)

 Greetings, Oliver

-- 
 Oliver Lehmann
        _at_home: lehmann_at_ans-netz.de
      _at_office: oliver.lehmann_at_mgi.de
         _at_www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/

Received on Tue Nov 04 2003 - 10:42:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:27 UTC