summaryrefslogtreecommitdiff
path: root/bsd-core/sis_drv.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-06-06 06:45:41 +0000
committerEric Anholt <anholt@freebsd.org>2005-06-06 06:45:41 +0000
commit751765dba5b15f431a12308e09237d895c65e471 (patch)
tree449413b86789b28e3e9ba33467cdfa96f33bb69d /bsd-core/sis_drv.c
parent805a07714f05833a1ed4e4a01f8086fafd46e849 (diff)
Add a few more bits of Tonnerre's NetBSD port (Still need to deal with the
device attachment).
Diffstat (limited to 'bsd-core/sis_drv.c')
-rw-r--r--bsd-core/sis_drv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsd-core/sis_drv.c b/bsd-core/sis_drv.c
index 985dc4bc..6aa25937 100644
--- a/bsd-core/sis_drv.c
+++ b/bsd-core/sis_drv.c
@@ -96,5 +96,10 @@ DRIVER_MODULE(sisdrm, pci, sis_driver, drm_devclass, 0, 0);
MODULE_DEPEND(sisdrm, drm, 1, 1, 1);
#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#ifdef _LKM
CFDRIVER_DECL(sis, DV_TTY, NULL);
+#else
+CFATTACH_DECL(sis, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
+ drm_activate);
+#endif
#endif