* [PATCH 1/1] fs: bpkfs: add missing include
@ 2013-10-18 13:22 Jean-Christophe PLAGNIOL-VILLARD
2013-10-21 7:14 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-10-18 13:22 UTC (permalink / raw)
To: barebox
was not include when applying bpkfs patch
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
include/bpkfs.h | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 include/bpkfs.h
diff --git a/include/bpkfs.h b/include/bpkfs.h
new file mode 100644
index 0000000..ccb56c1
--- /dev/null
+++ b/include/bpkfs.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * under GPLv2 only
+ */
+
+#ifndef __BPKFS_H__
+#define __BPKFS_H__
+
+#include <linux/types.h>
+#include <linux/list.h>
+
+#define BPKFS_TYPE_BL 0x50424c00
+#define BPKFS_TYPE_BLV 0x50424c56
+#define BPKFS_TYPE_DSC 0x44456343
+#define BPKFS_TYPE_KER 0x504b4552
+#define BPKFS_TYPE_RFS 0x50524653
+#define BPKFS_TYPE_FMV 0x46575600
+
+struct bpkfs_header {
+ uint32_t magic;
+ uint32_t version;
+ uint64_t size;
+ uint32_t crc;
+ uint64_t spare;
+} __attribute__ ((packed)) ;
+
+struct bpkfs_data_header {
+ uint32_t type;
+ uint64_t size;
+ uint32_t crc;
+ uint32_t hw_id;
+ uint32_t spare;
+} __attribute__ ((packed)) ;
+
+struct bpkfs_handle_hw {
+ char *name;
+ uint32_t hw_id;
+
+ struct list_head list_data;
+ struct list_head list_hw_id;
+};
+
+struct bpkfs_handle_data {
+ char *name;
+ uint32_t type;
+ uint32_t hw_id;
+ uint64_t size;
+
+ int fd;
+ size_t offset; /* offset in the image */
+ size_t pos; /* pos in the data */
+ uint32_t crc;
+
+ char data[8];
+
+ struct list_head list;
+};
+
+struct bpkfs_handle {
+ struct bpkfs_header header;
+ int nb_data_entries;
+ char *filename;
+
+ struct list_head list;
+};
+
+#endif /* __BPKFS_H__ */
--
1.8.4.rc3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] fs: bpkfs: add missing include
2013-10-18 13:22 [PATCH 1/1] fs: bpkfs: add missing include Jean-Christophe PLAGNIOL-VILLARD
@ 2013-10-21 7:14 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-10-21 7:14 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On Fri, Oct 18, 2013 at 03:22:44PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> was not include when applying bpkfs patch
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Applied, thanks
Sascha
> ---
> include/bpkfs.h | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
> create mode 100644 include/bpkfs.h
>
> diff --git a/include/bpkfs.h b/include/bpkfs.h
> new file mode 100644
> index 0000000..ccb56c1
> --- /dev/null
> +++ b/include/bpkfs.h
> @@ -0,0 +1,68 @@
> +/*
> + * Copyright (c) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> + *
> + * under GPLv2 only
> + */
> +
> +#ifndef __BPKFS_H__
> +#define __BPKFS_H__
> +
> +#include <linux/types.h>
> +#include <linux/list.h>
> +
> +#define BPKFS_TYPE_BL 0x50424c00
> +#define BPKFS_TYPE_BLV 0x50424c56
> +#define BPKFS_TYPE_DSC 0x44456343
> +#define BPKFS_TYPE_KER 0x504b4552
> +#define BPKFS_TYPE_RFS 0x50524653
> +#define BPKFS_TYPE_FMV 0x46575600
> +
> +struct bpkfs_header {
> + uint32_t magic;
> + uint32_t version;
> + uint64_t size;
> + uint32_t crc;
> + uint64_t spare;
> +} __attribute__ ((packed)) ;
> +
> +struct bpkfs_data_header {
> + uint32_t type;
> + uint64_t size;
> + uint32_t crc;
> + uint32_t hw_id;
> + uint32_t spare;
> +} __attribute__ ((packed)) ;
> +
> +struct bpkfs_handle_hw {
> + char *name;
> + uint32_t hw_id;
> +
> + struct list_head list_data;
> + struct list_head list_hw_id;
> +};
> +
> +struct bpkfs_handle_data {
> + char *name;
> + uint32_t type;
> + uint32_t hw_id;
> + uint64_t size;
> +
> + int fd;
> + size_t offset; /* offset in the image */
> + size_t pos; /* pos in the data */
> + uint32_t crc;
> +
> + char data[8];
> +
> + struct list_head list;
> +};
> +
> +struct bpkfs_handle {
> + struct bpkfs_header header;
> + int nb_data_entries;
> + char *filename;
> +
> + struct list_head list;
> +};
> +
> +#endif /* __BPKFS_H__ */
> --
> 1.8.4.rc3
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-21 7:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 13:22 [PATCH 1/1] fs: bpkfs: add missing include Jean-Christophe PLAGNIOL-VILLARD
2013-10-21 7:14 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox