/* * (C) Copyright 20016-2020 * Allwinner Technology Co., Ltd. * wangwei * * 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 EHCI_SUNXI_H #define EHCI_SUNXI_H #define USBC_Readb(reg) (*(volatile unsigned char *)(reg)) #define USBC_Readw(reg) (*(volatile unsigned short *)(reg)) #define USBC_Readl(reg) (*(volatile unsigned long *)(reg)) #define USBC_Writeb(value, reg) (*(volatile unsigned char *)(reg) = (value)) #define USBC_Writew(value, reg) (*(volatile unsigned short *)(reg) = (value)) #define USBC_Writel(value, reg) (*(volatile unsigned long *)(reg) = (value)) #define SUNXI_USB_EHCI_BASE_OFFSET 0x00 #define SUNXI_USB_OHCI_BASE_OFFSET 0x400 #define SUNXI_USB_EHCI_LEN 0x58 #define SUNXI_USB_OHCI_LEN 0x58 #define SUNXI_USB_PMU_IRQ_ENABLE 0x800 #endif //__SUNXI_HCI_SUN6I_H__