1#ifndef QDSP5LPMCMDI_H 2#define QDSP5LPMCMDI_H 3 4/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====* 5 6 L P M I N T E R N A L C O M M A N D S 7 8GENERAL DESCRIPTION 9 This file contains defintions of format blocks of commands 10 that are accepted by LPM Task 11 12REFERENCES 13 None 14 15EXTERNALIZED FUNCTIONS 16 None 17 18Copyright(c) 1992 - 2008 by QUALCOMM, Incorporated. 19 20This software is licensed under the terms of the GNU General Public 21License version 2, as published by the Free Software Foundation, and 22may be copied, distributed, and modified under those terms. 23 24This program is distributed in the hope that it will be useful, 25but WITHOUT ANY WARRANTY; without even the implied warranty of 26MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27GNU General Public License for more details. 28 29*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/ 30/*=========================================================================== 31 32 EDIT HISTORY FOR FILE 33 34This section contains comments describing changes made to this file. 35Notice that changes are listed in reverse chronological order. 36 37 38$Header: //source/qcom/qct/multimedia2/AdspSvc/7XXX/qdsp5cmd/video/qdsp5lpmcmdi.h#2 $ $DateTime: 2008/07/30 10:50:23 $ $Author: pavanr $ 39Revision History: 40 41when who what, where, why 42-------- --- ---------------------------------------------------------- 4306/12/08 sv initial version 44===========================================================================*/ 45 46 47/* 48 * Command to start LPM processing based on the config params 49 */ 50 51#define LPM_CMD_START 0x0000 52#define LPM_CMD_START_LEN sizeof(lpm_cmd_start) 53 54#define LPM_CMD_SPATIAL_FILTER_PART_OPMODE_0 0x00000000 55#define LPM_CMD_SPATIAL_FILTER_PART_OPMODE_1 0x00010000 56typedef struct { 57 unsigned int cmd_id; 58 unsigned int ip_data_cfg_part1; 59 unsigned int ip_data_cfg_part2; 60 unsigned int ip_data_cfg_part3; 61 unsigned int ip_data_cfg_part4; 62 unsigned int op_data_cfg_part1; 63 unsigned int op_data_cfg_part2; 64 unsigned int op_data_cfg_part3; 65 unsigned int spatial_filter_part[32]; 66} __attribute__((packed)) lpm_cmd_start; 67 68 69 70/* 71 * Command to stop LPM processing 72 */ 73 74#define LPM_CMD_IDLE 0x0001 75#define LPM_CMD_IDLE_LEN sizeof(lpm_cmd_idle) 76 77typedef struct { 78 unsigned int cmd_id; 79} __attribute__((packed)) lpm_cmd_idle; 80 81 82#endif 83