summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/bfin_sram.h
blob: 278514d5d5cde8b875e2b224de9a8cc8cb66931d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * bfin_sram.h - userspace interface to L1 memory allocator
 *
 * Copyright (c) 2007 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */

#ifndef __BFIN_SRAM_H__
#define __BFIN_SRAM_H__

#include <features.h>
#include <sys/types.h>

__BEGIN_DECLS

#define L1_INST_SRAM            0x00000001
#define L1_DATA_A_SRAM          0x00000002
#define L1_DATA_B_SRAM          0x00000004
#define L1_DATA_SRAM            0x00000006
#define L2_SRAM			0x00000008

extern void *sram_alloc(size_t size, unsigned long flags)
	__attribute_malloc__ __attribute_warn_unused_result__;
extern int sram_free(const void *addr);
extern void *dma_memcpy(void *dest, const void *src, size_t len)
	__nonnull((1, 2));

__END_DECLS

#endif