source: rtems/c/src/lib/libbsp/arm/lpc32xx/include/mmu.h @ 22f107b6

4.104.115
Last change on this file since 22f107b6 was 22f107b6, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 04/09/10 at 12:25:22

Changes throughout

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lpc32xx_mmu
5 *
6 * @brief MMU API.
7 */
8
9/*
10 * Copyright (c) 2009
11 * embedded brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.com/license/LICENSE.
20 */
21
22#ifndef LIBBSP_ARM_LPC32XX_MMU_H
23#define LIBBSP_ARM_LPC32XX_MMU_H
24
25#include <libcpu/arm-cp15.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif /* __cplusplus */
30
31/**
32 * @defgroup lpc32xx_mmu MMU Support
33 *
34 * @ingroup lpc32xx
35 *
36 * @brief MMU support.
37 *
38 * @{
39 */
40
41#define LPC32XX_MMU_CLIENT_DOMAIN 15U
42
43#define LPC32XX_MMU_READ_ONLY \
44  ((LPC32XX_MMU_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
45    | ARM_MMU_SECT_DEFAULT)
46
47#define LPC32XX_MMU_READ_ONLY_CACHED \
48  (LPC32XX_MMU_READ_ONLY | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
49
50#define LPC32XX_MMU_READ_WRITE \
51  ((LPC32XX_MMU_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
52    | ARM_MMU_SECT_AP_0 \
53    | ARM_MMU_SECT_DEFAULT)
54
55#define LPC32XX_MMU_READ_WRITE_CACHED \
56  (LPC32XX_MMU_READ_WRITE | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
57
58/** @} */
59
60#ifdef __cplusplus
61}
62#endif /* __cplusplus */
63
64#endif /* LIBBSP_ARM_LPC32XX_MMU_H */
Note: See TracBrowser for help on using the repository browser.