2 * Mentor USB OTG Core host controller driver.
4 * Copyright (c) 2008 Texas Instruments
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
24 #ifndef __MUSB_HCD_H__
25 #define __MUSB_HCD_H__
27 #include "musb_core.h"
28 #ifdef CONFIG_USB_KEYBOARD
30 extern unsigned char new[];
33 /* This defines the endpoint number used for control transfers */
34 #define MUSB_CONTROL_EP 0
36 /* This defines the endpoint number used for bulk transfer */
37 #define MUSB_BULK_EP 1
39 /* This defines the endpoint number used for interrupt transfer */
40 #define MUSB_INTR_EP 2
42 /* Determine the operating speed of MUSB core */
43 #define musb_ishighspeed() \
44 ((readb(&musbr->power) & MUSB_POWER_HSMODE) \
45 >> MUSB_POWER_HSMODE_SHIFT)
47 /* extern functions */
48 extern int musb_platform_init(void);
49 extern void musb_platform_deinit(void);
51 #endif /* __MUSB_HCD_H__ */