aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-10 03:04:22 -0400
committerDave Airlie <airlied@linux.ie>2005-07-10 03:04:22 -0400
commitd84f76d37c5eebb94c48337958d5a2ff2965c02d (patch)
treece59b2cb9d82420a1b41b184813a36c918069552 /drivers/char/drm
parentaff138ab8ec340c23e7c6e1a95c1518ee832a8c6 (diff)
drm: export symbols for use by drivers
This just exports symbols for use in drivers. From: Ian Romanick <idr@us.ibm.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r--drivers/char/drm/drm_agpsupport.c1
-rw-r--r--drivers/char/drm/drm_bufs.c2
-rw-r--r--drivers/char/drm/drm_memory.c4
3 files changed, 7 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_agpsupport.c b/drivers/char/drm/drm_agpsupport.c
index 10c8b4daec51..d413da00329d 100644
--- a/drivers/char/drm/drm_agpsupport.c
+++ b/drivers/char/drm/drm_agpsupport.c
@@ -459,6 +459,7 @@ int drm_agp_bind_memory(DRM_AGP_MEM *handle, off_t start)
459 return -EINVAL; 459 return -EINVAL;
460 return agp_bind_memory(handle, start); 460 return agp_bind_memory(handle, start);
461} 461}
462EXPORT_SYMBOL(drm_agp_bind_memory);
462 463
463/** Calls agp_unbind_memory() */ 464/** Calls agp_unbind_memory() */
464int drm_agp_unbind_memory(DRM_AGP_MEM *handle) 465int drm_agp_unbind_memory(DRM_AGP_MEM *handle)
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c
index cd4636f7f187..d0b1eb6ba6ca 100644
--- a/drivers/char/drm/drm_bufs.c
+++ b/drivers/char/drm/drm_bufs.c
@@ -561,6 +561,7 @@ static int drm_addbufs_agp(drm_device_t *dev, drm_buf_desc_t *request)
561 atomic_dec( &dev->buf_alloc ); 561 atomic_dec( &dev->buf_alloc );
562 return 0; 562 return 0;
563} 563}
564EXPORT_SYMBOL(drm_addbufs_agp);
564#endif /* __OS_HAS_AGP */ 565#endif /* __OS_HAS_AGP */
565 566
566static int drm_addbufs_pci(drm_device_t *dev, drm_buf_desc_t *request) 567static int drm_addbufs_pci(drm_device_t *dev, drm_buf_desc_t *request)
@@ -781,6 +782,7 @@ static int drm_addbufs_pci(drm_device_t *dev, drm_buf_desc_t *request)
781 return 0; 782 return 0;
782 783
783} 784}
785EXPORT_SYMBOL(drm_addbufs_pci);
784 786
785static int drm_addbufs_sg(drm_device_t *dev, drm_buf_desc_t *request) 787static int drm_addbufs_sg(drm_device_t *dev, drm_buf_desc_t *request)
786{ 788{
diff --git a/drivers/char/drm/drm_memory.c b/drivers/char/drm/drm_memory.c
index ace3d42f4407..ef66494b854d 100644
--- a/drivers/char/drm/drm_memory.c
+++ b/drivers/char/drm/drm_memory.c
@@ -146,23 +146,27 @@ DRM_AGP_MEM *drm_alloc_agp(struct agp_bridge_data *bridge, int pages, u32 type)
146{ 146{
147 return drm_agp_allocate_memory(bridge, pages, type); 147 return drm_agp_allocate_memory(bridge, pages, type);
148} 148}
149EXPORT_SYMBOL(drm_alloc_agp);
149 150
150/** Wrapper around agp_free_memory() */ 151/** Wrapper around agp_free_memory() */
151int drm_free_agp(DRM_AGP_MEM *handle, int pages) 152int drm_free_agp(DRM_AGP_MEM *handle, int pages)
152{ 153{
153 return drm_agp_free_memory(handle) ? 0 : -EINVAL; 154 return drm_agp_free_memory(handle) ? 0 : -EINVAL;
154} 155}
156EXPORT_SYMBOL(drm_free_agp);
155 157
156/** Wrapper around agp_bind_memory() */ 158/** Wrapper around agp_bind_memory() */
157int drm_bind_agp(DRM_AGP_MEM *handle, unsigned int start) 159int drm_bind_agp(DRM_AGP_MEM *handle, unsigned int start)
158{ 160{
159 return drm_agp_bind_memory(handle, start); 161 return drm_agp_bind_memory(handle, start);
160} 162}
163EXPORT_SYMBOL(drm_bind_agp);
161 164
162/** Wrapper around agp_unbind_memory() */ 165/** Wrapper around agp_unbind_memory() */
163int drm_unbind_agp(DRM_AGP_MEM *handle) 166int drm_unbind_agp(DRM_AGP_MEM *handle)
164{ 167{
165 return drm_agp_unbind_memory(handle); 168 return drm_agp_unbind_memory(handle);
166} 169}
170EXPORT_SYMBOL(drm_unbind_agp);
167#endif /* agp */ 171#endif /* agp */
168#endif /* debug_memory */ 172#endif /* debug_memory */