drm_bridge.h (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) drm_bridge.h (63f8f3badf799c8b63ff33a489886bc138ce5d09)
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of the copyright holders not be used in advertising or

--- 182 unchanged lines hidden (view full) ---

191 *
192 * NOTE:
193 *
194 * If a need arises to store and access modes adjusted for other
195 * locations than the connection between the CRTC and the first bridge,
196 * the DRM framework will have to be extended with DRM bridge states.
197 */
198 void (*mode_set)(struct drm_bridge *bridge,
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of the copyright holders not be used in advertising or

--- 182 unchanged lines hidden (view full) ---

191 *
192 * NOTE:
193 *
194 * If a need arises to store and access modes adjusted for other
195 * locations than the connection between the CRTC and the first bridge,
196 * the DRM framework will have to be extended with DRM bridge states.
197 */
198 void (*mode_set)(struct drm_bridge *bridge,
199 struct drm_display_mode *mode,
200 struct drm_display_mode *adjusted_mode);
199 const struct drm_display_mode *mode,
200 const struct drm_display_mode *adjusted_mode);
201 /**
202 * @pre_enable:
203 *
204 * This callback should enable the bridge. It is called right before
205 * the preceding element in the display pipe is enabled. If the
206 * preceding element is a bridge this means it's called before that
207 * bridge's @pre_enable function. If the preceding element is a
208 * &drm_encoder it's called right before the encoder's

--- 96 unchanged lines hidden (view full) ---

305bool drm_bridge_mode_fixup(struct drm_bridge *bridge,
306 const struct drm_display_mode *mode,
307 struct drm_display_mode *adjusted_mode);
308enum drm_mode_status drm_bridge_mode_valid(struct drm_bridge *bridge,
309 const struct drm_display_mode *mode);
310void drm_bridge_disable(struct drm_bridge *bridge);
311void drm_bridge_post_disable(struct drm_bridge *bridge);
312void drm_bridge_mode_set(struct drm_bridge *bridge,
201 /**
202 * @pre_enable:
203 *
204 * This callback should enable the bridge. It is called right before
205 * the preceding element in the display pipe is enabled. If the
206 * preceding element is a bridge this means it's called before that
207 * bridge's @pre_enable function. If the preceding element is a
208 * &drm_encoder it's called right before the encoder's

--- 96 unchanged lines hidden (view full) ---

305bool drm_bridge_mode_fixup(struct drm_bridge *bridge,
306 const struct drm_display_mode *mode,
307 struct drm_display_mode *adjusted_mode);
308enum drm_mode_status drm_bridge_mode_valid(struct drm_bridge *bridge,
309 const struct drm_display_mode *mode);
310void drm_bridge_disable(struct drm_bridge *bridge);
311void drm_bridge_post_disable(struct drm_bridge *bridge);
312void drm_bridge_mode_set(struct drm_bridge *bridge,
313 struct drm_display_mode *mode,
314 struct drm_display_mode *adjusted_mode);
313 const struct drm_display_mode *mode,
314 const struct drm_display_mode *adjusted_mode);
315void drm_bridge_pre_enable(struct drm_bridge *bridge);
316void drm_bridge_enable(struct drm_bridge *bridge);
317
318#ifdef CONFIG_DRM_PANEL_BRIDGE
319struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
320 u32 connector_type);
321void drm_panel_bridge_remove(struct drm_bridge *bridge);
322struct drm_bridge *devm_drm_panel_bridge_add(struct device *dev,
323 struct drm_panel *panel,
324 u32 connector_type);
325#endif
326
327#endif
315void drm_bridge_pre_enable(struct drm_bridge *bridge);
316void drm_bridge_enable(struct drm_bridge *bridge);
317
318#ifdef CONFIG_DRM_PANEL_BRIDGE
319struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
320 u32 connector_type);
321void drm_panel_bridge_remove(struct drm_bridge *bridge);
322struct drm_bridge *devm_drm_panel_bridge_add(struct device *dev,
323 struct drm_panel *panel,
324 u32 connector_type);
325#endif
326
327#endif