source: branches/fault_tolerance/module/infrastructure_component/interrupt_infrastructure/vci_xicu/include/soclib/xicu.h @ 647

Last change on this file since 647 was 647, checked in by cfuguet, 10 years ago

Creating branch for fault tolerance support on the TSAR architecture.

Some components from the SOCLIB repository which will be modified has
been copied in this branch.

File size: 1.7 KB
Line 
1/*
2 * SOCLIB_LGPL_HEADER_BEGIN
3 *
4 * This file is part of SoCLib, GNU LGPLv2.1.
5 *
6 * SoCLib is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; version 2.1 of the License.
9 *
10 * SoCLib is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with SoCLib; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19 *
20 * SOCLIB_LGPL_HEADER_END
21 *
22 * Copyright (c) UPMC, Lip6
23 *         Nicolas Pouillon <nipo@ssji.net>, 2009
24 *
25 * Maintainers: nipo
26 */
27
28#ifndef XICU_REGS_H
29#define XICU_REGS_H
30
31enum SoclibXicuFunc {
32    XICU_WTI_REG = 0,
33    XICU_PTI_PER = 1,
34    XICU_PTI_VAL = 2,
35    XICU_PTI_ACK = 3,
36
37    XICU_MSK_PTI = 4,
38    XICU_MSK_PTI_ENABLE = 5,
39    XICU_MSK_PTI_DISABLE = 6,
40    XICU_PTI_ACTIVE = 6,
41
42    XICU_MSK_HWI = 8,
43    XICU_MSK_HWI_ENABLE = 9,
44    XICU_MSK_HWI_DISABLE = 10,
45    XICU_HWI_ACTIVE = 10,
46
47    XICU_MSK_WTI = 12,
48    XICU_MSK_WTI_ENABLE = 13,
49    XICU_MSK_WTI_DISABLE = 14,
50    XICU_WTI_ACTIVE = 14,
51
52    XICU_PRIO = 15,
53
54    XICU_CONFIG = 16,
55};
56
57#define XICU_REG(func, idx) (((func)<<5)|(idx))
58
59#endif /* XICU_REGS_H */
60
61// Local Variables:
62// tab-width: 4
63// c-basic-offset: 4
64// c-file-offsets:((innamespace . 0)(inline-open . 0))
65// indent-tabs-mode: nil
66// End:
67
68// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
69
Note: See TracBrowser for help on using the repository browser.