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

4.115
Last change on this file since cfe13cb was cfe13cb, checked in by Sebastian Huber <sebastian.huber@…>, on 12/16/10 at 13:35:06

2010-12-16 Sebastian Huber <sebastian.huber@…>

  • configure.ac, include/bspopts.h.in: More options.
  • include/lpc32xx.h: Added watchdog definitions.
  • include/mmu.h, misc/mmu.c: Added const qualifier.
  • startup/bspreset.c: Use watchdog reset.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lpc32xx_mmu
5 *
6 * @brief MMU support 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
58void lpc32xx_set_translation_table_entries(
59  const void *begin,
60  const void *end,
61  uint32_t section_flags
62);
63
64/** @} */
65
66#ifdef __cplusplus
67}
68#endif /* __cplusplus */
69
70#endif /* LIBBSP_ARM_LPC32XX_MMU_H */
Note: See TracBrowser for help on using the repository browser.