Program Listing for File QnnAipDevice.h

Return to documentation for file (include/QNN/AIP/QnnAipDevice.h)

//=============================================================================
//
//  Copyright (c) 2023 Qualcomm Technologies, Inc.
//  All Rights Reserved.
//  Confidential and Proprietary - Qualcomm Technologies, Inc.
//
//=============================================================================

/** @file
 *  @brief QNN AIP component Device API.
 *
 *         The interfaces in this file work with the top level QNN
 *         API and supplements QnnDevice.h for DSP backend
 */
#ifndef QNN_AIP_DEVICE_H
#define QNN_AIP_DEVICE_H

#include "QnnDevice.h"
#include "QnnAipPerfInfrastructure.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _QnnDevice_Infrastructure_t {
  QnnAipPerfInfrastructure_CreatePowerConfigIdFn_t createPowerConfigId;
  QnnAipPerfInfrastructure_DestroyPowerConfigIdFn_t destroyPowerConfigId;
  QnnAipPerfInfrastructure_SetPowerConfigFn_t setPowerConfig;
  QnnAipPerfInfrastructure_SetMemoryConfigFn_t setMemoryConfig;
  QnnAipPerfInfrastructure_SetThreadConfigFn_t setThreadConfig;
} QnnAipDevice_Infrastructure_t;

#define QNN_AIP_DEVICE_INFRASTRUCTURE_INIT \
  {                                        \
    NULL,     /*createPowerConfigId*/      \
        NULL, /*destroyPowerConfigId*/     \
        NULL, /*setPowerConfig*/           \
        NULL, /*setMemoryConfig*/          \
        NULL  /*setThreadConfig*/          \
  }

#ifdef __cplusplus
}
#endif

#endif