Data Structures | Defines | Enumerations | Functions
rm_services.h File Reference

This is the RM include file for services provided to components that register a RM instance. More...

#include <ti/drv/rm/rm.h>

Data Structures

struct  Rm_ServiceRespInfo
 RM service response information used by RM to provide service request results back to the application components. More...
struct  Rm_ServiceCallback
 RM service callback function. More...
struct  Rm_ServiceReqInfo
 RM service request information. More...
struct  Rm_ServiceHandle
 RM service handle provided to application components for requesting services. More...

Defines

#define RM_RESOURCE_NUM_OWNERS_INVALID   (-1)
#define RM_INST_ALLOC_COUNT_INVALID   (-1)
#define RM_RESOURCE_BASE_UNSPECIFIED   (-1)
#define RM_RESOURCE_ALIGNMENT_UNSPECIFIED   (-1)

Enumerations

enum  Rm_ServiceType {
  Rm_service_RESOURCE_ALLOCATE_INIT = 0, Rm_service_RESOURCE_ALLOCATE_USE, Rm_service_RESOURCE_FREE, Rm_service_RESOURCE_STATUS,
  Rm_service_RESOURCE_MAP_TO_NAME, Rm_service_RESOURCE_GET_BY_NAME, Rm_service_RESOURCE_UNMAP_NAME, Rm_service_LAST
}
 RM service types. More...

Functions

Rm_ServiceHandleRm_serviceOpenHandle (Rm_Handle rmHandle, int32_t *result)
int32_t Rm_serviceCloseHandle (Rm_ServiceHandle *rmServiceHandle)

Detailed Description

This is the RM include file for services provided to components that register a RM instance.

============================================================================
(C) Copyright 2012-2013, Texas Instruments, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Define Documentation

#define RM_INST_ALLOC_COUNT_INVALID   (-1)

instAllocCount is not valid unless >= 0

Informs RM to find the next available resource block with length resourceLength and the alignment specified in a) The resource node in the policy if it has the "allocation-alignment" property defined. b) The default alignment of 1 if no alignment is specified in the policy for the resource. This value is only valid if resourceBase is set to RM_RESOURCE_BASE_UNSPECIFIED

#define RM_RESOURCE_BASE_UNSPECIFIED   (-1)

Informs RM to find the next available resource block of length resourceLength and alignment resourceAlignment for allocation. This parameter is only valid for resource allocate service types.

#define RM_RESOURCE_NUM_OWNERS_INVALID   (-1)

resourceNumOwners is not valid unless >= 0


Copyright 2014, Texas Instruments Incorporated