162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 262306a36Sopenharmony_ci/* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef __LIMA_MMU_H__ 562306a36Sopenharmony_ci#define __LIMA_MMU_H__ 662306a36Sopenharmony_ci 762306a36Sopenharmony_cistruct lima_ip; 862306a36Sopenharmony_cistruct lima_vm; 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ciint lima_mmu_resume(struct lima_ip *ip); 1162306a36Sopenharmony_civoid lima_mmu_suspend(struct lima_ip *ip); 1262306a36Sopenharmony_ciint lima_mmu_init(struct lima_ip *ip); 1362306a36Sopenharmony_civoid lima_mmu_fini(struct lima_ip *ip); 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_civoid lima_mmu_flush_tlb(struct lima_ip *ip); 1662306a36Sopenharmony_civoid lima_mmu_switch_vm(struct lima_ip *ip, struct lima_vm *vm); 1762306a36Sopenharmony_civoid lima_mmu_page_fault_resume(struct lima_ip *ip); 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#endif 20