View | Details | Raw Unified | Return to bug 187015 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/agp/agp.c (+9 lines)
Lines 252-260 Link Here
252
	TAILQ_INIT(&sc->as_memory);
252
	TAILQ_INIT(&sc->as_memory);
253
	sc->as_nextid = 1;
253
	sc->as_nextid = 1;
254
254
255
device_printf(dev, "==== make_dev agpgart for %#x ====\n", pci_get_devid(dev));
256
DELAY(4000000);
255
	sc->as_devnode = make_dev(&agp_cdevsw,
257
	sc->as_devnode = make_dev(&agp_cdevsw,
256
	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
258
	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
259
device_printf(dev, "==== sc->as_devnode: %p ====\n", sc->as_devnode);
260
	if (sc->as_devnode == NULL) {
261
	} else {
262
device_printf(dev, "==== sc->as_devnode->si_drv1: %p ====\n", sc->as_devnode->si_drv1);
257
	sc->as_devnode->si_drv1 = dev;
263
	sc->as_devnode->si_drv1 = dev;
264
device_printf(dev, "==== sc->as_devnode->si_drv1: %p ====\n", sc->as_devnode->si_drv1);
265
	}
266
DELAY(4000000);
258
267
259
	return 0;
268
	return 0;
260
}
269
}

Return to bug 187015