Add a few more bits of Tonnerre's NetBSD port (Still need to deal with the
    device attachment).
diff --git a/bsd-core/tdfx_drv.c b/bsd-core/tdfx_drv.c
index 036d8ec..98ae9ae 100644
--- a/bsd-core/tdfx_drv.c
+++ b/bsd-core/tdfx_drv.c
@@ -97,5 +97,10 @@
 MODULE_DEPEND(tdfx, drm, 1, 1, 1);
 
 #elif defined(__NetBSD__) || defined(__OpenBSD__)
+#ifdef _LKM
 CFDRIVER_DECL(tdfx, DV_TTY, NULL);
+#else
+CFATTACH_DECL(tdfx, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
+    drm_activate);
+#endif
 #endif