~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/drm/drmP.h

Version: ~ [ linux-6.1-rc7 ] ~ [ linux-6.0.10 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.80 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.156 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.225 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.267 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.300 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.334 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Internal Header for the Direct Rendering Manager
  3  *
  4  * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
  5  * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
  6  * Copyright (c) 2009-2010, Code Aurora Forum.
  7  * All rights reserved.
  8  *
  9  * Author: Rickard E. (Rik) Faith <faith@valinux.com>
 10  * Author: Gareth Hughes <gareth@valinux.com>
 11  *
 12  * Permission is hereby granted, free of charge, to any person obtaining a
 13  * copy of this software and associated documentation files (the "Software"),
 14  * to deal in the Software without restriction, including without limitation
 15  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 16  * and/or sell copies of the Software, and to permit persons to whom the
 17  * Software is furnished to do so, subject to the following conditions:
 18  *
 19  * The above copyright notice and this permission notice (including the next
 20  * paragraph) shall be included in all copies or substantial portions of the
 21  * Software.
 22  *
 23  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 24  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 25  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 26  * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 27  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 28  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 29  * OTHER DEALINGS IN THE SOFTWARE.
 30  */
 31 
 32 #ifndef _DRM_P_H_
 33 #define _DRM_P_H_
 34 
 35 #include <linux/agp_backend.h>
 36 #include <linux/cdev.h>
 37 #include <linux/dma-mapping.h>
 38 #include <linux/file.h>
 39 #include <linux/fs.h>
 40 #include <linux/highmem.h>
 41 #include <linux/idr.h>
 42 #include <linux/init.h>
 43 #include <linux/io.h>
 44 #include <linux/jiffies.h>
 45 #include <linux/kernel.h>
 46 #include <linux/kref.h>
 47 #include <linux/miscdevice.h>
 48 #include <linux/mm.h>
 49 #include <linux/mutex.h>
 50 #include <linux/platform_device.h>
 51 #include <linux/poll.h>
 52 #include <linux/ratelimit.h>
 53 #include <linux/sched.h>
 54 #include <linux/slab.h>
 55 #include <linux/types.h>
 56 #include <linux/vmalloc.h>
 57 #include <linux/workqueue.h>
 58 #include <linux/dma-fence.h>
 59 #include <linux/module.h>
 60 
 61 #include <asm/mman.h>
 62 #include <asm/pgalloc.h>
 63 #include <linux/uaccess.h>
 64 
 65 #include <uapi/drm/drm.h>
 66 #include <uapi/drm/drm_mode.h>
 67 
 68 #include <drm/drm_agpsupport.h>
 69 #include <drm/drm_crtc.h>
 70 #include <drm/drm_fourcc.h>
 71 #include <drm/drm_hashtab.h>
 72 #include <drm/drm_mm.h>
 73 #include <drm/drm_os_linux.h>
 74 #include <drm/drm_sarea.h>
 75 #include <drm/drm_drv.h>
 76 #include <drm/drm_prime.h>
 77 #include <drm/drm_print.h>
 78 #include <drm/drm_pci.h>
 79 #include <drm/drm_file.h>
 80 #include <drm/drm_debugfs.h>
 81 #include <drm/drm_ioctl.h>
 82 #include <drm/drm_sysfs.h>
 83 #include <drm/drm_vblank.h>
 84 #include <drm/drm_irq.h>
 85 #include <drm/drm_device.h>
 86 
 87 struct module;
 88 
 89 struct device_node;
 90 struct videomode;
 91 struct reservation_object;
 92 struct dma_buf_attachment;
 93 
 94 struct pci_dev;
 95 struct pci_controller;
 96 
 97 #define DRM_IF_VERSION(maj, min) (maj << 16 | min)
 98 
 99 #define DRM_SWITCH_POWER_ON 0
100 #define DRM_SWITCH_POWER_OFF 1
101 #define DRM_SWITCH_POWER_CHANGING 2
102 #define DRM_SWITCH_POWER_DYNAMIC_OFF 3
103 
104 /* returns true if currently okay to sleep */
105 static inline bool drm_can_sleep(void)
106 {
107         if (in_atomic() || in_dbg_master() || irqs_disabled())
108                 return false;
109         return true;
110 }
111 
112 #if defined(CONFIG_DRM_DEBUG_SELFTEST_MODULE)
113 #define EXPORT_SYMBOL_FOR_TESTS_ONLY(x) EXPORT_SYMBOL(x)
114 #else
115 #define EXPORT_SYMBOL_FOR_TESTS_ONLY(x)
116 #endif
117 
118 #endif
119 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp