My Project
mali_kbase_mmu_hw.h
Go to the documentation of this file.
1 /*
2  *
3  * (C) COPYRIGHT 2014-2015 ARM Limited. All rights reserved.
4  *
5  * This program is free software and is provided to you under the terms of the
6  * GNU General Public License version 2 as published by the Free Software
7  * Foundation, and any use by you of this program is subject to the terms
8  * of such GNU licence.
9  *
10  * A copy of the licence is included with the program, and can also be obtained
11  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12  * Boston, MA 02110-1301, USA.
13  *
14  */
15 
16 
17 
33 #ifndef _MALI_KBASE_MMU_HW_H_
34 #define _MALI_KBASE_MMU_HW_H_
35 
36 /* Forward declarations */
37 struct kbase_device;
38 struct kbase_as;
39 struct kbase_context;
40 
54  KBASE_MMU_FAULT_TYPE_UNKNOWN = 0,
55  KBASE_MMU_FAULT_TYPE_PAGE,
56  KBASE_MMU_FAULT_TYPE_BUS,
57  KBASE_MMU_FAULT_TYPE_PAGE_UNEXPECTED,
58  KBASE_MMU_FAULT_TYPE_BUS_UNEXPECTED
59 };
60 
70 void kbase_mmu_hw_configure(struct kbase_device *kbdev,
71  struct kbase_as *as, struct kbase_context *kctx);
72 
90 int kbase_mmu_hw_do_operation(struct kbase_device *kbdev, struct kbase_as *as,
91  struct kbase_context *kctx, u64 vpfn, u32 nr, u32 type,
92  unsigned int handling_irq);
93 
103 void kbase_mmu_hw_clear_fault(struct kbase_device *kbdev, struct kbase_as *as,
104  struct kbase_context *kctx, enum kbase_mmu_fault_type type);
105 
117 void kbase_mmu_hw_enable_fault(struct kbase_device *kbdev, struct kbase_as *as,
118  struct kbase_context *kctx, enum kbase_mmu_fault_type type);
119 /* end group mali_kbase_mmu_hw *//* end group base_kbase_api */
122 
123 #endif /* _MALI_KBASE_MMU_HW_H_ */
void kbase_mmu_hw_enable_fault(struct kbase_device *kbdev, struct kbase_as *as, struct kbase_context *kctx, enum kbase_mmu_fault_type type)
Enable fault that has been previously reported by the MMU.
kbase_mmu_fault_type
MMU fault type descriptor.
Definition: mali_kbase_mmu_hw.h:53
Definition: mali_kbase_defs.h:1340
void kbase_mmu_hw_configure(struct kbase_device *kbdev, struct kbase_as *as, struct kbase_context *kctx)
Configure an address space for use.
int kbase_mmu_hw_do_operation(struct kbase_device *kbdev, struct kbase_as *as, struct kbase_context *kctx, u64 vpfn, u32 nr, u32 type, unsigned int handling_irq)
Issue an operation to the MMU.
Definition: mali_kbase_defs.h:668
void kbase_mmu_hw_clear_fault(struct kbase_device *kbdev, struct kbase_as *as, struct kbase_context *kctx, enum kbase_mmu_fault_type type)
Clear a fault that has been previously reported by the MMU.
Definition: mali_kbase_defs.h:951