11b13d190SFrançois Tigeot /* 21b13d190SFrançois Tigeot * Copyright © 2014 Intel Corporation 31b13d190SFrançois Tigeot * Daniel Vetter <daniel.vetter@ffwll.ch> 41b13d190SFrançois Tigeot * 51b13d190SFrançois Tigeot * Permission is hereby granted, free of charge, to any person obtaining a 61b13d190SFrançois Tigeot * copy of this software and associated documentation files (the "Software"), 71b13d190SFrançois Tigeot * to deal in the Software without restriction, including without limitation 81b13d190SFrançois Tigeot * the rights to use, copy, modify, merge, publish, distribute, sublicense, 91b13d190SFrançois Tigeot * and/or sell copies of the Software, and to permit persons to whom the 101b13d190SFrançois Tigeot * Software is furnished to do so, subject to the following conditions: 111b13d190SFrançois Tigeot * 121b13d190SFrançois Tigeot * The above copyright notice and this permission notice shall be included in 131b13d190SFrançois Tigeot * all copies or substantial portions of the Software. 141b13d190SFrançois Tigeot * 151b13d190SFrançois Tigeot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 161b13d190SFrançois Tigeot * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 171b13d190SFrançois Tigeot * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 181b13d190SFrançois Tigeot * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 191b13d190SFrançois Tigeot * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 201b13d190SFrançois Tigeot * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 211b13d190SFrançois Tigeot * OTHER DEALINGS IN THE SOFTWARE. 221b13d190SFrançois Tigeot */ 231b13d190SFrançois Tigeot 242c9916cdSFrançois Tigeot /* drm_irq.c */ 252c9916cdSFrançois Tigeot extern unsigned int drm_timestamp_monotonic; 262c9916cdSFrançois Tigeot 272c9916cdSFrançois Tigeot /* drm_fops.c */ 282c9916cdSFrançois Tigeot extern struct lock drm_global_mutex; 298621f407SFrançois Tigeot void drm_lastclose(struct drm_device *dev); 302c9916cdSFrançois Tigeot 312c9916cdSFrançois Tigeot /* drm_pci.c */ 322c9916cdSFrançois Tigeot int drm_pci_set_unique(struct drm_device *dev, 332c9916cdSFrançois Tigeot struct drm_master *master, 342c9916cdSFrançois Tigeot struct drm_unique *u); 352c9916cdSFrançois Tigeot int drm_irq_by_busid(struct drm_device *dev, void *data, 362c9916cdSFrançois Tigeot struct drm_file *file_priv); 37*8a697a22SFrançois Tigeot int drm_getpciinfo(struct drm_device *dev, void *data, 38*8a697a22SFrançois Tigeot struct drm_file *file_priv); 392c9916cdSFrançois Tigeot 402c9916cdSFrançois Tigeot /* drm_vm.c */ 412c9916cdSFrançois Tigeot int drm_vma_info(struct seq_file *m, void *data); 422c9916cdSFrançois Tigeot 432c9916cdSFrançois Tigeot /* drm_prime.c */ 442c9916cdSFrançois Tigeot #if 0 452c9916cdSFrançois Tigeot int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data, 462c9916cdSFrançois Tigeot struct drm_file *file_priv); 472c9916cdSFrançois Tigeot int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data, 482c9916cdSFrançois Tigeot struct drm_file *file_priv); 492c9916cdSFrançois Tigeot 502c9916cdSFrançois Tigeot void drm_prime_init_file_private(struct drm_prime_file_private *prime_fpriv); 512c9916cdSFrançois Tigeot void drm_prime_destroy_file_private(struct drm_prime_file_private *prime_fpriv); 522c9916cdSFrançois Tigeot void drm_prime_remove_buf_handle_locked(struct drm_prime_file_private *prime_fpriv, 532c9916cdSFrançois Tigeot struct dma_buf *dma_buf); 542c9916cdSFrançois Tigeot #endif 552c9916cdSFrançois Tigeot 562c9916cdSFrançois Tigeot /* drm_info.c */ 572c9916cdSFrançois Tigeot int drm_name_info(struct seq_file *m, void *data); 582c9916cdSFrançois Tigeot int drm_vm_info(struct seq_file *m, void *data); 592c9916cdSFrançois Tigeot int drm_bufs_info(struct seq_file *m, void *data); 602c9916cdSFrançois Tigeot int drm_clients_info(struct seq_file *m, void* data); 612c9916cdSFrançois Tigeot int drm_gem_name_info(struct seq_file *m, void *data); 622c9916cdSFrançois Tigeot 632c9916cdSFrançois Tigeot /* drm_irq.c */ 642c9916cdSFrançois Tigeot int drm_control(struct drm_device *dev, void *data, 652c9916cdSFrançois Tigeot struct drm_file *file_priv); 662c9916cdSFrançois Tigeot int drm_modeset_ctl(struct drm_device *dev, void *data, 672c9916cdSFrançois Tigeot struct drm_file *file_priv); 682c9916cdSFrançois Tigeot 692c9916cdSFrançois Tigeot /* drm_auth.c */ 702c9916cdSFrançois Tigeot int drm_getmagic(struct drm_device *dev, void *data, 712c9916cdSFrançois Tigeot struct drm_file *file_priv); 722c9916cdSFrançois Tigeot int drm_authmagic(struct drm_device *dev, void *data, 732c9916cdSFrançois Tigeot struct drm_file *file_priv); 742c9916cdSFrançois Tigeot 752c9916cdSFrançois Tigeot /* drm_sysfs.c */ 762c9916cdSFrançois Tigeot extern struct class *drm_class; 772c9916cdSFrançois Tigeot 78352ff8bdSFrançois Tigeot int drm_sysfs_init(void); 792c9916cdSFrançois Tigeot void drm_sysfs_destroy(void); 802c9916cdSFrançois Tigeot struct device *drm_sysfs_minor_alloc(struct drm_minor *minor); 812c9916cdSFrançois Tigeot int drm_sysfs_connector_add(struct drm_connector *connector); 822c9916cdSFrançois Tigeot void drm_sysfs_connector_remove(struct drm_connector *connector); 832c9916cdSFrançois Tigeot 841b13d190SFrançois Tigeot /* drm_gem.c */ 851b13d190SFrançois Tigeot int drm_gem_init(struct drm_device *dev); 861b13d190SFrançois Tigeot void drm_gem_destroy(struct drm_device *dev); 871b13d190SFrançois Tigeot int drm_gem_handle_create_tail(struct drm_file *file_priv, 881b13d190SFrançois Tigeot struct drm_gem_object *obj, 891b13d190SFrançois Tigeot u32 *handlep); 902c9916cdSFrançois Tigeot int drm_gem_close_ioctl(struct drm_device *dev, void *data, 912c9916cdSFrançois Tigeot struct drm_file *file_priv); 922c9916cdSFrançois Tigeot int drm_gem_flink_ioctl(struct drm_device *dev, void *data, 932c9916cdSFrançois Tigeot struct drm_file *file_priv); 942c9916cdSFrançois Tigeot int drm_gem_open_ioctl(struct drm_device *dev, void *data, 952c9916cdSFrançois Tigeot struct drm_file *file_priv); 962c9916cdSFrançois Tigeot void drm_gem_open(struct drm_device *dev, struct drm_file *file_private); 972c9916cdSFrançois Tigeot void drm_gem_release(struct drm_device *dev, struct drm_file *file_private); 982c9916cdSFrançois Tigeot 992c9916cdSFrançois Tigeot /* drm_drv.c */ 1002c9916cdSFrançois Tigeot int drm_setmaster_ioctl(struct drm_device *dev, void *data, 1012c9916cdSFrançois Tigeot struct drm_file *file_priv); 1022c9916cdSFrançois Tigeot int drm_dropmaster_ioctl(struct drm_device *dev, void *data, 1032c9916cdSFrançois Tigeot struct drm_file *file_priv); 1042c9916cdSFrançois Tigeot struct drm_master *drm_master_create(struct drm_minor *minor); 1052c9916cdSFrançois Tigeot 1062c9916cdSFrançois Tigeot /* drm_debugfs.c */ 1072c9916cdSFrançois Tigeot #if defined(CONFIG_DEBUG_FS) 1082c9916cdSFrançois Tigeot int drm_debugfs_init(struct drm_minor *minor, int minor_id, 1092c9916cdSFrançois Tigeot struct dentry *root); 1102c9916cdSFrançois Tigeot int drm_debugfs_cleanup(struct drm_minor *minor); 1112c9916cdSFrançois Tigeot int drm_debugfs_connector_add(struct drm_connector *connector); 1122c9916cdSFrançois Tigeot void drm_debugfs_connector_remove(struct drm_connector *connector); 1132c9916cdSFrançois Tigeot #else 1142c9916cdSFrançois Tigeot static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id, 1152c9916cdSFrançois Tigeot struct dentry *root) 1162c9916cdSFrançois Tigeot { 1172c9916cdSFrançois Tigeot return 0; 1182c9916cdSFrançois Tigeot } 1192c9916cdSFrançois Tigeot 1202c9916cdSFrançois Tigeot static inline int drm_debugfs_cleanup(struct drm_minor *minor) 1212c9916cdSFrançois Tigeot { 1222c9916cdSFrançois Tigeot return 0; 1232c9916cdSFrançois Tigeot } 1242c9916cdSFrançois Tigeot 1252c9916cdSFrançois Tigeot static inline int drm_debugfs_connector_add(struct drm_connector *connector) 1262c9916cdSFrançois Tigeot { 1272c9916cdSFrançois Tigeot return 0; 1282c9916cdSFrançois Tigeot } 1292c9916cdSFrançois Tigeot static inline void drm_debugfs_connector_remove(struct drm_connector *connector) 1302c9916cdSFrançois Tigeot { 1312c9916cdSFrançois Tigeot } 1322c9916cdSFrançois Tigeot #endif 133