Wrote tree allocate and free operations
[keystone-rtos/rm-lld.git] / include / rm_loc.h
index 18717972c76af0f180fcaef4c60691ca239fc741..061a9ba95d3af848ff4bbe549be8f46f2224eef7 100644 (file)
@@ -92,8 +92,8 @@ typedef struct {
     /** If applicable, start of resource range affected by command.  If
      *  RM_RESOURCE_UNSPECIFIED is assigned the higher level RM agent*/
     int32_t base;
-    /** If applicable, range of specified resource, starting from base, affected by command */
-    uint32_t range;
+    /** If applicable, number of specified resource, starting from base, affected by command */
+    uint32_t length;
     /** If applicable, the alignment of the resource affected by the command */
     int32_t alignment;
     /** If applicable, the NameServer name assigned to the specified
@@ -218,7 +218,8 @@ typedef struct _Rm_ResourceTreeNode {
 typedef RB_HEAD(_Rm_ResourceTree, _Rm_ResourceTreeNode) Rm_ResourceTree;
 
 /* Prototype for function that allocates new tree nodes */
-Rm_ResourceTreeNode *Rm_newResourceTreeNode(uint32_t resourceBase, uint32_t resourceLength);
+Rm_ResourceTreeNode *Rm_newResourceTreeNode(uint32_t resourceBase, uint32_t resourceLength, 
+                                            char *allocatedTo);
 /* Prototype for function that frees new tree nodes */
 void Rm_freeResourceTreeNode(Rm_ResourceTreeNode *treeNode);
 /* Prototype for tree node comparison function