oleavr-rgl-a500-mini-linux-.../drivers/usb/sunxi_usb/usbc/usbc_i.h
Ole André Vadla Ravnås 169c65d57e Initial commit
2022-05-07 01:01:45 +02:00

47 lines
1.1 KiB
C
Executable file

/*
* drivers/usb/sunxi_usb/usbc/usbc_i.h
* (C) Copyright 2010-2015
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* daniel, 2009.09.15
*
* usb common ops.
*
* 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.
*
*/
#ifndef __USBC_I_H__
#define __USBC_I_H__
#include "../include/sunxi_usb_config.h"
#define USBC_MAX_OPEN_NUM 1
void __iomem *get_otgc_vbase(void);
/* record USB common info */
typedef struct __fifo_info{
void __iomem *port0_fifo_addr;
__u32 port0_fifo_size;
void __iomem *port1_fifo_addr;
__u32 port1_fifo_size;
void __iomem *port2_fifo_addr;
__u32 port2_fifo_size;
}__fifo_info_t;
/* record current USB port's all hardware info */
typedef struct __usbc_otg{
__u32 port_num;
void __iomem *base_addr; /* usb base address */
__u32 used; /* is used or not */
__u32 no; /* index in manager table */
}__usbc_otg_t;
#endif //__USBC_I_H__