/*****************************************************************************12AudioScience HPI driver3Copyright (C) 1997-2010 AudioScience Inc. <[email protected]>45This program is free software; you can redistribute it and/or modify6it under the terms of version 2 of the GNU General Public License as7published by the Free Software Foundation;89This program is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with this program; if not, write to the Free Software16Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1718Public declarations for DSP Proramming Interface to TI C67011920Shared between hpi6000.c and DSP code2122(C) Copyright AudioScience Inc. 1998-200323******************************************************************************/2425#ifndef _HPI6000_H_26#define _HPI6000_H_2728#define HPI_NMIXER_CONTROLS 2002930/*31* Control caching is always supported in the HPI code.32* The DSP should make sure that dwControlCacheSizeInBytes is initialized to 033* during boot to make it in-active.34*/35struct hpi_hif_6000 {36u32 host_cmd;37u32 dsp_ack;38u32 address;39u32 length;40u32 message_buffer_address;41u32 response_buffer_address;42u32 dsp_number;43u32 adapter_info;44u32 control_cache_is_dirty;45u32 control_cache_address;46u32 control_cache_size_in_bytes;47u32 control_cache_count;48};4950#define HPI_HIF_PACK_ADAPTER_INFO(adapter, version_major, version_minor) \51((adapter << 16) | (version_major << 8) | version_minor)52#define HPI_HIF_ADAPTER_INFO_EXTRACT_ADAPTER(adapterinfo) \53((adapterinfo >> 16) & 0xffff)54#define HPI_HIF_ADAPTER_INFO_EXTRACT_HWVERSION_MAJOR(adapterinfo) \55((adapterinfo >> 8) & 0xff)56#define HPI_HIF_ADAPTER_INFO_EXTRACT_HWVERSION_MINOR(adapterinfo) \57(adapterinfo & 0xff)5859/* Command/status exchanged between host and DSP */60#define HPI_HIF_IDLE 061#define HPI_HIF_SEND_MSG 162#define HPI_HIF_GET_RESP 263#define HPI_HIF_DATA_MASK 0x1064#define HPI_HIF_SEND_DATA 0x1365#define HPI_HIF_GET_DATA 0x1466#define HPI_HIF_SEND_DONE 567#define HPI_HIF_RESET 96869#endif /* _HPI6000_H_ */707172