lima_mmu.h (516B)
1/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2/* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */ 3 4#ifndef __LIMA_MMU_H__ 5#define __LIMA_MMU_H__ 6 7struct lima_ip; 8struct lima_vm; 9 10int lima_mmu_resume(struct lima_ip *ip); 11void lima_mmu_suspend(struct lima_ip *ip); 12int lima_mmu_init(struct lima_ip *ip); 13void lima_mmu_fini(struct lima_ip *ip); 14 15void lima_mmu_flush_tlb(struct lima_ip *ip); 16void lima_mmu_switch_vm(struct lima_ip *ip, struct lima_vm *vm); 17void lima_mmu_page_fault_resume(struct lima_ip *ip); 18 19#endif