ResMgr: Add new API to request resource data
authorJuan Gutierrez <jgutierrez@ti.com>
Wed, 18 Jul 2012 16:09:48 +0000 (11:09 -0500)
committerSuman Anna <s-anna@ti.com>
Tue, 24 Jul 2012 19:37:01 +0000 (14:37 -0500)
commit7f4beb6ba5ece71cead0ebdd6002971ede021c5c
tree9adf2fbfe062aa32421b9ad169d22c3c33f5614e
parent3a0d98a4e947cd25e0eb173bc7ca96f5ba7d9082
ResMgr: Add new API to request resource data

A new API, IpcResource_requestData, is added to request data
associated with a particular resource.

This API currently supports to request data about the maximum
frequency on a processor device. The checking for the proper
device type is performed on the host-side.

The interface is as follows:
  typedef enum {
      IpcResource_ReqDataType_MAX_FREQ
  } IpcResource_ReqDataType;

  Int IpcResource_requestData(IpcResource_Handle handle,
                              IpcResource_ResHandle resHandle,
                              IpcResource_ReqDataType dataType,
                              Void *data);

User is supposed to pass in a structure large enough (based on
dataType) to get back the requested information.

Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
src/ti/resmgr/IpcResource.c
src/ti/resmgr/IpcResource.h
src/ti/resmgr/_IpcResource.h