summaryrefslogtreecommitdiffstats
path: root/include/filetype.h
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2016-02-17 12:28:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-03-11 08:06:05 +0100
commit0240fd3f8469eba3bda367b79dc221b9736baec7 (patch)
treeb6151ea4bf02df8b11d3ea3370d057a30c09a4f2 /include/filetype.h
parent24ff0ab0fa0354d74c03c6a1cfddb05c52d9d113 (diff)
downloadbarebox-0240fd3f8469eba3bda367b79dc221b9736baec7.tar.gz
fastboot: Add a ARM Barebox filetype handler
This will automatically call barebox_update for the transfered file if it is an ARM Barebox image and the destination file is defined by some update handler. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/filetype.h')
-rw-r--r--include/filetype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index cde543e..e87ca17 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -2,6 +2,7 @@
#define __FILE_TYPE_H
#include <linux/string.h>
+#include <linux/types.h>
/*
* List of file types we know
@@ -48,6 +49,7 @@ enum filetype file_name_detect_type(const char *filename);
enum filetype cdev_detect_type(const char *name);
enum filetype is_fat_or_mbr(const unsigned char *sector, unsigned long *bootsec);
int is_fat_boot_sector(const void *_buf);
+bool filetype_is_barebox_image(enum filetype ft);
#define ARM_HEAD_SIZE 0x30
#define ARM_HEAD_MAGICWORD_OFFSET 0x20