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

Collapse All | Expand All

(-)sys/dev/agp/agp.c (+15 lines)
Lines 256-264 Link Here
256
	TAILQ_INIT(&sc->as_memory);
256
	TAILQ_INIT(&sc->as_memory);
257
	sc->as_nextid = 1;
257
	sc->as_nextid = 1;
258
258
259
device_printf(dev, "==== make_dev agpgart for %#x ====\n", pci_get_devid(dev));
260
DELAY(4000000);
261
#if 0
259
	sc->as_devnode = make_dev(&agp_cdevsw,
262
	sc->as_devnode = make_dev(&agp_cdevsw,
260
	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
263
	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
261
	sc->as_devnode->si_drv1 = dev;
264
	sc->as_devnode->si_drv1 = dev;
265
#else
266
	sc->as_devnode = make_dev_credf(MAKEDEV_CHECKNAME, &agp_cdevsw,
267
	    0, NULL, UID_ROOT, GID_WHEEL, 0600, "agpgart");
268
device_printf(dev, "==== sc->as_devnode: %p ====\n", sc->as_devnode);
269
	if (sc->as_devnode == NULL) {
270
	} else {
271
device_printf(dev, "==== sc->as_devnode->si_drv1: %p ====\n", sc->as_devnode->si_drv1);
272
		sc->as_devnode->si_drv1 = dev;
273
device_printf(dev, "==== sc->as_devnode->si_drv1: %p ====\n", sc->as_devnode->si_drv1);
274
	}
275
DELAY(4000000);
276
#endif
262
277
263
	return 0;
278
	return 0;
264
}
279
}

Return to bug 187015