mpu.h (877ec119dbbf9576953efc457ede5243621ad6eb) mpu.h (a0995c0805b63c930b99970f2c9d5e4f167ca65b)
1#ifndef __ARM_MPU_H
2#define __ARM_MPU_H
3
4/* MPUIR layout */
5#define MPUIR_nU 1
6#define MPUIR_DREGION 8
7#define MPUIR_IREGION 16
8#define MPUIR_DREGION_SZMASK (0xFF << MPUIR_DREGION)

--- 48 unchanged lines hidden (view full) ---

57struct mpu_rgn {
58 /* Assume same attributes for d/i-side */
59 u32 drbar;
60 u32 drsr;
61 u32 dracr;
62};
63
64struct mpu_rgn_info {
1#ifndef __ARM_MPU_H
2#define __ARM_MPU_H
3
4/* MPUIR layout */
5#define MPUIR_nU 1
6#define MPUIR_DREGION 8
7#define MPUIR_IREGION 16
8#define MPUIR_DREGION_SZMASK (0xFF << MPUIR_DREGION)

--- 48 unchanged lines hidden (view full) ---

57struct mpu_rgn {
58 /* Assume same attributes for d/i-side */
59 u32 drbar;
60 u32 drsr;
61 u32 dracr;
62};
63
64struct mpu_rgn_info {
65 u32 mpuir;
65 unsigned int used;
66 struct mpu_rgn rgns[MPU_MAX_REGIONS];
67};
68extern struct mpu_rgn_info mpu_rgn_info;
69
70#ifdef CONFIG_ARM_MPU
71
72extern void __init adjust_lowmem_bounds_mpu(void);
73extern void __init mpu_setup(void);
74
75#else
76
77static inline void adjust_lowmem_bounds_mpu(void) {}
78static inline void mpu_setup(void) {}
79
80#endif /* !CONFIG_ARM_MPU */
81
82#endif /* __ASSEMBLY__ */
83
84#endif
66 struct mpu_rgn rgns[MPU_MAX_REGIONS];
67};
68extern struct mpu_rgn_info mpu_rgn_info;
69
70#ifdef CONFIG_ARM_MPU
71
72extern void __init adjust_lowmem_bounds_mpu(void);
73extern void __init mpu_setup(void);
74
75#else
76
77static inline void adjust_lowmem_bounds_mpu(void) {}
78static inline void mpu_setup(void) {}
79
80#endif /* !CONFIG_ARM_MPU */
81
82#endif /* __ASSEMBLY__ */
83
84#endif