viapropm doesnt like sys/dev/pci.c rev 1.214
Nicolas Souchu
nsouch at free.fr
Tue Jun 3 22:16:07 PDT 2003
On Tue, Jun 03, 2003 at 10:54:30AM -0700, David P. Reese Jr. wrote:
[...]
> : The datasheet states that the command bits are RW but "fixed at 0".
>
> A snip of code from sys/dev/pci/pci.c:pci_enable_io_method():
>
> pci_set_command_bit(dev, child, bit);
> command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
> if (command & bit)
> return (0);
> device_printf(child, "failed to enable %s mapping!\n", error);
> return (ENXIO);
>
> Because the viapropm's command register bits will always read as zero,
> this code will always fail when trying to enable port mapping.
>
> Whatever problems viapropm may have, it is the new pci code that prevents it
> from attaching. It is not the fault of anything in sys/pci/viapm.c.
And I personally don't know how to fix it except by an option with an
ifdef to workaround it.
--
Nicholas Souchu - nsouch at free.fr - nsouch at FreeBSD.org
More information about the freebsd-current
mailing list