vmalloc.h revision 270710
11573Srgrimes/*- 21573Srgrimes * Copyright (c) 2010 Isilon Systems, Inc. 31573Srgrimes * Copyright (c) 2010 iX Systems, Inc. 41573Srgrimes * Copyright (c) 2010 Panasas, Inc. 51573Srgrimes * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 61573Srgrimes * All rights reserved. 71573Srgrimes * 81573Srgrimes * Redistribution and use in source and binary forms, with or without 91573Srgrimes * modification, are permitted provided that the following conditions 101573Srgrimes * are met: 111573Srgrimes * 1. Redistributions of source code must retain the above copyright 121573Srgrimes * notice unmodified, this list of conditions, and the following 131573Srgrimes * disclaimer. 141573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 151573Srgrimes * notice, this list of conditions and the following disclaimer in the 161573Srgrimes * documentation and/or other materials provided with the distribution. 171573Srgrimes * 181573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 191573Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 201573Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 211573Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 221573Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 231573Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 241573Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 251573Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 261573Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 271573Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 281573Srgrimes */ 291573Srgrimes 301573Srgrimes#ifndef _LINUX_VMALLOC_H_ 311573Srgrimes#define _LINUX_VMALLOC_H_ 321573Srgrimes 331573Srgrimes#include <asm/page.h> 341573Srgrimes 351573Srgrimes#define VM_MAP 0x0000 361573Srgrimes#define PAGE_KERNEL 0x0000 3793211Sbde 3892887Sobrienvoid *vmap(struct page **pages, unsigned int count, unsigned long flags, 391573Srgrimes int prot); 401573Srgrimesvoid vunmap(void *addr); 411573Srgrimes 421573Srgrimes#endif /* _LINUX_VMALLOC_H_ */ 431573Srgrimes