]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/include/hmm/hmm_vm.h
07d40662de32712058c6effb234f52a907424848
2 * Support for Medifield PNW Camera Imaging ISP subsystem.
4 * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
6 * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License version
10 * 2 as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 #include <linux/kernel.h>
28 #include <linux/types.h>
29 #include <linux/mutex.h>
30 #include <linux/list.h>
36 struct list_head vm_node_list
;
38 struct kmem_cache
*cache
;
42 struct list_head list
;
48 #define ISP_VM_START 0x0
49 #define ISP_VM_SIZE (0x7FFFFFFF) /* 2G address space */
50 #define ISP_PTR_NULL NULL
52 int hmm_vm_init(struct hmm_vm
*vm
, unsigned int start
,
55 void hmm_vm_clean(struct hmm_vm
*vm
);
57 struct hmm_vm_node
*hmm_vm_alloc_node(struct hmm_vm
*vm
,
60 void hmm_vm_free_node(struct hmm_vm_node
*node
);
62 struct hmm_vm_node
*hmm_vm_find_node_start(struct hmm_vm
*vm
,
65 struct hmm_vm_node
*hmm_vm_find_node_in_range(struct hmm_vm
*vm
,