aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-07-07 21:04:35 -0400
committerDave Airlie <airlied@redhat.com>2014-07-07 21:04:35 -0400
commitafa95e7403298110943bc2dc0ab25f8b42b6334c (patch)
treeb6ecacf111378b498099d025702dd81f3174a2ab /include
parent4b7ba8697bc519abd4f79057f65a8a8e7107ac37 (diff)
parent2a8c6edfd2a888085ae0ddaf6c3ea3f529fdc4e8 (diff)
Merge tag 'topic/core-stuff-2014-06-30' of git://anongit.freedesktop.org/drm-intel into drm-next
misc core patches picked up by Daniel and Jani. * tag 'topic/core-stuff-2014-06-30' of git://anongit.freedesktop.org/drm-intel: drm/fb-helper: Remove unnecessary list empty check in drm_fb_helper_debug_enter() drm/fb-helper: Redundant info->fix.type_aux setting in drm_fb_helper_fill_fix() drm/debugfs: add an "edid_override" file per connector drm/debugfs: add a "force" file per connector drm: add register and unregister functions for connectors drm: fix uninitialized acquire_ctx fields (v2) drm: Driver-specific ioctls range from 0x40 to 0x9f drm: Don't export internal module variables
Diffstat (limited to 'include')
-rw-r--r--include/drm/drmP.h11
-rw-r--r--include/drm/drm_crtc.h5
-rw-r--r--include/uapi/drm/drm.h2
3 files changed, 17 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 8af71a8e2c00..57ecc421b19c 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1419,6 +1419,8 @@ extern int drm_debugfs_create_files(const struct drm_info_list *files,
1419extern int drm_debugfs_remove_files(const struct drm_info_list *files, 1419extern int drm_debugfs_remove_files(const struct drm_info_list *files,
1420 int count, struct drm_minor *minor); 1420 int count, struct drm_minor *minor);
1421extern int drm_debugfs_cleanup(struct drm_minor *minor); 1421extern int drm_debugfs_cleanup(struct drm_minor *minor);
1422extern int drm_debugfs_connector_add(struct drm_connector *connector);
1423extern void drm_debugfs_connector_remove(struct drm_connector *connector);
1422#else 1424#else
1423static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id, 1425static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id,
1424 struct dentry *root) 1426 struct dentry *root)
@@ -1443,6 +1445,15 @@ static inline int drm_debugfs_cleanup(struct drm_minor *minor)
1443{ 1445{
1444 return 0; 1446 return 0;
1445} 1447}
1448
1449static inline int drm_debugfs_connector_add(struct drm_connector *connector)
1450{
1451 return 0;
1452}
1453static inline void drm_debugfs_connector_remove(struct drm_connector *connector)
1454{
1455}
1456
1446#endif 1457#endif
1447 1458
1448 /* Info file support */ 1459 /* Info file support */
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 251b75e6bf7a..857bbb1551f8 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -533,6 +533,7 @@ struct drm_connector {
533 533
534 /* forced on connector */ 534 /* forced on connector */
535 enum drm_connector_force force; 535 enum drm_connector_force force;
536 bool override_edid;
536 uint32_t encoder_ids[DRM_CONNECTOR_MAX_ENCODER]; 537 uint32_t encoder_ids[DRM_CONNECTOR_MAX_ENCODER];
537 struct drm_encoder *encoder; /* currently active encoder */ 538 struct drm_encoder *encoder; /* currently active encoder */
538 539
@@ -545,6 +546,8 @@ struct drm_connector {
545 int audio_latency[2]; 546 int audio_latency[2];
546 int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */ 547 int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */
547 unsigned bad_edid_counter; 548 unsigned bad_edid_counter;
549
550 struct dentry *debugfs_entry;
548}; 551};
549 552
550/** 553/**
@@ -878,6 +881,8 @@ extern int drm_connector_init(struct drm_device *dev,
878 struct drm_connector *connector, 881 struct drm_connector *connector,
879 const struct drm_connector_funcs *funcs, 882 const struct drm_connector_funcs *funcs,
880 int connector_type); 883 int connector_type);
884int drm_connector_register(struct drm_connector *connector);
885void drm_connector_unregister(struct drm_connector *connector);
881 886
882extern void drm_connector_cleanup(struct drm_connector *connector); 887extern void drm_connector_cleanup(struct drm_connector *connector);
883/* helper to unplug all connectors from sysfs for device */ 888/* helper to unplug all connectors from sysfs for device */
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 9abbeb924cbb..b0b855613641 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -780,7 +780,7 @@ struct drm_prime_handle {
780 780
781/** 781/**
782 * Device specific ioctls should only be in their respective headers 782 * Device specific ioctls should only be in their respective headers
783 * The device specific ioctl range is from 0x40 to 0x99. 783 * The device specific ioctl range is from 0x40 to 0x9f.
784 * Generic IOCTLS restart at 0xA0. 784 * Generic IOCTLS restart at 0xA0.
785 * 785 *
786 * \sa drmCommandNone(), drmCommandRead(), drmCommandWrite(), and 786 * \sa drmCommandNone(), drmCommandRead(), drmCommandWrite(), and