From 1bbc1eaa87c45b5c1bc65557a95d2553b795c9b2 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 20 Dec 2005 22:44:36 +0000 Subject: - Bump FreeBSD version for the hostb(4) and vgapci(4) drivers as well as the addition of pci_find_extcap(). - Change the drm drivers to attach to vgapci. This is #ifdef'd so the code can be shared across branches. - Use pci_find_extcap() to look for AGP and PCIE capabilities in drm. - GC all the drmsub stuff for i810/i830/i915. The agp and drm devices are now both children of vgapci. --- sys/dev/drm/r128_drv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/drm/r128_drv.c') diff --git a/sys/dev/drm/r128_drv.c b/sys/dev/drm/r128_drv.c index e79dcbe..71b4259 100644 --- a/sys/dev/drm/r128_drv.c +++ b/sys/dev/drm/r128_drv.c @@ -109,7 +109,11 @@ static driver_t r128_driver = { }; extern devclass_t drm_devclass; +#if __FreeBSD_version >= 700010 +DRIVER_MODULE(r128, vgapci, r128_driver, drm_devclass, 0, 0); +#else DRIVER_MODULE(r128, pci, r128_driver, drm_devclass, 0, 0); +#endif MODULE_DEPEND(r128, drm, 1, 1, 1); #elif defined(__NetBSD__) || defined(__OpenBSD__) -- cgit v1.1