"David P. Reese Jr." <[EMAIL PROTECTED]> writes:
> In rev 1.214 of sys/dev/pci/pci.c, we have started checking if a
> pci_set_command_bit() was successful with a subsequent PCI_READ_CONFIG
> and comparing the results.  For some odd reason, this doesnt work when
> my viapropm tries to attach.

viapropm is seriously broken for other reasons and needs professional
help.

>         pci_set_command_bit(dev, child, bit);
>         command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
>         if (command & bit)
>                 return (0);

It should allow the register to "settle" between write and read, which
may take some time (see chipset docs for timing details).  DELAY(1000)
should be OK in an attach function.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to