lin
2025-01-10 2e0fe69425adee0529756dc3381ac1838197f3ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * (C) Copyright 2007-2013
 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
 * Jerry Wang <wangflord@allwinnertech.com>
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */
 
#ifndef  __USBC_I_H__
#define  __USBC_I_H__
 
#include  <common.h>
#include  <asm/arch/cpu.h>
#include  <asm/arch/usb.h>
#include  <asm/arch/clock.h>
 
#define  USBC_MAX_OPEN_NUM    8
 
/* 记录USB的公共信息 */
typedef struct __fifo_info{
    uint port0_fifo_addr;
   uint port0_fifo_size;
 
    uint port1_fifo_addr;
   uint port1_fifo_size;
 
   uint port2_fifo_addr;
   uint port2_fifo_size;
}__fifo_info_t;
 
/* 记录当前USB port所有的硬件信息 */
typedef struct __usbc_otg{
    uint  port_num;
   ulong base_addr;        /* usb base address         */
 
   uint used;             /* 是否正在被使用           */
    uint no;               /* 在管理数组中的位置         */
}__usbc_otg_t;
 
#endif   //__USBC_I_H__