aboutsummaryrefslogtreecommitdiff
path: root/bsd-core/tdfx_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/tdfx_drv.c')
-rw-r--r--bsd-core/tdfx_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-core/tdfx_drv.c b/bsd-core/tdfx_drv.c
index 60427836..5eb56f83 100644
--- a/bsd-core/tdfx_drv.c
+++ b/bsd-core/tdfx_drv.c
@@ -90,7 +90,11 @@ static driver_t tdfx_driver = {
};
extern devclass_t drm_devclass;
+#if __FreeBSD_version >= 700010
+DRIVER_MODULE(tdfx, vgapci, tdfx_driver, drm_devclass, 0, 0);
+#else
DRIVER_MODULE(tdfx, pci, tdfx_driver, drm_devclass, 0, 0);
+#endif
MODULE_DEPEND(tdfx, drm, 1, 1, 1);
#elif defined(__NetBSD__) || defined(__OpenBSD__)