blob: fae83b137337287f675a2ad94c629ec05968410b [file] [log] [blame]
Scott Wood15f8c602007-09-28 14:06:16 -05001#ifndef __CPM_H
2#define __CPM_H
3
4#include <linux/compiler.h>
5#include <linux/types.h>
6
7int cpm_muram_init(void);
8unsigned long cpm_muram_alloc(unsigned long size, unsigned long align);
9int cpm_muram_free(unsigned long offset);
10unsigned long cpm_muram_alloc_fixed(unsigned long offset, unsigned long size);
11void __iomem *cpm_muram_addr(unsigned long offset);
12dma_addr_t cpm_muram_dma(void __iomem *addr);
Jochen Friedrich362f9b62007-11-26 18:03:40 +010013int cpm_command(u32 command, u8 opcode);
Scott Wood15f8c602007-09-28 14:06:16 -050014
15#endif