blob: c11e5373ad1e6809b321af3e9ed3f001b584fd97 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* ==========================================================================
2 * $File: //dwh/usb_iip/dev/software/otg/linux/drivers/dwc_otg_driver.h $
3 * $Revision: #19 $
4 * $Date: 2010/11/15 $
5 * $Change: 1627671 $
6 *
7 * Synopsys HS OTG Linux Software Driver and documentation (hereinafter,
8 * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
9 * otherwise expressly agreed to in writing between Synopsys and you.
10 *
11 * The Software IS NOT an item of Licensed Software or Licensed Product under
12 * any End User Software License Agreement or Agreement for Licensed Product
13 * with Synopsys or any supplement thereto. You are permitted to use and
14 * redistribute this Software in source and binary forms, with or without
15 * modification, provided that redistributions of source code must retain this
16 * notice. You may not view, use, disclose, copy or distribute this file or
17 * any information contained herein except pursuant to this license grant from
18 * Synopsys. If you do not agree with this notice, including the disclaimer
19 * below, then you are not authorized to use the Software.
20 *
21 * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
31 * DAMAGE.
32 * ========================================================================== */
33
34#ifndef __DWC_OTG_DRIVER_H__
35#define __DWC_OTG_DRIVER_H__
36
37
38
39
40#define DWC_DEVICE_ONLY
41#define DEV_FIRST
42/** @file
43 * This file contains the interface to the Linux driver.
44 */
45
46#include "usb.h"
47#include "dwc_otg_core_if.h"
48#include "dwc_otg_pcd.h"
49
50
51/* Type declarations */
52struct dwc_otg_pcd;
53/**
54 * This structure is a wrapper that encapsulates the driver components used to
55 * manage a single DWC_otg controller.
56 */
57typedef struct dwc_otg_device
58{
59
60 /** Pointer to the core interface structure. */
61 dwc_otg_core_if_t *core_if;
62
63 /** Pointer to the PCD structure. */
64 struct dwc_otg_pcd *pcd;
65
66} dwc_otg_device_t;
67
68
69
70
71int dwc_otg_driver_probe(WORD32 USB_ADDR);
72
73
74#endif