Path: blob/main/sys/contrib/ncsw/Peripherals/BM/bm_ipc.h
48378 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 bm_ipc.h3738@Description BM Inter-Partition prototypes, structures and definitions.39*//***************************************************************************/40#ifndef __BM_IPC_H41#define __BM_IPC_H4243#include "error_ext.h"44#include "std_ext.h"454647/**************************************************************************//**48@Group BM_grp Frame Manager API4950@Description BM API functions, definitions and enums5152@{53*//***************************************************************************/5455/**************************************************************************//**56@Group BM_IPC_grp BM Inter-Partition messaging Unit5758@Description BM Inter-Partition messaging unit API definitions and enums.5960@{61*//***************************************************************************/6263#define BM_SET_POOL_THRESH 164#define BM_UNSET_POOL_THRESH 265#define BM_GET_COUNTER 366#define BM_GET_REVISION 467#define BM_FORCE_BPID 568#define BM_PUT_BPID 669#define BM_MASTER_IS_ALIVE 77071#define BM_IPC_MAX_REPLY_BODY_SIZE 1672#define BM_IPC_MAX_REPLY_SIZE (BM_IPC_MAX_REPLY_BODY_SIZE + sizeof(uint32_t))73#define BM_IPC_MAX_MSG_SIZE 30747576#if defined(__MWERKS__) && !defined(__GNUC__)77#pragma pack(push,1)78#endif /* defined(__MWERKS__) && ... */79#define MEM_MAP_START8081typedef _Packed struct t_BmIpcMsg82{83uint32_t msgId;84uint8_t msgBody[BM_IPC_MAX_MSG_SIZE];85} _PackedType t_BmIpcMsg;8687typedef _Packed struct t_BmIpcReply88{89uint32_t error;90uint8_t replyBody[BM_IPC_MAX_REPLY_BODY_SIZE];91} _PackedType t_BmIpcReply;9293typedef _Packed struct t_BmIpcPoolThreshParams94{95uint8_t bpid; /**< IN */96uint32_t thresholds[MAX_DEPLETION_THRESHOLDS]; /**< IN */97} _PackedType t_BmIpcPoolThreshParams;9899typedef _Packed struct t_BmIpcGetCounter100{101uint8_t bpid; /**< IN */102uint32_t enumId; /**< IN */103} _PackedType t_BmIpcGetCounter;104105typedef _Packed struct t_BmIpcBpidParams106{107uint8_t bpid; /**< IN */108} _PackedType t_BmIpcBpidParams;109110typedef _Packed struct t_BmIpcRevisionInfo {111uint8_t majorRev; /**< Major revision */112uint8_t minorRev; /**< Minor revision */113} _PackedType t_BmIpcRevisionInfo;114115#define MEM_MAP_END116#if defined(__MWERKS__) && !defined(__GNUC__)117#pragma pack(pop)118#endif /* defined(__MWERKS__) && ... */119120/** @} */ /* end of BM_IPC_grp group */121/** @} */ /* end of BM_grp group */122123124#endif /* __BM_IPC_H */125126127