~ubuntu-branches/ubuntu/karmic/linux-ports/karmic

« back to all changes in this revision

Viewing changes to include/linux/usb/otg.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich, Luke Yelavich, Michael Casadevall, Tim Gardner, Upstream Kernel Changes
  • Date: 2009-05-06 18:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090506181855-t00baeevpnvd9o7a
Tags: 2.6.30-1.1
[ Luke Yelavich ]
* initial release for karmic
* SAUCE: rebase-ports - adjust for the karmic ports kernel
* SAUCE: rebase-ports - also remove abi dirs/files on rebase
* Update configs after rebase against mainline Jaunty tree
* [Config] Disable CONFIG_BLK_DEV_UB and CONFIG_USB_LIBUSUAL as per
  mainline jaunty
* forward-port patch to drbd for powerpc compilation
* [Config] disable CONFIG_LENOVO_SL_LAPTOP for i386 due to FTBFS
* add .o files found in arch/powerpc/lib to all powerpc kernel header
  packages
* [Config] enable CONFIG_DRM_I915_KMS for i386 as per karmic mainline

[ Michael Casadevall ]

* Disable kgdb on sparc64
* [sparc] [Config] Disable GPIO LEDS
* [ia64] Rename -ia64-generic to -ia64 in line with other architectures
* Correct kernel image path for sparc builds
* [hppa] Fix HPPA config files to build modules for all udebian

Rebase on top of karmic mainline 2.6.30-1.1

[ Tim Gardner ]

* [Config] armel: disable staging drivers, fixes FTBS
* [Config] armel imx51: Disable CONFIG_MTD_NAND_MXC, fixes FTBS

[ Upstream Kernel Changes ]

* mpt2sas: Change reset_type enum to avoid namespace collision.
  Submitted upstream.

* Initial release after rebasing against v2.6.30-rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
/* for board-specific init logic */
82
82
extern int otg_set_transceiver(struct otg_transceiver *);
 
83
#ifdef CONFIG_NOP_USB_XCEIV
 
84
extern void usb_nop_xceiv_register(void);
 
85
extern void usb_nop_xceiv_unregister(void);
 
86
#endif
83
87
 
84
88
 
85
89
/* for usb host and peripheral controller drivers */
86
90
extern struct otg_transceiver *otg_get_transceiver(void);
 
91
extern void otg_put_transceiver(struct otg_transceiver *);
87
92
 
 
93
/* Context: can sleep */
88
94
static inline int
89
95
otg_start_hnp(struct otg_transceiver *otg)
90
96
{
101
107
 
102
108
 
103
109
/* for usb peripheral controller drivers */
 
110
 
 
111
/* Context: can sleep */
104
112
static inline int
105
113
otg_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *periph)
106
114
{
113
121
        return otg->set_power(otg, mA);
114
122
}
115
123
 
 
124
/* Context: can sleep */
116
125
static inline int
117
126
otg_set_suspend(struct otg_transceiver *otg, int suspend)
118
127
{