cregit-Linux how code gets into the kernel

Release 4.12 include/linux/platform_data/dma-mmp_tdma.h

/*
 *  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

PersonTokensPropCommitsCommitProp
Rob Herring16100.00%1100.00%
Total16100.00%1100.00%

#endif #endif /* __DMA_MMP_TDMA_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Leo Yan4964.47%125.00%
Rob Herring2228.95%125.00%
Sachin Kamat45.26%125.00%
Vinod Koul11.32%125.00%
Total76100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.