diff options
| author | Robert Noland <rnoland@FreeBSD.org> | 2009-10-30 16:14:17 +0000 |
|---|---|---|
| committer | Robert Noland <rnoland@FreeBSD.org> | 2009-10-30 16:14:17 +0000 |
| commit | d84490b532c8ce9f9c4440d771c2c8ceb77f3ab0 (patch) | |
| tree | 068bcd3fe23939b2cb60f6b387e4263fffda63a3 /sys/dev/drm | |
| parent | 1587b7fc8724cc5f724b2a4a74abc8208e60ac4b (diff) | |
Notes
Diffstat (limited to 'sys/dev/drm')
| -rw-r--r-- | sys/dev/drm/drmP.h | 2 | ||||
| -rw-r--r-- | sys/dev/drm/drm_drv.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/drm/drmP.h b/sys/dev/drm/drmP.h index 9c5f4a470c6e..cad2cee623ae 100644 --- a/sys/dev/drm/drmP.h +++ b/sys/dev/drm/drmP.h @@ -148,6 +148,8 @@ MALLOC_DECLARE(DRM_MEM_CTXBITMAP); MALLOC_DECLARE(DRM_MEM_SGLISTS); MALLOC_DECLARE(DRM_MEM_DRAWABLE); +SYSCTL_DECL(_hw_drm); + #define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8) /* Internal types and structures */ diff --git a/sys/dev/drm/drm_drv.c b/sys/dev/drm/drm_drv.c index 1fb8342d5671..c690c34dfa35 100644 --- a/sys/dev/drm/drm_drv.c +++ b/sys/dev/drm/drm_drv.c @@ -133,6 +133,9 @@ static struct cdevsw drm_cdevsw = { static int drm_msi = 1; /* Enable by default. */ TUNABLE_INT("hw.drm.msi", &drm_msi); +SYSCTL_NODE(_hw, OID_AUTO, drm, CTLFLAG_RW, NULL, "DRM device"); +SYSCTL_INT(_hw_drm, OID_AUTO, msi, CTLFLAG_RDTUN, &drm_msi, 1, + "Enable MSI interrupts for drm devices"); static struct drm_msi_blacklist_entry drm_msi_blacklist[] = { {0x8086, 0x2772}, /* Intel i945G */ \ |
