diff options
Diffstat (limited to 'drivers/char/drm/i810_dma.c')
-rw-r--r-- | drivers/char/drm/i810_dma.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/drivers/char/drm/i810_dma.c b/drivers/char/drm/i810_dma.c index dba502373da1..c3178a89615d 100644 --- a/drivers/char/drm/i810_dma.c +++ b/drivers/char/drm/i810_dma.c | |||
@@ -1319,12 +1319,24 @@ static int i810_flip_bufs(struct inode *inode, struct file *filp, | |||
1319 | return 0; | 1319 | return 0; |
1320 | } | 1320 | } |
1321 | 1321 | ||
1322 | void i810_driver_pretakedown(drm_device_t * dev) | 1322 | int i810_driver_load(drm_device_t *dev, unsigned long flags) |
1323 | { | ||
1324 | /* i810 has 4 more counters */ | ||
1325 | dev->counters += 4; | ||
1326 | dev->types[6] = _DRM_STAT_IRQ; | ||
1327 | dev->types[7] = _DRM_STAT_PRIMARY; | ||
1328 | dev->types[8] = _DRM_STAT_SECONDARY; | ||
1329 | dev->types[9] = _DRM_STAT_DMA; | ||
1330 | |||
1331 | return 0; | ||
1332 | } | ||
1333 | |||
1334 | void i810_driver_lastclose(drm_device_t * dev) | ||
1323 | { | 1335 | { |
1324 | i810_dma_cleanup(dev); | 1336 | i810_dma_cleanup(dev); |
1325 | } | 1337 | } |
1326 | 1338 | ||
1327 | void i810_driver_prerelease(drm_device_t * dev, DRMFILE filp) | 1339 | void i810_driver_preclose(drm_device_t * dev, DRMFILE filp) |
1328 | { | 1340 | { |
1329 | if (dev->dev_private) { | 1341 | if (dev->dev_private) { |
1330 | drm_i810_private_t *dev_priv = dev->dev_private; | 1342 | drm_i810_private_t *dev_priv = dev->dev_private; |
@@ -1334,7 +1346,7 @@ void i810_driver_prerelease(drm_device_t * dev, DRMFILE filp) | |||
1334 | } | 1346 | } |
1335 | } | 1347 | } |
1336 | 1348 | ||
1337 | void i810_driver_release(drm_device_t * dev, struct file *filp) | 1349 | void i810_driver_reclaim_buffers_locked(drm_device_t * dev, struct file *filp) |
1338 | { | 1350 | { |
1339 | i810_reclaim_buffers(dev, filp); | 1351 | i810_reclaim_buffers(dev, filp); |
1340 | } | 1352 | } |