cregit-Linux how code gets into the kernel

Release 4.11 arch/avr32/mach-at32ap/include/mach/sram.h

/*
 * Simple SRAM allocator
 *
 * Copyright (C) 2008 Atmel Corporation
 *
 * 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 __ASM_AVR32_ARCH_SRAM_H

#define __ASM_AVR32_ARCH_SRAM_H

#include <linux/genalloc.h>

extern struct gen_pool *sram_pool;


static inline unsigned long sram_alloc(size_t len) { if (!sram_pool) return 0UL; return gen_pool_alloc(sram_pool, len); }

Contributors

PersonTokensPropCommitsCommitProp
Håvard Skinnemoen27100.00%1100.00%
Total27100.00%1100.00%


static inline void sram_free(unsigned long addr, size_t len) { return gen_pool_free(sram_pool, addr, len); }

Contributors

PersonTokensPropCommitsCommitProp
Håvard Skinnemoen24100.00%1100.00%
Total24100.00%1100.00%

#endif /* __ASM_AVR32_ARCH_SRAM_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Håvard Skinnemoen70100.00%1100.00%
Total70100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.