vmalloc.h revision 271127
1218792Snp/*-
2237436Snp * Copyright (c) 2010 Isilon Systems, Inc.
3218792Snp * Copyright (c) 2010 iX Systems, Inc.
4218792Snp * Copyright (c) 2010 Panasas, Inc.
5218792Snp * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6218792Snp * All rights reserved.
7218792Snp *
8218792Snp * Redistribution and use in source and binary forms, with or without
9218792Snp * modification, are permitted provided that the following conditions
10218792Snp * are met:
11218792Snp * 1. Redistributions of source code must retain the above copyright
12218792Snp *    notice unmodified, this list of conditions, and the following
13218792Snp *    disclaimer.
14218792Snp * 2. Redistributions in binary form must reproduce the above copyright
15218792Snp *    notice, this list of conditions and the following disclaimer in the
16218792Snp *    documentation and/or other materials provided with the distribution.
17218792Snp *
18218792Snp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19218792Snp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20218792Snp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21218792Snp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22218792Snp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23218792Snp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24218792Snp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25218792Snp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26218792Snp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27218792Snp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28218792Snp */
29218792Snp
30237263Snp#ifndef _LINUX_VMALLOC_H_
31237263Snp#define	_LINUX_VMALLOC_H_
32218792Snp
33218792Snp#include <asm/page.h>
34218792Snp
35228561Snp#define	VM_MAP		0x0000
36218792Snp#define	PAGE_KERNEL	0x0000
37220649Snp
38246385Snpvoid *vmap(struct page **pages, unsigned int count, unsigned long flags,
39246385Snp    int prot);
40246385Snpvoid vunmap(void *addr);
41246385Snp
42246385Snp#endif	/* _LINUX_VMALLOC_H_ */
43246385Snp