FreeBSD/sys/dev/pci/pci_pci.c
/*
 * Since we are a child of a PCI bus, its parent must support the pcib interface.
 */
Since we are a child of a PCI bus, its parent must support the pcib interface.
Since we are a child of a PCI bus its parent must support the pcib interface .
static uint32_t
pcib_read_config(device_t dev, u_int b, u_int s, u_int f, u_int reg, int width)
{
#ifdef PCI_HP
	struct pcib_softc *sc;
	sc = device_get_softc(dev);
	if (!pcib_present(sc)) {
		switch (width) {
		case 2:
			return (0xffff);
		case 1:
			return (0xff);
		default:
			return (0xffffffff);
		}
	}
#endif
	pcib_xlate_ari(dev, b, &s, &f);
	return(PCIB_READ_CONFIG(device_get_parent(device_get_parent(dev)), b, s,
	    f, reg, width));
}
static uint32_t pcib_read_config ( device_t dev , u_int b , u_int s , u_int f , u_int reg , int width ) { #ifdef PCI_HP struct pcib_softc * sc ; sc = device_get_softc ( dev ) ; if ( ! pcib_present ( sc ) ) { switch ( width ) { case 2 : return ( 0xffff ) ; case 1 : return ( 0xff ) ; default : return ( 0xffffffff ) ; } } #endif pcib_xlate_ari ( dev , b , & s , & f ) ; return ( PCIB_READ_CONFIG ( device_get_parent ( device_get_parent ( dev ) ) , b , s , f , reg , width ) ) ; }
Since we are a child of a PCI bus, its parent must support the pcib interface.
Since we are a child of a PCI bus its parent must support the pcib interface .