summaryrefslogtreecommitdiffstats
path: root/src/include/sys
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-09-10 16:05:01 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-10-09 17:10:32 -0500
commit1bf8c6b8376efacd03e3ec62d5ded5b2be4bff39 (patch)
treec266815232142e67f15a61ffcbdf09407737f259 /src/include/sys
parentfb1836fd7b1b8839815595db08ae740ec7b86347 (diff)
downloadtalos-hostboot-1bf8c6b8376efacd03e3ec62d5ded5b2be4bff39.tar.gz
talos-hostboot-1bf8c6b8376efacd03e3ec62d5ded5b2be4bff39.zip
Extend VMM to 32M
Add mmLinearMap to create block at a specified phys addr. Added iv_MaptoPhy in the block to indicate we are physically mapped block and to not apply the HRMOR. Change-Id: I75ddb19b82ae9a2035ff873edff8a34a33c74639 RTC:43401 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1846 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys')
-rw-r--r--src/include/sys/mm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/sys/mm.h b/src/include/sys/mm.h
index 82e32bf46..34a60fc20 100644
--- a/src/include/sys/mm.h
+++ b/src/include/sys/mm.h
@@ -96,6 +96,23 @@ int mm_remove_pages(PAGE_REMOVAL_OPS i_op, void* i_vaddr, uint64_t i_size);
*/
int mm_set_permission(void* va, uint64_t size, uint64_t access_type);
+/** @fn mm_extend()
+ * @brief System call to extend Memory to 32MEG
+ *
+ * @return int - 0 for successful extension of memory, non-zero otherwise
+ */
+int mm_extend(void);
+
+/** @fn mm_linear_map()
+ * @brief Allocates a block of memory of the given size at a specified
+ * address (direct physical to virtual mapping)
+ * @param[in] i_paddr - physical address of the location for the block
+ * @param[in] size - size of the block requested
+ *
+ * @return int - 0 for successful add, non-zero otherwise
+ */
+int mm_linear_map(void *i_paddr, uint64_t i_size);
+
#ifdef __cplusplus
}
#endif
OpenPOWER on IntegriCloud