Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/sec/tsec_t210.h
1476 views
1
/*
2
* Copyright (c) 2018-2023 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#ifndef _TSEC_T210_H_
18
#define _TSEC_T210_H_
19
20
#define TSEC_MAILBOX0 0x1040
21
#define TSEC_MAILBOX1 0x1044
22
#define TSEC_ITFEN 0x1048
23
#define TSEC_ITFEN_CTXEN BIT(0)
24
#define TSEC_ITFEN_MTHDEN BIT(1)
25
#define TSEC_IRQMSET 0x1010
26
#define TSEC_IRQMSET_WDTMR BIT(1)
27
#define TSEC_IRQMSET_HALT BIT(4)
28
#define TSEC_IRQMSET_EXTERR BIT(5)
29
#define TSEC_IRQMSET_SWGEN0 BIT(6)
30
#define TSEC_IRQMSET_SWGEN1 BIT(7)
31
#define TSEC_IRQMSET_EXT(val) (((val) & 0xFF) << 8)
32
#define TSEC_IRQDEST 0x101C
33
#define TSEC_IRQDEST_HALT BIT(4)
34
#define TSEC_IRQDEST_EXTERR BIT(5)
35
#define TSEC_IRQDEST_SWGEN0 BIT(6)
36
#define TSEC_IRQDEST_SWGEN1 BIT(7)
37
#define TSEC_IRQDEST_EXT(val) (((val) & 0xFF) << 8)
38
#define TSEC_CPUCTL 0x1100
39
#define TSEC_CPUCTL_STARTCPU BIT(1)
40
#define TSEC_BOOTVEC 0x1104
41
#define TSEC_DMACTL 0x110C
42
#define TSEC_DMATRFBASE 0x1110
43
#define TSEC_DMATRFMOFFS 0x1114
44
#define TSEC_DMATRFCMD 0x1118
45
#define TSEC_DMATRFCMD_IDLE BIT(1)
46
#define TSEC_DMATRFCMD_IMEM BIT(4)
47
#define TSEC_DMATRFCMD_SIZE_256B (6 << 8)
48
#define TSEC_DMATRFFBOFFS 0x111C
49
50
#endif
51
52