diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-08-31 12:09:06 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-09-19 09:04:32 -0400 |
| commit | cdc3d09fe2a9acd3f79049a70f89a4a8ef07d812 (patch) | |
| tree | e2d8935d8640a2384650f42c6260833ba6591455 /include/drm | |
| parent | 199e4e967af476bdcab96c76237e6a1f9244d6ca (diff) | |
drm: Move all decl for drm_edid.c to drm_edid.h
Some were still left in drm_crtc.h. Also include drm_edid.h in the
rst files.
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160831160913.12991-4-daniel.vetter@ffwll.ch
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drm_crtc.h | 30 | ||||
| -rw-r--r-- | include/drm/drm_edid.h | 30 |
2 files changed, 31 insertions, 29 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index a2d1108c7c2c..35b13fc6bbc1 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | #include <drm/drm_encoder.h> | 43 | #include <drm/drm_encoder.h> |
| 44 | #include <drm/drm_property.h> | 44 | #include <drm/drm_property.h> |
| 45 | #include <drm/drm_bridge.h> | 45 | #include <drm/drm_bridge.h> |
| 46 | #include <drm/drm_edid.h> | ||
| 46 | 47 | ||
| 47 | struct drm_device; | 48 | struct drm_device; |
| 48 | struct drm_mode_set; | 49 | struct drm_mode_set; |
| @@ -2004,33 +2005,4 @@ assert_drm_connector_list_read_locked(struct drm_mode_config *mode_config) | |||
| 2004 | !drm_modeset_is_locked(&mode_config->connection_mutex)); | 2005 | !drm_modeset_is_locked(&mode_config->connection_mutex)); |
| 2005 | } | 2006 | } |
| 2006 | 2007 | ||
| 2007 | /* drm_edid.c */ | ||
| 2008 | bool drm_probe_ddc(struct i2c_adapter *adapter); | ||
| 2009 | struct edid *drm_get_edid(struct drm_connector *connector, | ||
| 2010 | struct i2c_adapter *adapter); | ||
| 2011 | struct edid *drm_get_edid_switcheroo(struct drm_connector *connector, | ||
| 2012 | struct i2c_adapter *adapter); | ||
| 2013 | struct edid *drm_edid_duplicate(const struct edid *edid); | ||
| 2014 | int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); | ||
| 2015 | |||
| 2016 | u8 drm_match_cea_mode(const struct drm_display_mode *to_match); | ||
| 2017 | enum hdmi_picture_aspect drm_get_cea_aspect_ratio(const u8 video_code); | ||
| 2018 | bool drm_detect_hdmi_monitor(struct edid *edid); | ||
| 2019 | bool drm_detect_monitor_audio(struct edid *edid); | ||
| 2020 | bool drm_rgb_quant_range_selectable(struct edid *edid); | ||
| 2021 | int drm_add_modes_noedid(struct drm_connector *connector, | ||
| 2022 | int hdisplay, int vdisplay); | ||
| 2023 | void drm_set_preferred_mode(struct drm_connector *connector, | ||
| 2024 | int hpref, int vpref); | ||
| 2025 | |||
| 2026 | int drm_edid_header_is_valid(const u8 *raw_edid); | ||
| 2027 | bool drm_edid_block_valid(u8 *raw_edid, int block, bool print_bad_edid, | ||
| 2028 | bool *edid_corrupt); | ||
| 2029 | bool drm_edid_is_valid(struct edid *edid); | ||
| 2030 | void drm_edid_get_monitor_name(struct edid *edid, char *name, | ||
| 2031 | int buflen); | ||
| 2032 | struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, | ||
| 2033 | int hsize, int vsize, int fresh, | ||
| 2034 | bool rb); | ||
| 2035 | |||
| 2036 | #endif /* __DRM_CRTC_H__ */ | 2008 | #endif /* __DRM_CRTC_H__ */ |
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index 919933d1beb4..c3a7d440bc11 100644 --- a/include/drm/drm_edid.h +++ b/include/drm/drm_edid.h | |||
| @@ -25,6 +25,9 @@ | |||
| 25 | 25 | ||
| 26 | #include <linux/types.h> | 26 | #include <linux/types.h> |
| 27 | 27 | ||
| 28 | struct drm_device; | ||
| 29 | struct i2c_adapter; | ||
| 30 | |||
| 28 | #define EDID_LENGTH 128 | 31 | #define EDID_LENGTH 128 |
| 29 | #define DDC_ADDR 0x50 | 32 | #define DDC_ADDR 0x50 |
| 30 | #define DDC_ADDR2 0x52 /* E-DDC 1.2 - where DisplayID can hide */ | 33 | #define DDC_ADDR2 0x52 /* E-DDC 1.2 - where DisplayID can hide */ |
| @@ -423,9 +426,36 @@ static inline u8 drm_eld_get_conn_type(const uint8_t *eld) | |||
| 423 | return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK; | 426 | return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK; |
| 424 | } | 427 | } |
| 425 | 428 | ||
| 429 | bool drm_probe_ddc(struct i2c_adapter *adapter); | ||
| 426 | struct edid *drm_do_get_edid(struct drm_connector *connector, | 430 | struct edid *drm_do_get_edid(struct drm_connector *connector, |
| 427 | int (*get_edid_block)(void *data, u8 *buf, unsigned int block, | 431 | int (*get_edid_block)(void *data, u8 *buf, unsigned int block, |
| 428 | size_t len), | 432 | size_t len), |
| 429 | void *data); | 433 | void *data); |
| 434 | struct edid *drm_get_edid(struct drm_connector *connector, | ||
| 435 | struct i2c_adapter *adapter); | ||
| 436 | struct edid *drm_get_edid_switcheroo(struct drm_connector *connector, | ||
| 437 | struct i2c_adapter *adapter); | ||
| 438 | struct edid *drm_edid_duplicate(const struct edid *edid); | ||
| 439 | int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); | ||
| 440 | |||
| 441 | u8 drm_match_cea_mode(const struct drm_display_mode *to_match); | ||
| 442 | enum hdmi_picture_aspect drm_get_cea_aspect_ratio(const u8 video_code); | ||
| 443 | bool drm_detect_hdmi_monitor(struct edid *edid); | ||
| 444 | bool drm_detect_monitor_audio(struct edid *edid); | ||
| 445 | bool drm_rgb_quant_range_selectable(struct edid *edid); | ||
| 446 | int drm_add_modes_noedid(struct drm_connector *connector, | ||
| 447 | int hdisplay, int vdisplay); | ||
| 448 | void drm_set_preferred_mode(struct drm_connector *connector, | ||
| 449 | int hpref, int vpref); | ||
| 450 | |||
| 451 | int drm_edid_header_is_valid(const u8 *raw_edid); | ||
| 452 | bool drm_edid_block_valid(u8 *raw_edid, int block, bool print_bad_edid, | ||
| 453 | bool *edid_corrupt); | ||
| 454 | bool drm_edid_is_valid(struct edid *edid); | ||
| 455 | void drm_edid_get_monitor_name(struct edid *edid, char *name, | ||
| 456 | int buflen); | ||
| 457 | struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, | ||
| 458 | int hsize, int vsize, int fresh, | ||
| 459 | bool rb); | ||
| 430 | 460 | ||
| 431 | #endif /* __DRM_EDID_H__ */ | 461 | #endif /* __DRM_EDID_H__ */ |
