4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * The Dynamic Memory Mapping(DMM) module manages the DSP Virtual address
7 * space that can be directly mapped to any MPU buffer or memory region.
9 * Copyright (C) 2005-2006 Texas Instruments, Inc.
11 * This package is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23 #include <dspbridge/dbdefs.h>
27 /* DMM attributes used in dmm_create() */
32 #define DMMPOOLSIZE 0x4000000
35 * ======== dmm_get_handle ========
37 * Return the dynamic memory manager object for this device.
38 * This is typically called from the client process.
41 extern int dmm_get_handle(void *hprocessor
,
42 struct dmm_object
**dmm_manager
);
44 extern int dmm_reserve_memory(struct dmm_object
*dmm_mgr
,
45 u32 size
, u32
*prsv_addr
);
47 extern int dmm_un_reserve_memory(struct dmm_object
*dmm_mgr
,
50 extern int dmm_map_memory(struct dmm_object
*dmm_mgr
, u32 addr
,
53 extern int dmm_un_map_memory(struct dmm_object
*dmm_mgr
,
54 u32 addr
, u32
*psize
);
56 extern int dmm_destroy(struct dmm_object
*dmm_mgr
);
58 extern int dmm_delete_tables(struct dmm_object
*dmm_mgr
);
60 extern int dmm_create(struct dmm_object
**dmm_manager
,
61 struct dev_object
*hdev_obj
,
62 const struct dmm_mgrattrs
*mgr_attrts
);
64 extern bool dmm_init(void);
66 extern void dmm_exit(void);
68 extern int dmm_create_tables(struct dmm_object
*dmm_mgr
,
72 u32
dmm_mem_map_dump(struct dmm_object
*dmm_mgr
);