Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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 | |
| 8 | GENERAL DESCRIPTION |
| 9 | This file contains defintions of format blocks of commands |
| 10 | that are accepted by LPM Task |
| 11 | |
| 12 | REFERENCES |
| 13 | None |
| 14 | |
| 15 | EXTERNALIZED FUNCTIONS |
| 16 | None |
| 17 | |
Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 18 | Copyright (c) 1992-2009, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 19 | |
| 20 | This software is licensed under the terms of the GNU General Public |
| 21 | License version 2, as published by the Free Software Foundation, and |
| 22 | may be copied, distributed, and modified under those terms. |
| 23 | |
| 24 | This program is distributed in the hope that it will be useful, |
| 25 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 | GNU General Public License for more details. |
| 28 | |
| 29 | *====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/ |
| 30 | /*=========================================================================== |
| 31 | |
| 32 | EDIT HISTORY FOR FILE |
| 33 | |
| 34 | This section contains comments describing changes made to this file. |
| 35 | Notice 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 $ |
| 39 | Revision History: |
| 40 | |
| 41 | when who what, where, why |
| 42 | -------- --- ---------------------------------------------------------- |
| 43 | 06/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 |
| 56 | typedef 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 | |
| 77 | typedef struct { |
| 78 | unsigned int cmd_id; |
| 79 | } __attribute__((packed)) lpm_cmd_idle; |
| 80 | |
| 81 | |
| 82 | #endif |