Home | History | Annotate | Download | only in asm
      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  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __ASM_ARM_MEMORY_H
     20 #define __ASM_ARM_MEMORY_H
     21 #ifndef __ASSEMBLY__
     22 #define UL(x) (x##UL)
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #else
     25 #define UL(x) (x)
     26 #endif
     27 #include <linux/compiler.h>
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #include <asm/arch/memory.h>
     30 #include <asm/sizes.h>
     31 #ifndef TASK_SIZE
     32 #define TASK_SIZE (CONFIG_DRAM_SIZE)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #endif
     35 #ifndef TASK_UNMAPPED_BASE
     36 #define TASK_UNMAPPED_BASE UL(0x00000000)
     37 #endif
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #ifndef PHYS_OFFSET
     40 #define PHYS_OFFSET (CONFIG_DRAM_BASE)
     41 #endif
     42 #ifndef END_MEM
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define END_MEM (CONFIG_DRAM_BASE + CONFIG_DRAM_SIZE)
     45 #endif
     46 #ifndef PAGE_OFFSET
     47 #define PAGE_OFFSET (PHYS_OFFSET)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #endif
     50 #define MODULE_END (END_MEM)
     51 #define MODULE_START (PHYS_OFFSET)
     52 #ifndef CONSISTENT_DMA_SIZE
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define CONSISTENT_DMA_SIZE SZ_2M
     55 #endif
     56 #ifndef __virt_to_phys
     57 #define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define __phys_to_virt(x) ((x) - PHYS_OFFSET + PAGE_OFFSET)
     60 #endif
     61 #define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT)
     62 #define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT)
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #ifndef __ASSEMBLY__
     65 #ifndef ISA_DMA_THRESHOLD
     66 #define ISA_DMA_THRESHOLD (0xffffffffULL)
     67 #endif
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #ifndef arch_adjust_zones
     70 #define arch_adjust_zones(node,size,holes) do { } while (0)
     71 #endif
     72 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define __pa(x) __virt_to_phys((unsigned long)(x))
     75 #define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
     76 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
     77 #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
     80 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
     81 #define virt_addr_valid(kaddr) ((unsigned long)(kaddr) >= PAGE_OFFSET && (unsigned long)(kaddr) < (unsigned long)high_memory)
     82 #define PHYS_TO_NID(addr) (0)
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
     85 #ifndef __arch_page_to_dma
     86 #define page_to_dma(dev, page) ((dma_addr_t)__virt_to_bus((unsigned long)page_address(page)))
     87 #define dma_to_virt(dev, addr) ((void *)__bus_to_virt(addr))
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define virt_to_dma(dev, addr) ((dma_addr_t)__virt_to_bus((unsigned long)(addr)))
     90 #else
     91 #define page_to_dma(dev, page) (__arch_page_to_dma(dev, page))
     92 #define dma_to_virt(dev, addr) (__arch_dma_to_virt(dev, addr))
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define virt_to_dma(dev, addr) (__arch_virt_to_dma(dev, addr))
     95 #endif
     96 #ifndef arch_is_coherent
     97 #define arch_is_coherent() 0
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #endif
    100 #endif
    101 #include <asm-generic/memory_model.h>
    102 #endif
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104