forked from beagleboard/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/omap, omapfb: move exported dispc function declarations to omapdr…
…m/omapfb omapdrm and omapfb still share the same include/video/omapdss.h. We need to change that so that we can proceed with omapdrm work. However, it's not trivial to make separate omapfb and omapdrm versions of omapdss.h, as that file is also included in other places like arch code, audio code and omap_vout code. So we'll do it piece by piece. This patch makes private versions of all the dispc function declarations that are in omapdss.h. For omapdrm we create a new file, drivers/gpu/drm/omapdrm/dss/omapdss.h, which will contain headers meant to be visible outside omapdss. Signed-off-by: Tomi Valkeinen <[email protected]>
- Loading branch information
Showing
6 changed files
with
104 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ | |
|
||
#include <linux/interrupt.h> | ||
|
||
#include "omapdss.h" | ||
|
||
#ifdef pr_fmt | ||
#undef pr_fmt | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright (C) 2016 Texas Instruments | ||
* Author: Tomi Valkeinen <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 as published by | ||
* the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef __OMAP_DRM_DSS_H | ||
#define __OMAP_DRM_DSS_H | ||
|
||
#include <video/omapdss.h> | ||
|
||
u32 dispc_read_irqstatus(void); | ||
void dispc_clear_irqstatus(u32 mask); | ||
u32 dispc_read_irqenable(void); | ||
void dispc_write_irqenable(u32 mask); | ||
|
||
int dispc_request_irq(irq_handler_t handler, void *dev_id); | ||
void dispc_free_irq(void *dev_id); | ||
|
||
int dispc_runtime_get(void); | ||
void dispc_runtime_put(void); | ||
|
||
void dispc_mgr_enable(enum omap_channel channel, bool enable); | ||
bool dispc_mgr_is_enabled(enum omap_channel channel); | ||
u32 dispc_mgr_get_vsync_irq(enum omap_channel channel); | ||
u32 dispc_mgr_get_framedone_irq(enum omap_channel channel); | ||
u32 dispc_mgr_get_sync_lost_irq(enum omap_channel channel); | ||
bool dispc_mgr_go_busy(enum omap_channel channel); | ||
void dispc_mgr_go(enum omap_channel channel); | ||
void dispc_mgr_set_lcd_config(enum omap_channel channel, | ||
const struct dss_lcd_mgr_config *config); | ||
void dispc_mgr_set_timings(enum omap_channel channel, | ||
const struct omap_video_timings *timings); | ||
void dispc_mgr_setup(enum omap_channel channel, | ||
const struct omap_overlay_manager_info *info); | ||
|
||
int dispc_ovl_check(enum omap_plane plane, enum omap_channel channel, | ||
const struct omap_overlay_info *oi, | ||
const struct omap_video_timings *timings, | ||
int *x_predecim, int *y_predecim); | ||
|
||
int dispc_ovl_enable(enum omap_plane plane, bool enable); | ||
bool dispc_ovl_enabled(enum omap_plane plane); | ||
void dispc_ovl_set_channel_out(enum omap_plane plane, | ||
enum omap_channel channel); | ||
int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi, | ||
bool replication, const struct omap_video_timings *mgr_timings, | ||
bool mem_to_mem); | ||
|
||
#endif /* __OMAP_DRM_DSS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -915,4 +915,5 @@ static inline u16 DISPC_MFLAG_THRESHOLD_OFFSET(enum omap_plane plane) | |
return 0; | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters