source: rtems/bsps/arm/raspberrypi/include/bsp/mmu.h @ ba619b7f

Last change on this file since ba619b7f was ba619b7f, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:20

bsps/arm/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup rapberrypi_mmu
5 *
6 * @brief MMU API.
7 */
8
9/*
10 * Copyright (c) 2013 Alan Cudmore.
11 * based on work by:
12 * Copyright (c) 2009 embedded brains GmbH.  All rights reserved.
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
27extern "C" {
28#endif /* __cplusplus */
29
30/**
31 * @defgroup raspberrypi_mmu MMU Support
32 *
33 * @ingroup RTEMSBSPsARMRaspberryPi
34 *
35 * @brief MMU support.
36 *
37 * @{
38 */
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
57/** @} */
58
59#ifdef __cplusplus
60}
61#endif /* __cplusplus */
62
63#endif /* LIBBSP_ARM_RASPBERRYPI_MMU_H */
Note: See TracBrowser for help on using the repository browser.