summaryrefslogtreecommitdiffstats
path: root/include/types.h
blob: e9ec714caa1f0ad3c07ca83237c3b33f04b9f13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 */
OpenPOWER on IntegriCloud