3 * Copyright (C) 2014 Rockchip Electronics
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __DWC2_REGS_H__
16 #define __DWC2_REGS_H__
17 #include <usb/dwc2_registers.h>
19 typedef struct dwc_ctrl
{
20 #define DMA_SIZE (64 * 1024)
39 #define DWC2_INST(controller) ((dwc_ctrl_t *)((controller)->instance))
40 #define DWC2_REG(controller) ((dwc2_reg_t *)((controller)->reg_base))