blob: a58a9de75a30ad2c78d9a248383fda24fed13223 (
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
26
27
28
29
30
31
32
|
/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Device Tree binding constants for Exynos System MMU.
*/
#ifndef _DT_BINDINGS_EXYNOS_SYSTEM_MMU_H
#define _DT_BINDINGS_EXYNOS_SYSTEM_MMU_H
/* MAX AXI ID: 65535 (MAX AW_AXI_ID + AW Marker(=0x8000))
* NAID: Not Available AXI ID that exceeds MAX AXI ID.
* AR: AR AXI ID.
* AW: AW AXI ID.
*/
#define AXI_ID_MARKER 0x8000
#define NAID 65536
#define AR(x) (x)
#define AW(x) ((x) + AXI_ID_MARKER)
#define AXIID_MASK (AXI_ID_MARKER - 1)
#define is_axi_id(id) ((id) != NAID)
#define is_ar_axi_id(id) (!((id) & AXI_ID_MARKER))
#endif /* _DT_BINDINGS_EXYNOS_SYSTEM_MMU_H */
|