[PATCH 1/3] USB: OHCI/EHCI: add struct for generic platform driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



struct usb_hci_pdata is used by the generic OHCI and EHCI platform
driver. The is used to activate some some special handling in the
generic driver.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 include/linux/usb/hci_driver.h |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/usb/hci_driver.h

diff --git a/include/linux/usb/hci_driver.h b/include/linux/usb/hci_driver.h
new file mode 100644
index 0000000..49d62ac
--- /dev/null
+++ b/include/linux/usb/hci_driver.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2012 Hauke Mehrtens <hauke@xxxxxxxxxx>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __USB_CORE_HCI_PDRIVER_H
+#define __USB_CORE_HCI_PDRIVER_H
+
+#define USB_HCI_PDATA_PORT_POWER_SET (1 << 0)
+#define USB_HCI_PDATA_HAS_TT_SET (1 << 1)
+
+struct usb_hci_pdata {
+	int		flags;
+	int		caps_offset;
+	unsigned	has_tt:1;
+	unsigned	power_set_is_on:1;
+};
+
+#endif /* __USB_CORE_HCI_PDRIVER_H */
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux