![Haavard Skinnemoen](/assets/img/avatar_default.png)
Add arch/avr32/mach-*/include to include search path and copy all the files from include/asm/arch there. The old files will be removed once ARM does the same change and all common drivers are converted. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
31 lines
671 B
C
31 lines
671 B
C
/*
|
|
* 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);
|
|
}
|
|
|
|
static inline void sram_free(unsigned long addr, size_t len)
|
|
{
|
|
return gen_pool_free(sram_pool, addr, len);
|
|
}
|
|
|
|
#endif /* __ASM_AVR32_ARCH_SRAM_H */
|