2 * Copyright (c) 2005 MontaVista Software, Inc.
6 * Author: Steven Dake (sdake@mvista.com)
8 * This software licensed under BSD license, the text of which follows:
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are met:
13 * - Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
15 * - Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 * - Neither the name of the MontaVista Software, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from this
20 * software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
32 * THE POSSIBILITY OF SUCH DAMAGE.
34 #ifndef AIS_IPC_CFG_H_DEFINED
35 #define AIS_IPC_CFG_H_DEFINED
37 #include <netinet/in.h>
42 enum req_lib_cfg_types
{
43 MESSAGE_REQ_CFG_RINGSTATUSGET
= 0,
44 MESSAGE_REQ_CFG_RINGREENABLE
= 1,
45 MESSAGE_REQ_CFG_STATETRACKSTART
= 2,
46 MESSAGE_REQ_CFG_STATETRACKSTOP
= 3,
47 MESSAGE_REQ_CFG_ADMINISTRATIVESTATESET
= 4,
48 MESSAGE_REQ_CFG_ADMINISTRATIVESTATEGET
= 5,
49 MESSAGE_REQ_CFG_SERVICELOAD
= 6,
50 MESSAGE_REQ_CFG_SERVICEUNLOAD
= 7
53 enum res_lib_cfg_types
{
54 MESSAGE_RES_CFG_RINGSTATUSGET
= 0,
55 MESSAGE_RES_CFG_RINGREENABLE
= 1,
56 MESSAGE_RES_CFG_STATETRACKSTART
= 2,
57 MESSAGE_RES_CFG_STATETRACKSTOP
= 3,
58 MESSAGE_RES_CFG_ADMINISTRATIVESTATESET
= 4,
59 MESSAGE_RES_CFG_ADMINISTRATIVESTATEGET
= 5,
60 MESSAGE_RES_CFG_SERVICELOAD
= 6,
61 MESSAGE_RES_CFG_SERVICEUNLOAD
= 7
64 struct req_lib_cfg_statetrack
{
65 mar_req_header_t header
;
67 OpenaisCfgStateNotificationT
*notificationBufferAddress
;
70 struct res_lib_cfg_statetrack
{
71 mar_res_header_t header
;
74 struct req_lib_cfg_statetrackstop
{
75 mar_req_header_t header
;
78 struct res_lib_cfg_statetrackstop
{
79 mar_res_header_t header
;
82 struct req_lib_cfg_administrativestateset
{
83 mar_req_header_t header
;
85 OpenaisCfgAdministrativeTargetT administrativeTarget
;
86 OpenaisCfgAdministrativeStateT administrativeState
;
89 struct res_lib_cfg_administrativestateset
{
90 mar_res_header_t header
;
93 struct req_lib_cfg_administrativestateget
{
94 mar_req_header_t header
;
96 OpenaisCfgAdministrativeTargetT administrativeTarget
;
97 OpenaisCfgAdministrativeStateT administrativeState
;
100 struct res_lib_cfg_administrativestateget
{
101 mar_res_header_t header
__attribute__((aligned(8)));
104 struct req_lib_cfg_ringstatusget
{
105 mar_req_header_t header
__attribute__((aligned(8)));
108 struct res_lib_cfg_ringstatusget
{
109 mar_res_header_t header
__attribute__((aligned(8)));
110 mar_uint32_t interface_count
__attribute__((aligned(8)));
111 char interface_name
[16][128] __attribute__((aligned(8)));
112 char interface_status
[16][512] __attribute__((aligned(8)));
115 struct req_lib_cfg_ringreenable
{
116 mar_req_header_t header
__attribute__((aligned(8)));
119 struct res_lib_cfg_ringreenable
{
120 mar_res_header_t header
__attribute__((aligned(8)));
123 struct req_lib_cfg_serviceload
{
124 mar_res_header_t header
__attribute__((aligned(8)));
125 char *service_name
[256] __attribute__((aligned(8)));
126 unsigned int service_ver
;
129 struct res_lib_cfg_serviceload
{
130 mar_res_header_t header
__attribute__((aligned(8)));
133 struct req_lib_cfg_serviceunload
{
134 mar_res_header_t header
__attribute__((aligned(8)));
135 char *service_name
[256] __attribute__((aligned(8)));
136 unsigned int service_ver
;
139 struct res_lib_cfg_serviceunload
{
140 mar_res_header_t header
__attribute__((aligned(8)));
144 AIS_AMF_ADMINISTRATIVETARGET_SERVICEUNIT
= 0,
145 AIS_AMF_ADMINISTRATIVETARGET_SERVICEGROUP
= 1,
146 AIS_AMF_ADMINISTRATIVETARGET_COMPONENTSERVICEINSTANCE
= 2,
147 AIS_AMF_ADMINISTRATIVETARGET_NODE
= 3
148 } openaisAdministrativeTarget
;
151 AIS_AMF_ADMINISTRATIVESTATE_UNLOCKED
= 0,
152 AIS_AMF_ADMINISTRATIVESTATE_LOCKED
= 1,
153 AIS_AMF_ADMINISTRATIVESTATE_STOPPING
= 2
154 } openaisAdministrativeState
;
156 #endif /* AIS_IPC_CFG_H_DEFINED */