1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * mach/sram.h - DaVinci simple SRAM allocator 4 * 5 * Copyright (C) 2009 David Brownell 6 */ 7 #ifndef __MACH_SRAM_H 8 #define __MACH_SRAM_H 9 10 /* ARBITRARY: SRAM allocations are multiples 11 #define SRAM_GRANULARITY 512 12 13 /* 14 * SRAM allocations return a CPU virtual addre 15 * If a DMA address is requested and the SRAM 16 * mapped address is also returned. 17 * 18 * Errors include SRAM memory not being availa 19 * DMA mapped SRAM on systems which don't allo 20 */ 21 extern void *sram_alloc(size_t len, dma_addr_t 22 extern void sram_free(void *addr, size_t len); 23 24 /* Get the struct gen_pool * for use in platfo 25 extern struct gen_pool *sram_get_gen_pool(void 26 27 #endif /* __MACH_SRAM_H */ 28
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.