diff mbox

[RFC/PATCH,1/6] DSPBRIDGE: add memory_map_info to PROC

Message ID 1272746671-13423-2-git-send-email-ohad@wizery.com (mailing list archive)
State Not Applicable
Delegated to:
Headers show

Commit Message

Ohad Ben Cohen May 1, 2010, 8:44 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c
index 1f7dd09..95a194a 100644
--- a/drivers/dsp/bridge/rmgr/proc.c
+++ b/drivers/dsp/bridge/rmgr/proc.c
@@ -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;