In message: <[EMAIL PROTECTED]> "Daniel O'Connor" <[EMAIL PROTECTED]> writes: : In the Linux driver there is stuff like -> : if ((rc = pcibios_read_config_byte(bus, dev_fn, PCI_DC_SIO_PORT, : &nport)) != PCIBIOS_SUCCESSFUL) break; : : And I think the equiv would be -> : tmp = pci_read_config(dev, PCI_DC_SIO_PORT, /*bytes*/1); : printf("pccom: number of ports - %d\n", tmp); : : : However this just ends up printing 0. : : (PCI_DC_SIO_PORT is 0x2f)
Do you have the right dev? bcr = pci_read_config(sp->sc->dev, CB_PCI_BRIDGE_CTRL, 2); is what I use in the pccard bridge pci driver and it works. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message