/* * SRAM Memory Management * * Copyright (c) 2011 Marvell Semiconductors Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #ifndef __DMA_MMP_TDMA_H #define __DMA_MMP_TDMA_H #include <linux/genalloc.h> /* ARBITRARY: SRAM allocations are multiples of this 2^N size */ #define SRAM_GRANULARITY 512 enum sram_type { MMP_SRAM_UNDEFINED = 0, MMP_ASRAM, MMP_ISRAM, }; struct sram_platdata { char *pool_name; int granularity; }; #ifdef CONFIG_MMP_SRAM extern struct gen_pool *sram_get_gpool(char *pool_name); #else
static inline struct gen_pool *sram_get_gpool(char *pool_name) { return NULL; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Rob Herring | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Leo Yan | 49 | 64.47% | 1 | 25.00% |
Rob Herring | 22 | 28.95% | 1 | 25.00% |
Sachin Kamat | 4 | 5.26% | 1 | 25.00% |
Vinod Koul | 1 | 1.32% | 1 | 25.00% |
Total | 76 | 100.00% | 4 | 100.00% |