/kern_oII/Documentation/blackfin/cachefeatures.txt

http://omnia2droid.googlecode.com/ · Plain Text · 65 lines · 50 code · 15 blank · 0 comment · 0 complexity · 210e49d96c5f3e14acfa9ba561dad07c MD5 · raw file

  1. /*
  2. * File: Documentation/blackfin/cachefeatures.txt
  3. * Based on:
  4. * Author:
  5. *
  6. * Created:
  7. * Description: This file contains the simple DMA Implementation for Blackfin
  8. *
  9. * Rev: $Id: cachefeatures.txt 2384 2006-11-01 04:12:43Z magicyang $
  10. *
  11. * Modified:
  12. * Copyright 2004-2006 Analog Devices Inc.
  13. *
  14. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  15. *
  16. */
  17. - Instruction and Data cache initialization.
  18. icache_init();
  19. dcache_init();
  20. - Instruction and Data cache Invalidation Routines, when flushing the
  21. same is not required.
  22. _icache_invalidate();
  23. _dcache_invalidate();
  24. Also, for invalidating the entire instruction and data cache, the below
  25. routines are provided (another method for invalidation, refer page no 267 and 287 of
  26. ADSP-BF533 Hardware Reference manual)
  27. invalidate_entire_dcache();
  28. invalidate_entire_icache();
  29. -External Flushing of Instruction and data cache routines.
  30. flush_instruction_cache();
  31. flush_data_cache();
  32. - Internal Flushing of Instruction and Data Cache.
  33. icplb_flush();
  34. dcplb_flush();
  35. - Locking the cache.
  36. cache_grab_lock();
  37. cache_lock();
  38. Please refer linux-2.6.x/Documentation/blackfin/cache-lock.txt for how to
  39. lock the cache.
  40. Locking the cache is optional feature.
  41. - Miscellaneous cache functions.
  42. flush_cache_all();
  43. flush_cache_mm();
  44. invalidate_dcache_range();
  45. flush_dcache_range();
  46. flush_dcache_page();
  47. flush_cache_range();
  48. flush_cache_page();
  49. invalidate_dcache_range();
  50. flush_page_to_ram();