diff options
author | vehemens <vehemens@verizon.net> | 2008-08-27 19:11:04 -0700 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2008-08-29 15:46:06 -0400 |
commit | 2b278047153df729caf9e516a432b2e76398cd3a (patch) | |
tree | 773cd40a2e2de317995679fc5b4598a0dae2d87d /bsd-core/i915_drv.c | |
parent | 2649103bf9c4eb471a10800f4a3161dca6249086 (diff) |
[FreeBSD] Use driver features macros and flags
Signed-off-by: Robert Noland <rnoland@2hip.net>
Diffstat (limited to 'bsd-core/i915_drv.c')
-rw-r--r-- | bsd-core/i915_drv.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bsd-core/i915_drv.c b/bsd-core/i915_drv.c index d2301ddd..8f21075d 100644 --- a/bsd-core/i915_drv.c +++ b/bsd-core/i915_drv.c @@ -68,6 +68,10 @@ static int i915_resume(device_t nbdev) static void i915_configure(struct drm_device *dev) { + dev->driver->driver_features = + DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | DRIVER_USE_MTRR | + DRIVER_HAVE_IRQ; + dev->driver->buf_priv_size = sizeof(drm_i915_private_t); dev->driver->load = i915_driver_load; dev->driver->unload = i915_driver_unload; @@ -92,13 +96,6 @@ static void i915_configure(struct drm_device *dev) dev->driver->major = DRIVER_MAJOR; dev->driver->minor = DRIVER_MINOR; dev->driver->patchlevel = DRIVER_PATCHLEVEL; - - dev->driver->use_agp = 1; - dev->driver->require_agp = 1; - dev->driver->use_mtrr = 1; - dev->driver->use_irq = 1; - dev->driver->use_vbl_irq = 1; - dev->driver->use_vbl_irq2 = 1; } #ifdef __FreeBSD__ |