diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-10 06:43:56 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-12 09:28:12 -0400 |
commit | 86c1fbd55c6abc72496a45b7cbf1940324983977 (patch) | |
tree | 0e76e288cc6bed10cd8f6f79c44ddcc20220738f /include/drm | |
parent | 78238757ebab54bf0d546dabe119f3a158d418b4 (diff) |
drm: Move drm_memory.c map support declarations to <drm/drm_legacy.h>
And replace the drm_core_ prefix with drm_legacy_ since really, this
isn't core stuff.
Also drop drm_core_dropmap since it's unused.
v2: Fix up i810.ko fully which somehow slipped through.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 18 | ||||
-rw-r--r-- | include/drm/drm_legacy.h | 15 |
2 files changed, 15 insertions, 18 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index ac4ca4b59fdf..4a72db4b4329 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1310,24 +1310,6 @@ struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev, | |||
1310 | struct drm_file *filp, | 1310 | struct drm_file *filp, |
1311 | u32 handle); | 1311 | u32 handle); |
1312 | 1312 | ||
1313 | extern void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev); | ||
1314 | extern void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev); | ||
1315 | extern void drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev); | ||
1316 | |||
1317 | static __inline__ struct drm_local_map *drm_core_findmap(struct drm_device *dev, | ||
1318 | unsigned int token) | ||
1319 | { | ||
1320 | struct drm_map_list *_entry; | ||
1321 | list_for_each_entry(_entry, &dev->maplist, head) | ||
1322 | if (_entry->user_token == token) | ||
1323 | return _entry->map; | ||
1324 | return NULL; | ||
1325 | } | ||
1326 | |||
1327 | static __inline__ void drm_core_dropmap(struct drm_local_map *map) | ||
1328 | { | ||
1329 | } | ||
1330 | |||
1331 | struct drm_device *drm_dev_alloc(struct drm_driver *driver, | 1313 | struct drm_device *drm_dev_alloc(struct drm_driver *driver, |
1332 | struct device *parent); | 1314 | struct device *parent); |
1333 | void drm_dev_ref(struct drm_device *dev); | 1315 | void drm_dev_ref(struct drm_device *dev); |
diff --git a/include/drm/drm_legacy.h b/include/drm/drm_legacy.h index 98626317e48b..cc6e528069a8 100644 --- a/include/drm/drm_legacy.h +++ b/include/drm/drm_legacy.h | |||
@@ -58,4 +58,19 @@ void drm_legacy_idlelock_release(struct drm_lock_data *lock); | |||
58 | /* drm_pci.c dma alloc wrappers */ | 58 | /* drm_pci.c dma alloc wrappers */ |
59 | void __drm_legacy_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah); | 59 | void __drm_legacy_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah); |
60 | 60 | ||
61 | /* drm_memory.c */ | ||
62 | void drm_legacy_ioremap(struct drm_local_map *map, struct drm_device *dev); | ||
63 | void drm_legacy_ioremap_wc(struct drm_local_map *map, struct drm_device *dev); | ||
64 | void drm_legacy_ioremapfree(struct drm_local_map *map, struct drm_device *dev); | ||
65 | |||
66 | static __inline__ struct drm_local_map *drm_legacy_findmap(struct drm_device *dev, | ||
67 | unsigned int token) | ||
68 | { | ||
69 | struct drm_map_list *_entry; | ||
70 | list_for_each_entry(_entry, &dev->maplist, head) | ||
71 | if (_entry->user_token == token) | ||
72 | return _entry->map; | ||
73 | return NULL; | ||
74 | } | ||
75 | |||
61 | #endif /* __DRM_DRM_LEGACY_H__ */ | 76 | #endif /* __DRM_DRM_LEGACY_H__ */ |