addr_map.h 1001 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __ADDR_MAP_H
  2. #define __ADDR_MAP_H
  3. /*
  4. * Copyright 2008 Freescale Semiconductor, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * Version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. #include <asm/types.h>
  21. extern phys_addr_t addrmap_virt_to_phys(void *vaddr);
  22. extern unsigned long addrmap_phys_to_virt(phys_addr_t paddr);
  23. extern void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr,
  24. phys_size_t size, int idx);
  25. #endif