Path: blob/main/sys/contrib/ncsw/Peripherals/QM/qm_ipc.h
48375 views
/******************************************************************************12� 1995-2003, 2004, 2005-2011 Freescale Semiconductor, Inc.3All rights reserved.45This is proprietary source code of Freescale Semiconductor Inc.,6and its use is subject to the NetComm Device Drivers EULA.7The copyright notice above does not evidence any actual or intended8publication of such source code.910ALTERNATIVELY, redistribution and use in source and binary forms, with11or without modification, are permitted provided that the following12conditions are met:13* Redistributions of source code must retain the above copyright14notice, this list of conditions and the following disclaimer.15* Redistributions in binary form must reproduce the above copyright16notice, this list of conditions and the following disclaimer in the17documentation and/or other materials provided with the distribution.18* Neither the name of Freescale Semiconductor nor the19names of its contributors may be used to endorse or promote products20derived from this software without specific prior written permission.2122THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY23EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED24WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE25DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY26DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES27(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;28LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND29ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT30(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS31SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32*3334**************************************************************************/35/**************************************************************************//**36@File QM_ipc.h3738@Description QM Inter-Partition prototypes, structures and definitions.39*//***************************************************************************/40#ifndef __QM_IPC_H41#define __QM_IPC_H4243#include "error_ext.h"44#include "std_ext.h"454647/**************************************************************************//**48@Group QM_grp Frame Manager API4950@Description QM API functions, definitions and enums5152@{53*//***************************************************************************/5455/**************************************************************************//**56@Group QM_IPC_grp Qm Inter-Partition messaging Unit5758@Description QM Inter-Partition messaging unit API definitions and enums.5960@{61*//***************************************************************************/6263#define QM_FORCE_FQID 164#define QM_PUT_FQID 265#define QM_GET_COUNTER 366#define QM_GET_SET_PORTAL_PARAMS 467#define QM_GET_REVISION 568#define QM_MASTER_IS_ALIVE 66970#define QM_IPC_MAX_REPLY_BODY_SIZE 1671#define QM_IPC_MAX_REPLY_SIZE (QM_IPC_MAX_REPLY_BODY_SIZE + sizeof(uint32_t))72#define QM_IPC_MAX_MSG_SIZE 307374#if defined(__MWERKS__) && !defined(__GNUC__)75#pragma pack(push,1)76#endif /* defined(__MWERKS__) && ... */77#define MEM_MAP_START7879typedef _Packed struct t_QmIpcMsg80{81uint32_t msgId;82uint8_t msgBody[QM_IPC_MAX_MSG_SIZE];83} _PackedType t_QmIpcMsg;8485typedef _Packed struct t_QmIpcReply86{87uint32_t error;88uint8_t replyBody[QM_IPC_MAX_REPLY_BODY_SIZE];89} _PackedType t_QmIpcReply;9091typedef _Packed struct t_QmIpcGetCounter92{93uint32_t enumId; /**< IN */94} _PackedType t_QmIpcGetCounter;9596typedef _Packed struct t_QmIpcFqidParams97{98uint32_t fqid; /**< IN */99uint32_t size; /**< IN */100} _PackedType t_QmIpcFqidParams;101102typedef _Packed struct t_QmIpcPortalInitParams {103uint8_t portalId; /**< IN */104uint8_t stashDestQueue; /**< IN */105uint16_t liodn; /**< IN */106uint16_t dqrrLiodn; /**< IN */107uint16_t fdFqLiodn; /**< IN */108} _PackedType t_QmIpcPortalInitParams;109110typedef _Packed struct t_QmIpcRevisionInfo {111uint8_t majorRev; /**< OUT: Major revision */112uint8_t minorRev; /**< OUT: Minor revision */113} _PackedType t_QmIpcRevisionInfo;114115#define MEM_MAP_END116#if defined(__MWERKS__) && !defined(__GNUC__)117#pragma pack(pop)118#endif /* defined(__MWERKS__) && ... */119120/** @} */ /* end of QM_IPC_grp group */121/** @} */ /* end of QM_grp group */122123124#endif /* __QM_IPC_H */125126127