00001 /** ============================================================================ 00002 * @file dsplinkmsgq.h 00003 * 00004 * @path $(DSPLINK)/dsp/inc/ 00005 * 00006 * @brief Defines constants, data types and structures used by 00007 * MSGQ component in DSP/BIOS(TM) LINK. 00008 * 00009 * @ver 1.65.00.03 00010 * ============================================================================ 00011 * @copyright Copyright (C) 2002-2009, Texas Instruments Incorporated - 00012 * http://www.ti.com/ 00013 * 00014 * Redistribution and use in source and binary forms, with or without 00015 * modification, are permitted provided that the following conditions 00016 * are met: 00017 * 00018 * * Redistributions of source code must retain the above copyright 00019 * notice, this list of conditions and the following disclaimer. 00020 * 00021 * * Redistributions in binary form must reproduce the above copyright 00022 * notice, this list of conditions and the following disclaimer in the 00023 * documentation and/or other materials provided with the distribution. 00024 * 00025 * * Neither the name of Texas Instruments Incorporated nor the names of 00026 * its contributors may be used to endorse or promote products derived 00027 * from this software without specific prior written permission. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00030 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00031 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00032 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00033 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00034 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00035 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00036 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00037 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00038 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00039 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00040 * ============================================================================ 00041 */ 00042 00043 00044 #if !defined (DSPLINKMSGQ_) 00045 #define DSPLINKMSGQ_ 00046 00047 00048 /* ----------------------------------- DSP/BIOS Headers */ 00049 #if defined (MSGQ_COMPONENT) 00050 #include <msgq.h> 00051 #endif /* #if defined (MSGQ_COMPONENT) */ 00052 00053 00054 00055 #if defined (__cplusplus) 00056 extern "C" { 00057 #endif /* defined (__cplusplus) */ 00058 00059 00060 #if defined (MSGQ_COMPONENT) 00061 /** ============================================================================ 00062 * @name MSGQ 00063 * 00064 * @brief MSGQ variable defined by MSGQ module. This is temporary until 00065 * this definition is exported by DSP/BIOS configuration tool. 00066 * ============================================================================ 00067 */ 00068 extern MSGQ_Config * MSGQ ; 00069 00070 00071 /** ============================================================================ 00072 * @name MSGQ 00073 * 00074 * @brief This function initializes the transport betweeen GPP and DSP 00075 * dynamically after DSPLINK_init in a task. 00076 * 00077 * @param procID 00078 * ID of the processor with which the MQT transport is to be 00079 * opened. 00080 * @param transports 00081 * Transport to be shared with the processor. 00082 * 00083 * @return None. 00084 * 00085 * @pre None. 00086 * 00087 * @post None. 00088 * 00089 * @see None. 00090 * ============================================================================ 00091 */ 00092 Int 00093 MSGQ_transportOpen (IN Uint16 procId, 00094 IN MSGQ_TransportObj *transports) ; 00095 #endif /* if defined (MSGQ_COMPONENT) */ 00096 00097 00098 00099 #if defined (__cplusplus) 00100 } 00101 #endif /* defined (__cplusplus) */ 00102 00103 00104 #endif /* if !defined (DSPLINKMSGQ_) */