summaryrefslogtreecommitdiff
path: root/src/soc/marvell
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2017-07-13 02:20:27 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-07-13 19:45:59 +0000
commit6a00113de8b9060a7227bcfa79b3786e3e592a33 (patch)
tree467f5653272ed2d16f6d8033ed8cd0e7391fb426 /src/soc/marvell
parent9f244a5494192707bfbb72e60f17411e9a35434a (diff)
Rename __attribute__((packed)) --> __packed
Also unify __attribute__ ((..)) to __attribute__((..)) and handle ((__packed__)) like ((packed)) Change-Id: Ie60a51c3fa92b5009724a5b7c2932e361bf3490c Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/15921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/marvell')
-rw-r--r--src/soc/marvell/mvmap2315/include/soc/bdb.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/soc/marvell/mvmap2315/include/soc/bdb.h b/src/soc/marvell/mvmap2315/include/soc/bdb.h
index f182a44ad2..a3e3ca53da 100644
--- a/src/soc/marvell/mvmap2315/include/soc/bdb.h
+++ b/src/soc/marvell/mvmap2315/include/soc/bdb.h
@@ -17,6 +17,7 @@
#define __SOC_MARVELL_MVMAP2315_BDB_H__
#include <stdint.h>
+#include <compiler.h>
#define MVMAP2315_BDB_LCM_BASE 0xE0000000
@@ -41,7 +42,7 @@ struct bdb_header {
u32 signed_size;
u32 oem_area_0_size;
u8 reserved0[8];
-} __attribute__ ((packed));
+} __packed;
struct bdb_key {
u32 struct_magic;
@@ -54,7 +55,7 @@ struct bdb_key {
u32 key_version;
char description[128];
u8 key_data[];
-} __attribute__ ((packed));
+} __packed;
struct bdb_sig {
u32 struct_magic;
@@ -67,7 +68,7 @@ struct bdb_sig {
u32 signed_size;
char description[128];
u8 sig_SOC_MARVELL_MVMAP2315_data[];
-} __attribute__ ((packed));
+} __packed;
struct bdb_data {
u32 struct_magic;
@@ -82,7 +83,7 @@ struct bdb_data {
u32 signed_size;
u8 reserved1[8];
char description[128];
-} __attribute__ ((packed));
+} __packed;
struct bdb_hash {
u64 offset;
@@ -92,7 +93,7 @@ struct bdb_hash {
u8 reserved0[2];
u64 load_address;
u8 digest[32];
-} __attribute__ ((packed));
+} __packed;
struct bdb_pointer {
struct bdb_header *bdb_h;
@@ -104,7 +105,7 @@ struct bdb_pointer {
u8 *oem_1;
struct bdb_hash *bdb_hash;
struct bdb_sig *bdb_s;
-} __attribute__ ((packed));
+} __packed;
void set_bdb_pointers(u8 *start_addr, struct bdb_pointer *bdb_in);
struct bdb_hash *find_bdb_image(struct bdb_pointer *bdb_info, u32 image_type);