summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_dma.c6
-rw-r--r--shared-core/mga_dma.c5
-rw-r--r--shared-core/via_drv.c2
3 files changed, 11 insertions, 2 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index 34552008..cf0333f6 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -761,4 +761,10 @@ void i915_driver_register_fns(drm_device_t *dev)
dev->fn_tbl.irq_postinstall = i915_driver_irq_postinstall;
dev->fn_tbl.irq_uninstall = i915_driver_irq_uninstall;
dev->fn_tbl.irq_handler = i915_driver_irq_handler;
+
+ dev->counters += 4;
+ dev->types[6] = _DRM_STAT_IRQ;
+ dev->types[7] = _DRM_STAT_PRIMARY;
+ dev->types[8] = _DRM_STAT_SECONDARY;
+ dev->types[9] = _DRM_STAT_DMA;
}
diff --git a/shared-core/mga_dma.c b/shared-core/mga_dma.c
index 409f0ab7..0288f1c2 100644
--- a/shared-core/mga_dma.c
+++ b/shared-core/mga_dma.c
@@ -821,4 +821,9 @@ void mga_driver_register_fns(drm_device_t *dev)
dev->fn_tbl.irq_postinstall = mga_driver_irq_postinstall;
dev->fn_tbl.irq_uninstall = mga_driver_irq_uninstall;
dev->fn_tbl.irq_handler = mga_driver_irq_handler;
+
+ dev->counters += 3;
+ dev->types[6] = _DRM_STAT_IRQ;
+ dev->types[7] = _DRM_STAT_PRIMARY;
+ dev->types[8] = _DRM_STAT_SECONDARY;
}
diff --git a/shared-core/via_drv.c b/shared-core/via_drv.c
index 8c4e7480..a6321d04 100644
--- a/shared-core/via_drv.c
+++ b/shared-core/via_drv.c
@@ -52,8 +52,6 @@
[DRM_IOCTL_NR(DRM_IOCTL_VIA_PCICMD)] = { via_pci_cmdbuffer, 1, 0}
-#define __HAVE_COUNTERS 0
-
#include "drm_auth.h"
#include "drm_agpsupport.h"
#include "drm_bufs.h"