summaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-05 19:17:10 -0600
committerEvan Lojewski <github@meklort.com>2019-05-05 19:17:10 -0600
commit7e5196c770e6a229e00c849de4fe41b6d962a7ef (patch)
tree62fa11179088876a4db411cbe09c4ba52dd6f38c /include/types.h
parent72eaf56f7ffaeb2d57cfdf63f32963bd08bfb290 (diff)
downloadbcm5719-ortega-7e5196c770e6a229e00c849de4fe41b6d962a7ef.tar.gz
bcm5719-ortega-7e5196c770e6a229e00c849de4fe41b6d962a7ef.zip
More cleanup - headers.
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/types.h b/include/types.h
index 64efd34..0b3baba 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,12 +1,11 @@
#ifndef TYPES_H
#define TYPES_H
+#define SECTION(__section__) __attribute__((section, __section__))
-#define SECTION(__section__) __attribute__((section, __section__))
+#define ARRAY_ELEMENTS(__array__) (sizeof(__array__) / sizeof(__array__[0]))
-#define ARRAY_ELEMENTS(__array__) (sizeof(__array__)/sizeof(__array__[0]))
-
-#define DIVIDE_RND_UP(__value__, __round__) (((__value__) + (__round__) - 1) / (__round__))
+#define DIVIDE_RND_UP(__value__, __round__) (((__value__) + (__round__)-1) / (__round__))
#define DIVIDE_RND_DOWN(__value__, __round__) ((__value__) / (__round__))
typedef union {
@@ -15,12 +14,12 @@ typedef union {
struct
{
uint8_t pad[2];
- uint8_t u8[6];
+ uint8_t u8[6];
} oct;
struct
{
- uint32_t u32[2];
+ uint32_t u32[2];
} word;
} mac_t;
OpenPOWER on IntegriCloud