FreeBSD/sys/dev/xen/pcifront/pcifront.c
/* Newbus xen pcib device driver probe */
Newbus xen pcib device driver probe
Newbus xen pcib device driver probe
static int
xpcib_probe(device_t dev)
{
	struct xpcib_softc *sc = (struct xpcib_softc *)device_get_softc(dev);
	struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(device_get_parent(dev));
	DPRINTF("xpcib probe (bus=%d)\n", device_get_unit(dev));
	sc->domain = pdev->xdev->otherend_id;
	sc->bus = device_get_unit(dev);
	sc->pdev = pdev;
	return 0;
}
static int xpcib_probe ( device_t dev ) { struct xpcib_softc * sc = ( struct xpcib_softc * ) device_get_softc ( dev ) ; struct pcifront_device * pdev = ( struct pcifront_device * ) device_get_ivars ( device_get_parent ( dev ) ) ; DPRINTF ( " \n " , device_get_unit ( dev ) ) ; sc -> domain = pdev -> xdev -> otherend_id ; sc -> bus = device_get_unit ( dev ) ; sc -> pdev = pdev ; return 0 ; }
Newbus xen pcib device driver probe
Newbus xen pcib device driver probe