Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/mem/mc.h
1476 views
1
/*
2
* Copyright (c) 2018 naehrwert
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 _MC_H_
18
#define _MC_H_
19
20
#include <utils/types.h>
21
#include <mem/mc_t210.h>
22
23
void mc_config_tsec_carveout(u32 bom, u32 size1mb, bool lock);
24
void mc_config_carveout();
25
void mc_config_carveout_finalize();
26
void mc_enable_ahb_redirect();
27
void mc_disable_ahb_redirect();
28
bool mc_client_has_access(void *address);
29
void mc_enable();
30
31
#endif
32
33