diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-07-07 07:03:38 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-07-07 07:03:38 -0400 |
commit | c94f70298529d99ac6e1ee7709f61eab00adeb39 (patch) | |
tree | 8e61aadcec3bd299a838cd640bf104eedee61ec3 /drivers/char/drm/drmP.h | |
parent | b9523249de59c49e7c2cc83dfa73fb011a489a45 (diff) |
drm: misc cleanup
This patch contains the following cleanups:
- make needlessly global functions static
- remove the following unused global functions:
- drm_fops.c: drm_read
- i915_dma.c: i915_do_cleanup_pageflip
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r-- | drivers/char/drm/drmP.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 2c7b1fc3bb2e..5df09cc8c6db 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h | |||
@@ -774,8 +774,6 @@ extern int drm_cpu_valid( void ); | |||
774 | /* Driver support (drm_drv.h) */ | 774 | /* Driver support (drm_drv.h) */ |
775 | extern int drm_init(struct drm_driver *driver); | 775 | extern int drm_init(struct drm_driver *driver); |
776 | extern void drm_exit(struct drm_driver *driver); | 776 | extern void drm_exit(struct drm_driver *driver); |
777 | extern int drm_version(struct inode *inode, struct file *filp, | ||
778 | unsigned int cmd, unsigned long arg); | ||
779 | extern int drm_ioctl(struct inode *inode, struct file *filp, | 777 | extern int drm_ioctl(struct inode *inode, struct file *filp, |
780 | unsigned int cmd, unsigned long arg); | 778 | unsigned int cmd, unsigned long arg); |
781 | extern long drm_compat_ioctl(struct file *filp, | 779 | extern long drm_compat_ioctl(struct file *filp, |
@@ -785,21 +783,13 @@ extern int drm_takedown(drm_device_t * dev); | |||
785 | /* Device support (drm_fops.h) */ | 783 | /* Device support (drm_fops.h) */ |
786 | extern int drm_open(struct inode *inode, struct file *filp); | 784 | extern int drm_open(struct inode *inode, struct file *filp); |
787 | extern int drm_stub_open(struct inode *inode, struct file *filp); | 785 | extern int drm_stub_open(struct inode *inode, struct file *filp); |
788 | extern int drm_open_helper(struct inode *inode, struct file *filp, | ||
789 | drm_device_t *dev); | ||
790 | extern int drm_flush(struct file *filp); | 786 | extern int drm_flush(struct file *filp); |
791 | extern int drm_fasync(int fd, struct file *filp, int on); | 787 | extern int drm_fasync(int fd, struct file *filp, int on); |
792 | extern int drm_release(struct inode *inode, struct file *filp); | 788 | extern int drm_release(struct inode *inode, struct file *filp); |
793 | 789 | ||
794 | /* Mapping support (drm_vm.h) */ | 790 | /* Mapping support (drm_vm.h) */ |
795 | extern void drm_vm_open(struct vm_area_struct *vma); | ||
796 | extern void drm_vm_close(struct vm_area_struct *vma); | ||
797 | extern void drm_vm_shm_close(struct vm_area_struct *vma); | ||
798 | extern int drm_mmap_dma(struct file *filp, | ||
799 | struct vm_area_struct *vma); | ||
800 | extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); | 791 | extern int drm_mmap(struct file *filp, struct vm_area_struct *vma); |
801 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); | 792 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); |
802 | extern ssize_t drm_read(struct file *filp, char __user *buf, size_t count, loff_t *off); | ||
803 | 793 | ||
804 | /* Memory management support (drm_memory.h) */ | 794 | /* Memory management support (drm_memory.h) */ |
805 | #include "drm_memory.h" | 795 | #include "drm_memory.h" |
@@ -853,9 +843,6 @@ extern int drm_newctx( struct inode *inode, struct file *filp, | |||
853 | extern int drm_rmctx( struct inode *inode, struct file *filp, | 843 | extern int drm_rmctx( struct inode *inode, struct file *filp, |
854 | unsigned int cmd, unsigned long arg ); | 844 | unsigned int cmd, unsigned long arg ); |
855 | 845 | ||
856 | extern int drm_context_switch(drm_device_t *dev, int old, int new); | ||
857 | extern int drm_context_switch_complete(drm_device_t *dev, int new); | ||
858 | |||
859 | extern int drm_ctxbitmap_init( drm_device_t *dev ); | 846 | extern int drm_ctxbitmap_init( drm_device_t *dev ); |
860 | extern void drm_ctxbitmap_cleanup( drm_device_t *dev ); | 847 | extern void drm_ctxbitmap_cleanup( drm_device_t *dev ); |
861 | extern void drm_ctxbitmap_free( drm_device_t *dev, int ctx_handle ); | 848 | extern void drm_ctxbitmap_free( drm_device_t *dev, int ctx_handle ); |
@@ -873,9 +860,6 @@ extern int drm_rmdraw(struct inode *inode, struct file *filp, | |||
873 | 860 | ||
874 | 861 | ||
875 | /* Authentication IOCTL support (drm_auth.h) */ | 862 | /* Authentication IOCTL support (drm_auth.h) */ |
876 | extern int drm_add_magic(drm_device_t *dev, drm_file_t *priv, | ||
877 | drm_magic_t magic); | ||
878 | extern int drm_remove_magic(drm_device_t *dev, drm_magic_t magic); | ||
879 | extern int drm_getmagic(struct inode *inode, struct file *filp, | 863 | extern int drm_getmagic(struct inode *inode, struct file *filp, |
880 | unsigned int cmd, unsigned long arg); | 864 | unsigned int cmd, unsigned long arg); |
881 | extern int drm_authmagic(struct inode *inode, struct file *filp, | 865 | extern int drm_authmagic(struct inode *inode, struct file *filp, |
@@ -892,13 +876,9 @@ extern int drm_unlock(struct inode *inode, struct file *filp, | |||
892 | unsigned int cmd, unsigned long arg); | 876 | unsigned int cmd, unsigned long arg); |
893 | extern int drm_lock_take(__volatile__ unsigned int *lock, | 877 | extern int drm_lock_take(__volatile__ unsigned int *lock, |
894 | unsigned int context); | 878 | unsigned int context); |
895 | extern int drm_lock_transfer(drm_device_t *dev, | ||
896 | __volatile__ unsigned int *lock, | ||
897 | unsigned int context); | ||
898 | extern int drm_lock_free(drm_device_t *dev, | 879 | extern int drm_lock_free(drm_device_t *dev, |
899 | __volatile__ unsigned int *lock, | 880 | __volatile__ unsigned int *lock, |
900 | unsigned int context); | 881 | unsigned int context); |
901 | extern int drm_notifier(void *priv); | ||
902 | 882 | ||
903 | /* Buffer management support (drm_bufs.h) */ | 883 | /* Buffer management support (drm_bufs.h) */ |
904 | extern int drm_order( unsigned long size ); | 884 | extern int drm_order( unsigned long size ); |
@@ -926,7 +906,6 @@ extern void drm_core_reclaim_buffers(drm_device_t *dev, struct file *filp); | |||
926 | /* IRQ support (drm_irq.h) */ | 906 | /* IRQ support (drm_irq.h) */ |
927 | extern int drm_control( struct inode *inode, struct file *filp, | 907 | extern int drm_control( struct inode *inode, struct file *filp, |
928 | unsigned int cmd, unsigned long arg ); | 908 | unsigned int cmd, unsigned long arg ); |
929 | extern int drm_irq_install( drm_device_t *dev ); | ||
930 | extern int drm_irq_uninstall( drm_device_t *dev ); | 909 | extern int drm_irq_uninstall( drm_device_t *dev ); |
931 | extern irqreturn_t drm_irq_handler( DRM_IRQ_ARGS ); | 910 | extern irqreturn_t drm_irq_handler( DRM_IRQ_ARGS ); |
932 | extern void drm_driver_irq_preinstall( drm_device_t *dev ); | 911 | extern void drm_driver_irq_preinstall( drm_device_t *dev ); |
@@ -966,7 +945,6 @@ extern int drm_agp_unbind_memory(DRM_AGP_MEM *handle); | |||
966 | extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, | 945 | extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, |
967 | struct drm_driver *driver); | 946 | struct drm_driver *driver); |
968 | extern int drm_put_dev(drm_device_t * dev); | 947 | extern int drm_put_dev(drm_device_t * dev); |
969 | extern int drm_get_head(drm_device_t * dev, drm_head_t *head); | ||
970 | extern int drm_put_head(drm_head_t * head); | 948 | extern int drm_put_head(drm_head_t * head); |
971 | extern unsigned int drm_debug; | 949 | extern unsigned int drm_debug; |
972 | extern unsigned int drm_cards_limit; | 950 | extern unsigned int drm_cards_limit; |