X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fdfu.h;h=1d4006de8bab3f31bb119fe45b477c7d432d6bcc;hb=93ca7270137a1c2a52bedaf31ebefc844d327e0a;hp=124653c8164fa96daaa0c20222b4f067d467ade9;hpb=2f4998ab4429af4b805f8566268c3b761aa4babd;p=karo-tx-uboot.git diff --git a/include/dfu.h b/include/dfu.h index 124653c816..1d4006de8b 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -5,19 +5,7 @@ * authors: Andrzej Pietrasiewicz * Lukasz Majewski * - * 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 + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __DFU_ENTITY_H_ @@ -121,6 +109,8 @@ const char *dfu_get_dev_type(enum dfu_device_type t); const char *dfu_get_layout(enum dfu_layout l); struct dfu_entity *dfu_get_entity(int alt); char *dfu_extract_token(char** e, int *n); +void dfu_trigger_reset(void); +bool dfu_reset(void); int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num); int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num);