summaryrefslogtreecommitdiff
path: root/include/hotplug.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-02-12 16:43:29 +0100
committerKeith Packard <keithp@keithp.com>2014-07-07 16:11:34 -0700
commit856bb80cea695106a8f6767d00918b38795b51c6 (patch)
tree70c4e8e07eae881527707bbb015954b133051062 /include/hotplug.h
parent5a4e15c3f6fb8d674879e54458328e9f595d9451 (diff)
xfree86: Store kernel driver name in platform device attribute
When opening a DRM device, query the version and store the driver name as a new attribute for future reference. Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Tested-By: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Tested-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/hotplug.h')
-rw-r--r--include/hotplug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hotplug.h b/include/hotplug.h
index cefc164ae..c4268a0c4 100644
--- a/include/hotplug.h
+++ b/include/hotplug.h
@@ -87,6 +87,8 @@ config_odev_free_attributes(struct OdevAttributes *attribs);
#define ODEV_ATTRIB_MAJOR 5
/* Minor number of the device node pointed to by ODEV_ATTRIB_PATH */
#define ODEV_ATTRIB_MINOR 6
+/* kernel driver name */
+#define ODEV_ATTRIB_DRIVER 4
typedef void (*config_odev_probe_proc_ptr)(struct OdevAttributes *attribs);
void config_odev_probe(config_odev_probe_proc_ptr probe_callback);