1 /******************************************************************************
3 © 1995-2003, 2004, 2005-2011 Freescale Semiconductor, Inc.
6 This is proprietary source code of Freescale Semiconductor Inc.,
7 and its use is subject to the NetComm Device Drivers EULA.
8 The copyright notice above does not evidence any actual or intended
9 publication of such source code.
11 ALTERNATIVELY, redistribution and use in source and binary forms, with
12 or without modification, are permitted provided that the following
14 * Redistributions of source code must retain the above copyright
15 notice, this list of conditions and the following disclaimer.
16 * Redistributions in binary form must reproduce the above copyright
17 notice, this list of conditions and the following disclaimer in the
18 documentation and/or other materials provided with the distribution.
19 * Neither the name of Freescale Semiconductor nor the
20 names of its contributors may be used to endorse or promote products
21 derived from this software without specific prior written permission.
23 THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 **************************************************************************/
36 /**************************************************************************//**
39 @Description BM Inter-Partition prototypes, structures and definitions.
40 *//***************************************************************************/
44 #include "error_ext.h"
48 /**************************************************************************//**
49 @Group BM_grp Frame Manager API
51 @Description BM API functions, definitions and enums
54 *//***************************************************************************/
56 /**************************************************************************//**
57 @Group BM_IPC_grp BM Inter-Partition messaging Unit
59 @Description BM Inter-Partition messaging unit API definitions and enums.
62 *//***************************************************************************/
64 #define BM_SET_POOL_THRESH 1
65 #define BM_UNSET_POOL_THRESH 2
66 #define BM_GET_COUNTER 3
67 #define BM_GET_REVISION 4
68 #define BM_FORCE_BPID 5
70 #define BM_MASTER_IS_ALIVE 7
72 #define BM_IPC_MAX_REPLY_BODY_SIZE 16
73 #define BM_IPC_MAX_REPLY_SIZE (BM_IPC_MAX_REPLY_BODY_SIZE + sizeof(uint32_t))
74 #define BM_IPC_MAX_MSG_SIZE 30
77 #if defined(__MWERKS__) && !defined(__GNUC__)
79 #endif /* defined(__MWERKS__) && ... */
82 typedef _Packed struct t_BmIpcMsg
85 uint8_t msgBody[BM_IPC_MAX_MSG_SIZE];
86 } _PackedType t_BmIpcMsg;
88 typedef _Packed struct t_BmIpcReply
91 uint8_t replyBody[BM_IPC_MAX_REPLY_BODY_SIZE];
92 } _PackedType t_BmIpcReply;
94 typedef _Packed struct t_BmIpcPoolThreshParams
96 uint8_t bpid; /**< IN */
97 uint32_t thresholds[MAX_DEPLETION_THRESHOLDS]; /**< IN */
98 } _PackedType t_BmIpcPoolThreshParams;
100 typedef _Packed struct t_BmIpcGetCounter
102 uint8_t bpid; /**< IN */
103 uint32_t enumId; /**< IN */
104 } _PackedType t_BmIpcGetCounter;
106 typedef _Packed struct t_BmIpcBpidParams
108 uint8_t bpid; /**< IN */
109 } _PackedType t_BmIpcBpidParams;
111 typedef _Packed struct t_BmIpcRevisionInfo {
112 uint8_t majorRev; /**< Major revision */
113 uint8_t minorRev; /**< Minor revision */
114 } _PackedType t_BmIpcRevisionInfo;
117 #if defined(__MWERKS__) && !defined(__GNUC__)
119 #endif /* defined(__MWERKS__) && ... */
121 /** @} */ /* end of BM_IPC_grp group */
122 /** @} */ /* end of BM_grp group */
125 #endif /* __BM_IPC_H */