Floppy drive not found by RELENG_5_1

Oliver Lehmann lehmann at ans-netz.de
Tue Nov 4 11:42:50 PST 2003


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
        @home: lehmann at ans-netz.de
      @office: oliver.lehmann at mgi.de
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src::sys::isa::fd.c
Type: application/octet-stream
Size: 967 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031104/1b8c0580/fd.obj


More information about the freebsd-current mailing list