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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| /** @file
|
| Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
| SPDX-License-Identifier: BSD-2-Clause-Patent
|
| **/
|
| #ifndef _sysregs_h
| #define _sysregs_h
|
| #include "DataTypes.h"
|
| #ifndef BIT0
| #define BIT0 1
| #define BIT1 (1 << 1)
| #define BIT2 (1 << 2)
| #define BIT3 (1 << 3)
| #define BIT4 (1 << 4)
| #define BIT5 (1 << 5)
| #define BIT6 (1 << 6)
| #define BIT7 (1 << 7)
| #define BIT8 (1 << 8)
| #define BIT9 (1 << 9)
| #endif
| #ifndef BIT10
| #define BIT10 (1 << 10)
| #define BIT11 (1 << 11)
| #define BIT12 (1 << 12)
| #define BIT13 (1 << 13)
| #define BIT14 (1 << 14)
| #define BIT15 (1 << 15)
| #define BIT16 (1 << 16)
| #define BIT17 (1 << 17)
| #define BIT18 (1 << 18)
| #define BIT19 (1 << 19)
| #define BIT20 (1 << 20)
| #define BIT21 (1 << 21)
| #define BIT22 (1 << 22)
| #define BIT23 (1 << 23)
| #define BIT24 (1 << 24)
| #define BIT25 (1 << 25)
| #define BIT26 (1 << 26)
| #define BIT27 (1 << 27)
| #define BIT28 (1 << 28)
| #define BIT29 (1 << 29)
| #define BIT30 (1 << 30)
| #define BIT31 (UINT32) (1 << 31)
| #endif
|
| #ifndef TRUE
| #define TRUE ((BOOLEAN) 1 == 1)
| #endif
|
| #ifndef FALSE
| #define FALSE ((BOOLEAN) 0 == 1)
| #endif
|
| #ifndef ABS
| #define ABS(x) (((x) < 0) ? (-x) : (x))
| #endif
| //
| // disable compiler warning to use bit fields on unsigned short/long types
| //
| #ifdef _MSC_VER
| #pragma warning(disable : 4214)
| #endif
|
| #endif // _sysregs_h
|
|