[npubinfmt] Add the size of dsp memory to npubinfmt
authorDongju Chae <dongju.chae@samsung.com>
Tue, 10 Nov 2020 07:22:03 +0000 (16:22 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Wed, 11 Nov 2020 01:59:33 +0000 (10:59 +0900)
This patch adds the size of dsp memory to npubinfmt.h as extra
variable for DSP.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
include/common/npubinfmt.h

index 373fe08..3df3981 100644 (file)
@@ -221,6 +221,9 @@ typedef struct {
           data_type output_seg_quant_type[MAX_TENSORS];     /**< output quantization data type */
           int32_t output_seg_quant_z[MAX_TENSORS];          /**< output quantization parameter (zero-point) */
           float output_seg_quant_s[MAX_TENSORS];            /**< output quantization parameter (scale) */
+
+          /** DSP-specific variables */
+          uint32_t dspm_size;                               /**< The size of DSP memory */
         };
         /** If npubinfmt should be changed, append here as another version */
       };