aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-10 05:24:35 -0400
committerDave Airlie <airlied@linux.ie>2005-07-10 05:24:35 -0400
commitd01cff408057fa925b2f766fa1fd5a305fd1acbf (patch)
tree26efcd2c8646af15203f46c8351d930fd869b0e9 /drivers/char/drm
parent6795c985a648d1e90b367cc1387c18205ecca4b8 (diff)
drm: add mga driver callbacks
Add some missing driver callback for the PCI support Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r--drivers/char/drm/mga_drv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/char/drm/mga_drv.c b/drivers/char/drm/mga_drv.c
index 94af13bc66a4..daabbba3b297 100644
--- a/drivers/char/drm/mga_drv.c
+++ b/drivers/char/drm/mga_drv.c
@@ -41,6 +41,12 @@
41static int mga_driver_device_is_agp(drm_device_t * dev); 41static int mga_driver_device_is_agp(drm_device_t * dev);
42static int postinit( struct drm_device *dev, unsigned long flags ) 42static int postinit( struct drm_device *dev, unsigned long flags )
43{ 43{
44 drm_mga_private_t * const dev_priv =
45 (drm_mga_private_t *) dev->dev_private;
46
47 dev_priv->mmio_base = pci_resource_start(dev->pdev, 1);
48 dev_priv->mmio_size = pci_resource_len(dev->pdev, 1);
49
44 dev->counters += 3; 50 dev->counters += 3;
45 dev->types[6] = _DRM_STAT_IRQ; 51 dev->types[6] = _DRM_STAT_IRQ;
46 dev->types[7] = _DRM_STAT_PRIMARY; 52 dev->types[7] = _DRM_STAT_PRIMARY;
@@ -80,6 +86,8 @@ extern int mga_max_ioctl;
80 86
81static struct drm_driver driver = { 87static struct drm_driver driver = {
82 .driver_features = DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | DRIVER_USE_MTRR | DRIVER_HAVE_DMA | DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_IRQ_VBL, 88 .driver_features = DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | DRIVER_USE_MTRR | DRIVER_HAVE_DMA | DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_IRQ_VBL,
89 .preinit = mga_driver_preinit,
90 .postcleanup = mga_driver_postcleanup,
83 .pretakedown = mga_driver_pretakedown, 91 .pretakedown = mga_driver_pretakedown,
84 .dma_quiescent = mga_driver_dma_quiescent, 92 .dma_quiescent = mga_driver_dma_quiescent,
85 .device_is_agp = mga_driver_device_is_agp, 93 .device_is_agp = mga_driver_device_is_agp,