imalloc.h 741 B

1234567891011121314151617181920212223242526
  1. #ifndef _PPC64_IMALLOC_H
  2. #define _PPC64_IMALLOC_H
  3. /*
  4. * Define the address range of the imalloc VM area.
  5. */
  6. #define PHBS_IO_BASE VMALLOC_END
  7. #define IMALLOC_BASE (PHBS_IO_BASE + 0x80000000ul) /* Reserve 2 gigs for PHBs */
  8. #define IMALLOC_END (VMALLOC_START + PGTABLE_RANGE)
  9. /* imalloc region types */
  10. #define IM_REGION_UNUSED 0x1
  11. #define IM_REGION_SUBSET 0x2
  12. #define IM_REGION_EXISTS 0x4
  13. #define IM_REGION_OVERLAP 0x8
  14. #define IM_REGION_SUPERSET 0x10
  15. extern struct vm_struct * im_get_free_area(unsigned long size);
  16. extern struct vm_struct * im_get_area(unsigned long v_addr, unsigned long size,
  17. int region_type);
  18. extern void im_free(void *addr);
  19. extern unsigned long ioremap_bot;
  20. #endif /* _PPC64_IMALLOC_H */