bfin_sram.h 697 B

123456789101112131415161718192021222324252627282930
  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. extern void *sram_alloc(size_t size, unsigned long flags)
  18. __attribute_malloc__ __attribute_warn_unused_result__;
  19. extern int sram_free(const void *addr);
  20. extern void *dma_memcpy(void *dest, const void *src, size_t len)
  21. __nonnull((1, 2));
  22. __END_DECLS
  23. #endif