cvs commit: src/sys/dev/fdc fdc_acpi.c
Nate Lawson
njl at FreeBSD.org
Wed Jul 28 15:35:50 PDT 2004
njl 2004-07-28 22:35:41 UTC
FreeBSD src repository
Modified files:
sys/dev/fdc fdc_acpi.c
Log:
Fix ACPI floppy enumeration for three types of divergent behavior.
* Some systems have _FDE and child floppy devices, but no _FDI. This seems
to be compatible with the standard. Don't error out if there is no _FDI.
Instead, continue on to the next device. The normal fd probe will take
care of this device.
* Some systems have _FDE but no child devices in AML. For these, add a
second pass that compares the results of _FDE to the presence of devices.
If not present, add the missing device.
* Some BIOS authors didn't read the spec. They use tape drive values for
all fdc(4) devices. Since this isn't grossly incompatible with the
required boolean value, use them. They also define the _FDE items as a
package instead of buffer. Regenerate the buffer from the package if it
is present.
Tested by: tjr, marcel
Revision Changes Path
1.2 +90 -40 src/sys/dev/fdc/fdc_acpi.c
More information about the cvs-all
mailing list