RTEMS 6.1-rc4
Loading...
Searching...
No Matches
tms570-pom.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/*
13 * Copyright (C) 2014 Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 *
15 * Czech Technical University in Prague
16 * Zikova 1903/4
17 * 166 36 Praha 6
18 * Czech Republic
19 *
20 * Redistribution and use in source and binary forms, with or without
21 * modification, are permitted provided that the following conditions
22 * are met:
23 * 1. Redistributions of source code must retain the above copyright
24 * notice, this list of conditions and the following disclaimer.
25 * 2. Redistributions in binary form must reproduce the above copyright
26 * notice, this list of conditions and the following disclaimer in the
27 * documentation and/or other materials provided with the distribution.
28 *
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
33 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39 * POSSIBILITY OF SUCH DAMAGE.
40 */
41
42#ifndef LIBBSP_ARM_TMS570_POM_H
43#define LIBBSP_ARM_TMS570_POM_H
44
45#include <stdint.h>
46#include <bsp/tms570.h>
47
48#ifdef __cplusplus
49extern "C" {
50#endif /* __cplusplus */
51
52#define TMS570_POM_REGIONS 32
53#define TMS570_POM_GLBCTRL_ENABLE 0x000000a0a
54
55/* Specification of memory size used for field REGSIZE of tms570_pom_region_t */
56#define TMS570_POM_REGSIZE_DISABLED 0x0
57#define TMS570_POM_REGSIZE_64B 0x1
58#define TMS570_POM_REGSIZE_128B 0x2
59#define TMS570_POM_REGSIZE_256B 0x3
60#define TMS570_POM_REGSIZE_512B 0x4
61#define TMS570_POM_REGSIZE_1KB 0x5
62#define TMS570_POM_REGSIZE_2KB 0x6
63#define TMS570_POM_REGSIZE_4KB 0x7
64#define TMS570_POM_REGSIZE_8KB 0x8
65#define TMS570_POM_REGSIZE_16KB 0x9
66#define TMS570_POM_REGSIZE_32KB 0xa
67#define TMS570_POM_REGSIZE_64KB 0xb
68#define TMS570_POM_REGSIZE_128KB 0xc
69#define TMS570_POM_REGSIZE_256KB 0xd
70
71#define TMS570_POM_REGADDRMASK ((1<<23)-1)
72
74void tms570_pom_remap(void);
75
78#ifdef __cplusplus
79}
80#endif /* __cplusplus */
81
82#endif /* LIBBSP_ARM_TMS570_POM_H */
void tms570_pom_remap(void)
remaps vector table
Definition: tms570-pom.c:108
void tms570_pom_initialize_and_clear(void)
initialize and clear parameters overlay module (POM)
Definition: tms570-pom.c:89
This header file provides TMS570 interfaces.