Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_VMALLOC_H
     13 #define _LINUX_VMALLOC_H
     14 
     15 #include <linux/spinlock.h>
     16 #include <asm/page.h>
     17 
     18 struct vm_area_struct;
     19 
     20 #define VM_IOREMAP 0x00000001
     21 #define VM_ALLOC 0x00000002
     22 #define VM_MAP 0x00000004
     23 #define VM_USERMAP 0x00000008
     24 #define VM_VPAGES 0x00000010
     25 
     26 #ifndef IOREMAP_MAX_ORDER
     27 #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT)
     28 #endif
     29 
     30 struct vm_struct {
     31  void *addr;
     32  unsigned long size;
     33  unsigned long flags;
     34  struct page **pages;
     35  unsigned int nr_pages;
     36  unsigned long phys_addr;
     37  struct vm_struct *next;
     38 };
     39 
     40 #endif
     41