type.h File Reference

type.h File Reference#

mbltml: type.h File Reference
mbltml v1.4
mbltml — KR
type.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  mbltmlCoreId_t
 Composite identifier of an NPU core (cluster + core). More...
struct  mbltmlCoreInfo_t
 Per-core usage record returned by mbltmlGetCoreInfos(). More...
struct  mbltmlProcessInfo_t
 Per-process usage record returned by mbltmlGetProcessInfos(). More...

Typedefs

typedef struct mbltmlCoreId_t mbltmlCoreId_t
 Composite identifier of an NPU core (cluster + core).
typedef struct mbltmlProcessInfo_t mbltmlProcessInfo_t
 Per-process usage record returned by mbltmlGetProcessInfos().

Enumerations

enum  mbltmlDriverType_t {
  MBLTML_DRIVER_ERROR = 0x0 ,
  MBLTML_DRIVER_ARIES = 0x1 ,
  MBLTML_DRIVER_REGULUS = 0x2 ,
  MBLTML_DRIVER_REGULUS_USB = 0x4
}
 Identifier of a Mobilint NPU driver. More...
enum  mbltmlTargetDeviceType_t {
  MBLTML_TARGET_DEVICE_ARIES_RA = 0x00000001 ,
  MBLTML_TARGET_DEVICE_REGULUS_RA = 0x00000002 ,
  MBLTML_TARGET_DEVICE_ARIES_RB = 0x00000003 ,
  MBLTML_TARGET_DEVICE_REGULUS_RB = 0x00000004 ,
  MBLTML_TARGET_DEVICE_REGULUS_RA_USB = 0x00000005 ,
  MBLTML_TARGET_DEVICE_REGULUS_RB_USB = 0x00000006 ,
  MBLTML_TARGET_DEVICE_ERROR = 0x7FFFFFFF
}
 Specific target device type of a Mobilint NPU. More...
enum  mbltmlStatusCode_t {
  MBLTML_SUCCESS = 0 ,
  MBLTML_UNINITIALIZED = 1 ,
  MBLTML_DRIVER_NOT_FOUND = 2 ,
  MBLTML_INVALID_ARGUMENT = 3 ,
  MBLTML_NOT_SUPPORTED = 4 ,
  MBLTML_INSUFFICIENT_LENGTH = 5 ,
  MBLTML_DEVICE_NOT_FOUND = 6
}
 Status code returned by mbltml APIs. More...
enum  mbltmlExtraPmicId_t {
  MBLTML_EXTRA_PMIC_ID_NPU = 0 ,
  MBLTML_EXTRA_PMIC_ID_DDR = 1 ,
  MBLTML_EXTRA_PMIC_ID_PMIC = 2 ,
  MBLTML_EXTRA_PMIC_ID_GOLDFINGER = 3
}
 Identifier of an extra PMIC rail. More...
enum  mbltmlCluster_t {
  MBLTML_CLUSTER_0 = 1 << 16 ,
  MBLTML_CLUSTER_1 = 2 << 16 ,
  MBLTML_CLUSTER_ERROR = 0x7FFF0000
}
 NPU cluster identifier within a device. More...
enum  mbltmlCore_t {
  MBLTML_CORE_0 = 1 ,
  MBLTML_CORE_1 = 2 ,
  MBLTML_CORE_2 = 3 ,
  MBLTML_CORE_3 = 4 ,
  MBLTML_CORE_GLOBAL = 0x0000FFFE ,
  MBLTML_CORE_ERROR = 0x0000FFFF
}
 NPU core identifier within a cluster. More...