]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blobdiff - rm_services.h
Wrote tree allocate and free operations
[keystone-rtos/rm-lld.git] / rm_services.h
index f9914adbeaad9206c4f98fbf5f9ae2f1eaaefca5..194969189764e56fe7174697263eb4b678872ff2 100644 (file)
@@ -73,7 +73,7 @@ extern "C" {
 #define RM_SERVICE_DENIED_RESOURCE_DOES_NOT_EXIST (RM_SERVICE_DENIED_BEGIN)
 /** A resource value within the specifed base+range could not be found within the resource's
  *  allocator.  No action was taken on the resources. */
-#define RM_SERVICE_DENIED_RESOURCE_VALUE_IN_RANGE_DOES_NOT_EXIST (RM_SERVICE_DENIED_BEGIN+1)
+#define RM_SERVICE_DENIED_RESOURCE_VALUE_RANGE_DOES_NOT_EXIST (RM_SERVICE_DENIED_BEGIN+1)
 /** A resource value within the specifed base+range was not allocated to the RM instance
  *  that is the source of the request.  No action was taken on the resources. */
 #define RM_SERVICE_DENIED_RESOURCE_NOT_ALLOCATED_TO_INSTANCE_REQUESTING_THE_SERVICE (RM_SERVICE_DENIED_BEGIN+2)
@@ -189,8 +189,8 @@ typedef struct {
     /** The base value of the returned resource.  In the case of a block resource allocation 
      *  response this field will contain the base value of the block. */
     int32_t resourceBase;
-    /** The range of resources starting from resourceBase allocated in block requests */
-    uint32_t resourceRange;
+    /** The number of resources starting from resourceBase allocated in block requests */
+    uint32_t resourceLength;
 } Rm_ServiceRespInfo;
 
 /** 
@@ -219,10 +219,10 @@ typedef struct {
 #define RM_RESOURCE_BASE_UNSPECIFIED (-1)  
     /** The resource base value. */
     int32_t resourceBase;
-    /** The range of the specified resource to be allocated starting from 
+    /** The number of the specified resource to be allocated starting from 
      *  resourceBase.  Will be greater than one only for block allocate
      *  and free service requests. */
-    uint32_t resourceRange;
+    uint32_t resourceLength;
 /** An allocate service can be requested with an unspecified resource alignment.
  *  WARNING: Only applicapable if resourceBase is unspecified
  *