RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
raspberrypi
include
bsp
mmu.h
Go to the documentation of this file.
1
8
9
/*
10
* Copyright (c) 2013 Alan Cudmore.
11
* based on work by:
12
* Copyright (c) 2009 embedded brains GmbH & Co. KG
13
*
14
* The license and distribution terms for this file may be
15
* found in the file LICENSE in this distribution or at
16
*
17
* http://www.rtems.org/license/LICENSE
18
*
19
*/
20
21
#ifndef LIBBSP_ARM_RASPBERRYPI_MMU_H
22
#define LIBBSP_ARM_RASPBERRYPI_MMU_H
23
24
#include <
libcpu/arm-cp15.h
>
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
/* __cplusplus */
29
39
40
#define RASPBERRYPI_MMU_CLIENT_DOMAIN 15U
41
42
#define RASPBERRYPI_MMU_READ_ONLY \
43
((RASPBERRYPI_MMU_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
44
| ARM_MMU_SECT_DEFAULT)
45
46
#define RASPBERRYPI_MMU_READ_ONLY_CACHED \
47
(RASPBERRYPI_MMU_READ_ONLY | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
48
49
#define RASPBERRYPI_MMU_READ_WRITE \
50
((RASPBERRYPI_MMU_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
51
| ARM_MMU_SECT_AP_0 \
52
| ARM_MMU_SECT_DEFAULT)
53
54
#define RASPBERRYPI_MMU_READ_WRITE_CACHED \
55
(RASPBERRYPI_MMU_READ_WRITE | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
56
58
59
#ifdef __cplusplus
60
}
61
#endif
/* __cplusplus */
62
63
#endif
/* LIBBSP_ARM_RASPBERRYPI_MMU_H */
arm-cp15.h
ARM co-processor 15 (CP15) API.
Generated by
1.18.0