diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-03-12 20:04:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-15 15:41:58 -0400 |
commit | fa3364b5a2d79b0c94a912b371c92bd3d06bc8fb (patch) | |
tree | c1fbe64425df32ad3f821083bf8a2aebd675f208 /include/linux/usb | |
parent | 57e596f3af88ef52dea9640ed5e34ecd38893a02 (diff) |
USB: OHCI: Add a generic platform device driver
This adds a generic driver for platform devices. It works like the PCI
driver and is based on it. This is for devices which do not have an own
bus but their OHCI controller works like a PCI controller. It will be
used for the Broadcom bcma and ssb USB OHCI controller.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ohci_pdriver.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/usb/ohci_pdriver.h b/include/linux/usb/ohci_pdriver.h new file mode 100644 index 000000000000..2808f2a9cce8 --- /dev/null +++ b/include/linux/usb/ohci_pdriver.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Hauke Mehrtens <hauke@hauke-m.de> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms of the GNU General Public License as published by the | ||
6 | * Free Software Foundation; either version 2 of the License, or (at your | ||
7 | * option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but | ||
10 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
11 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
12 | * for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software Foundation, | ||
16 | * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
17 | */ | ||
18 | |||
19 | #ifndef __USB_CORE_OHCI_PDRIVER_H | ||
20 | #define __USB_CORE_OHCI_PDRIVER_H | ||
21 | |||
22 | /** | ||
23 | * struct usb_ohci_pdata - platform_data for generic ohci driver | ||
24 | * | ||
25 | * @big_endian_desc: BE descriptors | ||
26 | * @big_endian_mmio: BE registers | ||
27 | * @no_big_frame_no: no big endian frame_no shift | ||
28 | * | ||
29 | * These are general configuration options for the OHCI controller. All of | ||
30 | * these options are activating more or less workarounds for some hardware. | ||
31 | */ | ||
32 | struct usb_ohci_pdata { | ||
33 | unsigned big_endian_desc:1; | ||
34 | unsigned big_endian_mmio:1; | ||
35 | unsigned no_big_frame_no:1; | ||
36 | }; | ||
37 | |||
38 | #endif /* __USB_CORE_OHCI_PDRIVER_H */ | ||