diff options
author | Evan Lojewski <github@meklort.com> | 2019-02-09 16:40:57 -0700 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-02-09 16:40:57 -0700 |
commit | c9ff2c0b1ca53e3c4a199da7e4804499c88bdbae (patch) | |
tree | f1e75582aa82767bd32382af41e0a3a914a453a4 /include/types.h | |
parent | c7abbe964d09a0c744da30bf26214781b9d814dc (diff) | |
download | bcm5719-ortega-c9ff2c0b1ca53e3c4a199da7e4804499c88bdbae.tar.gz bcm5719-ortega-c9ff2c0b1ca53e3c4a199da7e4804499c88bdbae.zip |
Import initial bcm flash tool.
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h new file mode 100644 index 0000000..e9ec714 --- /dev/null +++ b/include/types.h @@ -0,0 +1,25 @@ +#ifndef TYPES_H +#define TYPES_H + + +#define SECTION(__section__) __attribute__((section, __section__)) + +#define ARRAY_ELEMENTS(__array__) (sizeof(__array__)/sizeof(__array__[0])) + + +typedef union { + uint64_t u64; + + struct + { + uint8_t pad[2]; + uint8_t u8[6]; + } oct; + + struct + { + uint32_t u32[2]; + } word; +} mac_t; + +#endif /* !TYPES_H */ |