linux/include/linux/bcm963xx_tag.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_BCM963XX_TAG_H__
#define __LINUX_BCM963XX_TAG_H__

#include <linux/types.h>

#define TAGVER_LEN
#define TAGLAYOUT_LEN
#define SIG1_LEN
#define SIG2_LEN
#define BOARDID_LEN
#define ENDIANFLAG_LEN
#define CHIPID_LEN
#define IMAGE_LEN
#define ADDRESS_LEN
#define IMAGE_SEQUENCE_LEN
#define RSASIG_LEN
#define TAGINFO1_LEN
#define FLASHLAYOUTVER_LEN
#define TAGINFO2_LEN
#define ALTTAGINFO_LEN

#define NUM_PIRELLI
#define IMAGETAG_CRC_START

#define PIRELLI_BOARDS

/* Extended flash address, needs to be subtracted
 * from bcm_tag flash image offsets.
 */
#define BCM963XX_EXTENDED_SIZE

/*
 * The broadcom firmware assumes the rootfs starts the image,
 * therefore uses the rootfs start (flash_image_address)
 * to determine where to flash the image.  Since we have the kernel first
 * we have to give it the kernel address, but the crc uses the length
 * associated with this address (root_length), which is added to the kernel
 * length (kernel_length) to determine the length of image to flash and thus
 * needs to be rootfs + deadcode (jffs2 EOF marker)
*/

struct bcm_tag {};

#endif /* __LINUX_BCM63XX_TAG_H__ */