[PATCH] Adjust hints matching for ACPI devices

Bruce Cran bruce at cran.org.uk
Sat Aug 22 06:13:24 UTC 2009


On Thu, 20 Aug 2009 17:05:20 -0400
John Baldwin <jhb at freebsd.org> wrote:

> This patch adjusts how the acpi0 device matches hint devices with
> built-in devices.  First, it relaxes the matching somewhat so that if
> the memory and I/O ports specified in hints match a device then
> mismatches in IRQs or DRQs are ignored.  This should fix the problem
> with atrtc1 devices because the ACPI-enumerated atrtc device did not
> include an IRQ.  The second change is a hack to allow floppy drive
> controllers to match the hints on systems where the BIOS does not
> include 0x3f0 in the list of resources for the floppy drive (see the
> comments above fdc_isa_alloc_resources() for the gory details). This
> should fix the reports of the floppy controller showing up as fdc1
> rather than fdc0.

Thanks - with this patch and /boot/device.hints restored fdc0 is found
and attaches; /dev/fd0 is present again.

-- 
Bruce Cran


More information about the freebsd-current mailing list