aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-05 19:39:01 -0400
committerDave Airlie <airlied@redhat.com>2016-04-05 19:39:01 -0400
commite7c8e54440bcae3f883ca8801f6558fe29bf0198 (patch)
tree6dc868df42a0ed9a268eaac960016cb1d9848edc /include/drm
parent9735a22799b9214d17d3c231fe377fc852f042e9 (diff)
parent249c4f538b1aae55d41699f8bafc6cb762a7f48f (diff)
Merge tag 'topic/drm-misc-2016-04-01' of git://anongit.freedesktop.org/drm-intel into drm-next
* tag 'topic/drm-misc-2016-04-01' of git://anongit.freedesktop.org/drm-intel: drm: Add new DCS commands in the enum list drm: Make uapi headers C89 pendantic compliant drm/atomic: export drm_atomic_helper_wait_for_fences() drm: Untangle __KERNEL__ guards drm: Move DRM_MODE_OBJECT_* to uapi headers drm: align #include directives with libdrm in uapi headers drm: Make drm.h uapi header safe for C++ vgacon: dummy implementation for vgacon_text_force drm/sysfs: Nuke TV/DVI property files drm/ttm: Remove TTM_HAS_AGP drm: bridge/dw-hdmi: Remove pre_enable/post_disable dummy funcs Revert "drm: Don't pass negative delta to ktime_sub_ns()" drm/atmel: Fixup drm_connector_/unplug/unregister/_all drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all() drm: bridge: Make (pre/post) enable/disable callbacks optional
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_atomic_helper.h2
-rw-r--r--include/drm/drm_crtc.h14
-rw-r--r--include/drm/ttm/ttm_bo_driver.h3
3 files changed, 5 insertions, 14 deletions
diff --git a/include/drm/drm_atomic_helper.h b/include/drm/drm_atomic_helper.h
index 9054598c9a7a..fe9d89c7d1ed 100644
--- a/include/drm/drm_atomic_helper.h
+++ b/include/drm/drm_atomic_helper.h
@@ -42,6 +42,8 @@ int drm_atomic_helper_commit(struct drm_device *dev,
42 struct drm_atomic_state *state, 42 struct drm_atomic_state *state,
43 bool async); 43 bool async);
44 44
45void drm_atomic_helper_wait_for_fences(struct drm_device *dev,
46 struct drm_atomic_state *state);
45bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev, 47bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev,
46 struct drm_atomic_state *old_state, 48 struct drm_atomic_state *old_state,
47 struct drm_crtc *crtc); 49 struct drm_crtc *crtc);
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index e0170bf80bb0..8cb377c5eb93 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -45,16 +45,6 @@ struct drm_clip_rect;
45struct device_node; 45struct device_node;
46struct fence; 46struct fence;
47 47
48#define DRM_MODE_OBJECT_CRTC 0xcccccccc
49#define DRM_MODE_OBJECT_CONNECTOR 0xc0c0c0c0
50#define DRM_MODE_OBJECT_ENCODER 0xe0e0e0e0
51#define DRM_MODE_OBJECT_MODE 0xdededede
52#define DRM_MODE_OBJECT_PROPERTY 0xb0b0b0b0
53#define DRM_MODE_OBJECT_FB 0xfbfbfbfb
54#define DRM_MODE_OBJECT_BLOB 0xbbbbbbbb
55#define DRM_MODE_OBJECT_PLANE 0xeeeeeeee
56#define DRM_MODE_OBJECT_ANY 0
57
58struct drm_mode_object { 48struct drm_mode_object {
59 uint32_t id; 49 uint32_t id;
60 uint32_t type; 50 uint32_t type;
@@ -2259,8 +2249,8 @@ static inline unsigned drm_connector_index(struct drm_connector *connector)
2259 return connector->connector_id; 2249 return connector->connector_id;
2260} 2250}
2261 2251
2262/* helper to unplug all connectors from sysfs for device */ 2252/* helper to unregister all connectors from sysfs for device */
2263extern void drm_connector_unplug_all(struct drm_device *dev); 2253extern void drm_connector_unregister_all(struct drm_device *dev);
2264 2254
2265extern int drm_bridge_add(struct drm_bridge *bridge); 2255extern int drm_bridge_add(struct drm_bridge *bridge);
2266extern void drm_bridge_remove(struct drm_bridge *bridge); 2256extern void drm_bridge_remove(struct drm_bridge *bridge);
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index 3d4bf08aa21f..cb91f80c15b3 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -1030,8 +1030,7 @@ extern pgprot_t ttm_io_prot(uint32_t caching_flags, pgprot_t tmp);
1030 1030
1031extern const struct ttm_mem_type_manager_func ttm_bo_manager_func; 1031extern const struct ttm_mem_type_manager_func ttm_bo_manager_func;
1032 1032
1033#if (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE))) 1033#if IS_ENABLED(CONFIG_AGP)
1034#define TTM_HAS_AGP
1035#include <linux/agp_backend.h> 1034#include <linux/agp_backend.h>
1036 1035
1037/** 1036/**