1 /* 2 * "Ingenic flash tool" - flash the Ingenic CPU via USB 3 * 4 * Copyright 2009 (C) Qi Hardware Inc., 5 * Author: Xiangfu Liu <xiangfu@sharism.cc> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * version 3 as published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA 20 */ 21 22 #ifndef __USB_BOOT_H__ 23 #define __USB_BOOT_H__ 24 25 #define BULK_OUT_BUF_SIZE (2048 * 128) 26 #define BULK_IN_BUF_SIZE (2048 * 128) 27 28 enum UDC_STATE 29 { 30 IDLE, 31 BULK_IN, 32 BULK_OUT 33 }; 34 35 #endif /* __USB_BOOT_H__ */