summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/x1000/intc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/x1000/intc.h')
-rw-r--r--firmware/target/mips/ingenic_x1000/x1000/intc.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/x1000/intc.h b/firmware/target/mips/ingenic_x1000/x1000/intc.h
new file mode 100644
index 0000000000..37fbf33fb6
--- /dev/null
+++ b/firmware/target/mips/ingenic_x1000/x1000/intc.h
@@ -0,0 +1,57 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * This file was automatically generated by headergen, DO NOT EDIT it.
9 * headergen version: 3.0.0
10 * x1000 version: 1.0
11 * x1000 authors: Aidan MacDonald
12 *
13 * Copyright (C) 2015 by the authors
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ****************************************************************************/
24#ifndef __HEADERGEN_INTC_H__
25#define __HEADERGEN_INTC_H__
26
27#include "macro.h"
28
29#define REG_INTC_SRC(_n1) jz_reg(INTC_SRC(_n1))
30#define JA_INTC_SRC(_n1) (0xb0001000 + 0x0 + (_n1) * 0x20)
31#define JT_INTC_SRC(_n1) JIO_32_RW
32#define JN_INTC_SRC(_n1) INTC_SRC
33#define JI_INTC_SRC(_n1) (_n1)
34
35#define REG_INTC_MSK(_n1) jz_reg(INTC_MSK(_n1))
36#define JA_INTC_MSK(_n1) (0xb0001000 + 0x4 + (_n1) * 0x20)
37#define JT_INTC_MSK(_n1) JIO_32_RW
38#define JN_INTC_MSK(_n1) INTC_MSK
39#define JI_INTC_MSK(_n1) (_n1)
40#define REG_INTC_MSK_SET(_n1) jz_reg(INTC_MSK_SET(_n1))
41#define JA_INTC_MSK_SET(_n1) (JA_INTC_MSK(_n1) + 0x4)
42#define JT_INTC_MSK_SET(_n1) JIO_32_WO
43#define JN_INTC_MSK_SET(_n1) INTC_MSK
44#define JI_INTC_MSK_SET(_n1) (_n1)
45#define REG_INTC_MSK_CLR(_n1) jz_reg(INTC_MSK_CLR(_n1))
46#define JA_INTC_MSK_CLR(_n1) (JA_INTC_MSK(_n1) + 0x8)
47#define JT_INTC_MSK_CLR(_n1) JIO_32_WO
48#define JN_INTC_MSK_CLR(_n1) INTC_MSK
49#define JI_INTC_MSK_CLR(_n1) (_n1)
50
51#define REG_INTC_PND(_n1) jz_reg(INTC_PND(_n1))
52#define JA_INTC_PND(_n1) (0xb0001000 + 0x10 + (_n1) * 0x20)
53#define JT_INTC_PND(_n1) JIO_32_RW
54#define JN_INTC_PND(_n1) INTC_PND
55#define JI_INTC_PND(_n1) (_n1)
56
57#endif /* __HEADERGEN_INTC_H__*/