forked from Minki/linux
7ce84471e3
As a result of commit 987d65d013
(drm: debugfs: make
drm_debugfs_create_files() never fail) and changes to various debugfs
functions in drm/core and across various drivers, there is no need for
the drm_driver.debugfs_init() hook to have a return value. Therefore,
declare it as void.
This also includes refactoring all users of the .debugfs_init() hook to
return void across the subsystem.
v2: include changes to the hook and drivers that use it in one patch to
prevent driver breakage and enable individual successful compilation of
this change.
References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html
Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200310133121.27913-18-wambui.karugax@gmail.com
88 lines
1.9 KiB
C
88 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
* Author: Rob Clark <rob@ti.com>
|
|
*/
|
|
|
|
#ifndef __OMAPDRM_DRV_H__
|
|
#define __OMAPDRM_DRV_H__
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
#include <linux/workqueue.h>
|
|
|
|
#include "dss/omapdss.h"
|
|
|
|
#include <drm/drm_gem.h>
|
|
#include <drm/omap_drm.h>
|
|
|
|
#include "omap_connector.h"
|
|
#include "omap_crtc.h"
|
|
#include "omap_encoder.h"
|
|
#include "omap_fb.h"
|
|
#include "omap_fbdev.h"
|
|
#include "omap_gem.h"
|
|
#include "omap_irq.h"
|
|
#include "omap_plane.h"
|
|
|
|
#define DBG(fmt, ...) DRM_DEBUG_DRIVER(fmt"\n", ##__VA_ARGS__)
|
|
#define VERB(fmt, ...) if (0) DRM_DEBUG_DRIVER(fmt, ##__VA_ARGS__) /* verbose debug */
|
|
|
|
#define MODULE_NAME "omapdrm"
|
|
|
|
struct omap_drm_usergart;
|
|
|
|
struct omap_drm_pipeline {
|
|
struct drm_crtc *crtc;
|
|
struct drm_encoder *encoder;
|
|
struct drm_connector *connector;
|
|
struct omap_dss_device *output;
|
|
unsigned int alias_id;
|
|
};
|
|
|
|
struct omap_drm_private {
|
|
struct drm_device *ddev;
|
|
struct device *dev;
|
|
u32 omaprev;
|
|
|
|
struct dss_device *dss;
|
|
struct dispc_device *dispc;
|
|
const struct dispc_ops *dispc_ops;
|
|
|
|
unsigned int num_pipes;
|
|
struct omap_drm_pipeline pipes[8];
|
|
struct omap_drm_pipeline *channels[8];
|
|
|
|
unsigned int num_planes;
|
|
struct drm_plane *planes[8];
|
|
|
|
struct drm_fb_helper *fbdev;
|
|
|
|
struct workqueue_struct *wq;
|
|
|
|
/* lock for obj_list below */
|
|
struct mutex list_lock;
|
|
|
|
/* list of GEM objects: */
|
|
struct list_head obj_list;
|
|
|
|
struct omap_drm_usergart *usergart;
|
|
bool has_dmm;
|
|
|
|
/* properties: */
|
|
struct drm_property *zorder_prop;
|
|
|
|
/* irq handling: */
|
|
spinlock_t wait_lock; /* protects the wait_list */
|
|
struct list_head wait_list; /* list of omap_irq_wait */
|
|
u32 irq_mask; /* enabled irqs in addition to wait_list */
|
|
|
|
/* memory bandwidth limit if it is needed on the platform */
|
|
unsigned int max_bandwidth;
|
|
};
|
|
|
|
|
|
void omap_debugfs_init(struct drm_minor *minor);
|
|
|
|
#endif /* __OMAPDRM_DRV_H__ */
|