~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/usb/host/ehci.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        struct timer_list       watchdog;
119
119
        unsigned long           actions;
120
120
        unsigned                stamp;
 
121
        unsigned                periodic_stamp;
121
122
        unsigned                random_frame;
122
123
        unsigned long           next_statechange;
123
124
        ktime_t                 last_periodic_enable;
128
129
        unsigned                has_fsl_port_bug:1; /* FreeScale */
129
130
        unsigned                big_endian_mmio:1;
130
131
        unsigned                big_endian_desc:1;
 
132
        unsigned                big_endian_capbase:1;
131
133
        unsigned                has_amcc_usb23:1;
132
134
        unsigned                need_io_watchdog:1;
133
135
        unsigned                broken_periodic:1;
134
136
        unsigned                amd_pll_fix:1;
135
137
        unsigned                fs_i_thresh:1;  /* Intel iso scheduling */
136
138
        unsigned                use_dummy_qh:1; /* AMD Frame List table quirk*/
 
139
        unsigned                has_synopsys_hc_bug:1; /* Synopsys HC */
137
140
 
138
141
        /* required for usb32 quirk */
139
142
        #define OHCI_CTRL_HCFS          (3 << 6)
160
163
#ifdef DEBUG
161
164
        struct dentry           *debug_dir;
162
165
#endif
 
166
        /*
 
167
         * OTG controllers and transceivers need software interaction
 
168
         */
 
169
        struct otg_transceiver  *transceiver;
163
170
};
164
171
 
165
172
/* convert between an HCD pointer and the corresponding EHCI_HCD */
600
607
 * This attempts to support either format at compile time without a
601
608
 * runtime penalty, or both formats with the additional overhead
602
609
 * of checking a flag bit.
 
610
 *
 
611
 * ehci_big_endian_capbase is a special quirk for controllers that
 
612
 * implement the HC capability registers as separate registers and not
 
613
 * as fields of a 32-bit register.
603
614
 */
604
615
 
605
616
#ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
606
617
#define ehci_big_endian_mmio(e)         ((e)->big_endian_mmio)
 
618
#define ehci_big_endian_capbase(e)      ((e)->big_endian_capbase)
607
619
#else
608
620
#define ehci_big_endian_mmio(e)         0
 
621
#define ehci_big_endian_capbase(e)      0
609
622
#endif
610
623
 
611
624
/*
644
657
/*
645
658
 * On certain ppc-44x SoC there is a HW issue, that could only worked around with
646
659
 * explicit suspend/operate of OHCI. This function hereby makes sense only on that arch.
647
 
 * Other common bits are dependant on has_amcc_usb23 quirk flag.
 
660
 * Other common bits are dependent on has_amcc_usb23 quirk flag.
648
661
 */
649
662
#ifdef CONFIG_44x
650
663
static inline void set_ohci_hcfs(struct ehci_hcd *ehci, int operational)