Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.13 86 lines 1.9 kB view raw
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 4 * Author: Rob Clark <rob@ti.com> 5 */ 6 7#ifndef __OMAPDRM_DRV_H__ 8#define __OMAPDRM_DRV_H__ 9 10#include <linux/module.h> 11#include <linux/types.h> 12#include <linux/workqueue.h> 13 14#include "dss/omapdss.h" 15#include "dss/dss.h" 16 17#include <drm/drm_gem.h> 18#include <drm/omap_drm.h> 19 20#include "omap_crtc.h" 21#include "omap_encoder.h" 22#include "omap_fb.h" 23#include "omap_fbdev.h" 24#include "omap_gem.h" 25#include "omap_irq.h" 26#include "omap_plane.h" 27 28#define DBG(fmt, ...) DRM_DEBUG_DRIVER(fmt"\n", ##__VA_ARGS__) 29#define VERB(fmt, ...) if (0) DRM_DEBUG_DRIVER(fmt, ##__VA_ARGS__) /* verbose debug */ 30 31#define MODULE_NAME "omapdrm" 32 33struct omap_drm_usergart; 34 35struct omap_drm_pipeline { 36 struct drm_crtc *crtc; 37 struct drm_encoder *encoder; 38 struct drm_connector *connector; 39 struct omap_dss_device *output; 40 unsigned int alias_id; 41}; 42 43struct omap_drm_private { 44 struct drm_device *ddev; 45 struct device *dev; 46 u32 omaprev; 47 48 struct dss_device *dss; 49 struct dispc_device *dispc; 50 51 unsigned int num_pipes; 52 struct omap_drm_pipeline pipes[8]; 53 struct omap_drm_pipeline *channels[8]; 54 55 unsigned int num_planes; 56 struct drm_plane *planes[8]; 57 58 struct drm_fb_helper *fbdev; 59 60 struct workqueue_struct *wq; 61 62 /* lock for obj_list below */ 63 struct mutex list_lock; 64 65 /* list of GEM objects: */ 66 struct list_head obj_list; 67 68 struct omap_drm_usergart *usergart; 69 bool has_dmm; 70 71 /* properties: */ 72 struct drm_property *zorder_prop; 73 74 /* irq handling: */ 75 spinlock_t wait_lock; /* protects the wait_list */ 76 struct list_head wait_list; /* list of omap_irq_wait */ 77 u32 irq_mask; /* enabled irqs in addition to wait_list */ 78 79 /* memory bandwidth limit if it is needed on the platform */ 80 unsigned int max_bandwidth; 81}; 82 83 84void omap_debugfs_init(struct drm_minor *minor); 85 86#endif /* __OMAPDRM_DRV_H__ */