Add a read only sysctl tracking the hw.drm.msi tunable.

MFC after:	2 weeks
This commit is contained in:
rnoland 2009-08-23 14:33:12 +00:00
parent f98d8dac77
commit 02d6d1fd6e
2 changed files with 5 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */ \