| * Copyright 2014 Broadcom Corporation. |
| * SPDX-License-Identifier: GPL-2.0+ |
| #include <sparse_format.h> |
| #define ROUNDUP(x, y) (((x) + ((y) - 1)) & ~((y) - 1)) |
| lbaint_t (*write)(struct sparse_storage *info, |
| lbaint_t (*reserve)(struct sparse_storage *info, |
| static inline int is_sparse_image(void *buf) |
| sparse_header_t *s_header = (sparse_header_t *)buf; |
| if ((le32_to_cpu(s_header->magic) == SPARSE_HEADER_MAGIC) && |
| (le16_to_cpu(s_header->major_version) == 1)) |
| void write_sparse_image(struct sparse_storage *info, const char *part_name, |
| void *data, unsigned sz); |