bfin_sram.h 726 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * bfin_sram.h - userspace interface to L1 memory allocator
  3. *
  4. * Copyright (c) 2007 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef __BFIN_SRAM_H__
  9. #define __BFIN_SRAM_H__
  10. #include <features.h>
  11. #include <sys/types.h>
  12. __BEGIN_DECLS
  13. #define L1_INST_SRAM 0x00000001
  14. #define L1_DATA_A_SRAM 0x00000002
  15. #define L1_DATA_B_SRAM 0x00000004
  16. #define L1_DATA_SRAM 0x00000006
  17. #define L2_SRAM 0x00000008
  18. extern void *sram_alloc(size_t size, unsigned long flags)
  19. __attribute_malloc__ __attribute_warn_unused_result__;
  20. extern int sram_free(const void *addr);
  21. extern void *dma_memcpy(void *dest, const void *src, size_t len)
  22. __nonnull((1, 2));
  23. __END_DECLS
  24. #endif