summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_usb.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2010-12-15 07:13:55 +1000
committerDave Airlie <airlied@redhat.com>2011-02-07 13:09:42 +1000
commita250b9fdc53a286d32e22f21170382a46b3a3ef5 (patch)
tree46bca176ce307f951d3e154b7a41ddd43fdee0ac /include/drm/drm_usb.h
parent8410ea3b95d105a5be5db501656f44bbb91197c1 (diff)
downloadop-kernel-dev-a250b9fdc53a286d32e22f21170382a46b3a3ef5.zip
op-kernel-dev-a250b9fdc53a286d32e22f21170382a46b3a3ef5.tar.gz
drm: add usb framework
This adds an initial framework to plug USB graphics devices into the drm/kms subsystem. I've started writing a displaylink driver using this interface. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_usb.h')
-rw-r--r--include/drm/drm_usb.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/drm/drm_usb.h b/include/drm/drm_usb.h
new file mode 100644
index 0000000..33506c11
--- /dev/null
+++ b/include/drm/drm_usb.h
@@ -0,0 +1,15 @@
+#ifndef DRM_USB_H
+#define DRM_USB_H
+
+#include <drmP.h>
+
+#include <linux/usb.h>
+
+extern int drm_usb_init(struct drm_driver *driver, struct usb_driver *udriver);
+extern void drm_usb_exit(struct drm_driver *driver, struct usb_driver *udriver);
+
+int drm_get_usb_dev(struct usb_interface *interface,
+ const struct usb_device_id *id,
+ struct drm_driver *driver);
+
+#endif
OpenPOWER on IntegriCloud