projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIPS: convert CONFIG_SYS_MIPS_TIMER_FREQ to Kconfig
[platform/kernel/u-boot.git]
/
include
/
image-sparse.h
diff --git
a/include/image-sparse.h
b/include/image-sparse.h
index
b0cc500
..
0572dbd
100644
(file)
--- a/
include/image-sparse.h
+++ b/
include/image-sparse.h
@@
-1,9
+1,9
@@
+/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2014 Broadcom Corporation.
/*
* Copyright 2014 Broadcom Corporation.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
*/
+#include <compiler.h>
#include <part.h>
#include <sparse_format.h>
#include <part.h>
#include <sparse_format.h>
@@
-23,6
+23,8
@@
struct sparse_storage {
lbaint_t (*reserve)(struct sparse_storage *info,
lbaint_t blk,
lbaint_t blkcnt);
lbaint_t (*reserve)(struct sparse_storage *info,
lbaint_t blk,
lbaint_t blkcnt);
+
+ void (*mssg)(const char *str, char *response);
};
static inline int is_sparse_image(void *buf)
};
static inline int is_sparse_image(void *buf)
@@
-36,5
+38,5
@@
static inline int is_sparse_image(void *buf)
return 0;
}
return 0;
}
-
void
write_sparse_image(struct sparse_storage *info, const char *part_name,
-
void *data, unsigned sz
);
+
int
write_sparse_image(struct sparse_storage *info, const char *part_name,
+
void *data, char *response
);