47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/******************************************************************************
|
|
* Copyright (C) 2015 Hisilicon Technologies CO.,LTD.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* Create By Cai Zhiyong 2015.6.12
|
|
*
|
|
******************************************************************************/
|
|
|
|
#ifndef HIOTG_H
|
|
#define HIOTG_H
|
|
|
|
#ifdef CONFIG_USB_OTG_HISI
|
|
|
|
/* if defined struct usb_hcd, then define the function */
|
|
#ifdef __USB_CORE_HCD_H
|
|
void set_usbhost_connect(struct usb_hcd *hcd,
|
|
u32 port_index, u32 online, u32 host_type);
|
|
#endif
|
|
void set_usbdev_connect(u32 index, u32 online);
|
|
|
|
#else /* CONFIG_USB_OTG_HISI */
|
|
|
|
#ifdef __USB_CORE_HCD_H
|
|
static void inline set_usbhost_connect(struct usb_hcd *hcd,
|
|
u32 port_index, u32 online, u32 host_type)
|
|
{
|
|
}
|
|
#endif
|
|
static void inline set_usbdev_connect(u32 index, u32 online)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_USB_OTG_HISI */
|
|
|
|
#endif /* HIOTG_H */
|