1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/include/usb_boot.h Fri May 22 18:37:44 2015 +0200
1.3 @@ -0,0 +1,35 @@
1.4 +/*
1.5 + * "Ingenic flash tool" - flash the Ingenic CPU via USB
1.6 + *
1.7 + * Copyright 2009 (C) Qi Hardware Inc.,
1.8 + * Author: Xiangfu Liu <xiangfu@sharism.cc>
1.9 + *
1.10 + * This program is free software; you can redistribute it and/or
1.11 + * modify it under the terms of the GNU General Public License
1.12 + * version 3 as published by the Free Software Foundation.
1.13 + *
1.14 + * This program is distributed in the hope that it will be useful,
1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 + * GNU General Public License for more details.
1.18 + *
1.19 + * You should have received a copy of the GNU General Public License
1.20 + * along with this program; if not, write to the Free Software
1.21 + * Foundation, Inc., 51 Franklin Street, Fifth Floor,
1.22 + * Boston, MA 02110-1301, USA
1.23 + */
1.24 +
1.25 +#ifndef __USB_BOOT_H__
1.26 +#define __USB_BOOT_H__
1.27 +
1.28 +#define BULK_OUT_BUF_SIZE (2048 * 128)
1.29 +#define BULK_IN_BUF_SIZE (2048 * 128)
1.30 +
1.31 +enum UDC_STATE
1.32 +{
1.33 + IDLE,
1.34 + BULK_IN,
1.35 + BULK_OUT
1.36 +};
1.37 +
1.38 +#endif /* __USB_BOOT_H__ */