@@ -17,6 +17,8 @@
*/
/* ------------------------------------ Host OS */
+#include <linux/list.h>
+#include <linux/spinlock.h>
#include <dspbridge/host_os.h>
/* ----------------------------------- DSP/BIOS Bridge */
@@ -102,6 +104,20 @@ struct proc_object {
struct bridge_drv_interface *intf_fxns; /* Function interface to WMD */
char *psz_last_coff;
struct list_head proc_list;
+
+ /* memory mapping information */
+ struct list_head maps;
+ spinlock_t maps_lock;
+};
+
+/* used to cache memory mapping information */
+struct memory_map_info {
+ struct list_head node;
+ struct page **pages;
+ u32 mpu_addr;
+ u32 dsp_addr;
+ u32 size;
+ u32 num_usr_pgs;
};
static u32 refs;