From 751765dba5b15f431a12308e09237d895c65e471 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 6 Jun 2005 06:45:41 +0000 Subject: Add a few more bits of Tonnerre's NetBSD port (Still need to deal with the device attachment). --- bsd-core/mga_drv.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bsd-core/mga_drv.c') diff --git a/bsd-core/mga_drv.c b/bsd-core/mga_drv.c index e088ceca..6034212c 100644 --- a/bsd-core/mga_drv.c +++ b/bsd-core/mga_drv.c @@ -141,5 +141,10 @@ DRIVER_MODULE(mga, pci, mga_driver, drm_devclass, 0, 0); MODULE_DEPEND(mga, drm, 1, 1, 1); #elif defined(__NetBSD__) || defined(__OpenBSD__) +#ifdef _LKM CFDRIVER_DECL(mga, DV_TTY, NULL); +#else +CFATTACH_DECL(mga, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach, + drm_activate); +#endif #endif -- cgit v1.2.3