1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef __ASM_POWERPC_FSL_85XX_CACHE_SRAM_H__
14 #define __ASM_POWERPC_FSL_85XX_CACHE_SRAM_H__
15
16 #include <asm/rheap.h>
17 #include <linux/spinlock.h>
18
19
20
21
22
23 struct mpc85xx_cache_sram {
24 phys_addr_t base_phys;
25 void *base_virt;
26 unsigned int size;
27 rh_info_t *rh;
28 spinlock_t lock;
29 };
30
31 extern void mpc85xx_cache_sram_free(void *ptr);
32 extern void *mpc85xx_cache_sram_alloc(unsigned int size,
33 phys_addr_t *phys, unsigned int align);
34
35 #endif