source: branches/reconfiguration/modules/vci_xicu/include/soclib/xicu.h @ 905

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

reconf: introduce a configuration function in the vci_xicu

  • This configuration function consists in a vector of writable registers (up to 32) which are directly connected to an output port (one port per register).
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    XICU_CFG_REG = 17,
57};
58
59#define XICU_REG(func, idx) (((func)<<5)|(idx))
60
61#endif /* XICU_REGS_H */
62
63// Local Variables:
64// tab-width: 4
65// c-basic-offset: 4
66// c-file-offsets:((innamespace . 0)(inline-open . 0))
67// indent-tabs-mode: nil
68// End:
69
70// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
71
Note: See TracBrowser for help on using the repository browser.