Re: [PATCH] Adjust hints matching for ACPI devices

From: Bruce Cran <bruce_at_cran.org.uk>
Date: Sat, 22 Aug 2009 07:13:16 +0100
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
Received on Sat Aug 22 2009 - 04:13:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:54 UTC