summaryrefslogtreecommitdiff
path: root/core/cortex-m/include/mpu_private.h
blob: eca474e14d8f9bbcb8c48f61a20857235415eb96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Copyright 2020 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * @file
 *
 * @brief Private header file. Not meant to be used outside of mpu.c and tests.
 */

#ifndef __CROS_EC_MPU_PRIVATE_H
#define __CROS_EC_MPU_PRIVATE_H

int mpu_num_regions(void);
bool has_mpu(void);
bool mpu_is_unified(void);
void mpu_disable(void);
int mpu_update_region(uint8_t region, uint32_t addr, uint8_t size_bit,
		      uint16_t attr, uint8_t enable, uint8_t srd);
int mpu_config_region(uint8_t region, uint32_t addr, uint32_t size,
		      uint16_t attr, uint8_t enable);
struct mpu_rw_regions mpu_get_rw_regions(void);

#endif /* __CROS_EC_MPU_PRIVATE_H */