xref: /titanic_41/usr/src/uts/common/sys/lvm/meta_arr.x (revision eb0cc229f19c437a6b538d3ac0d0443268290b7e)
1 %/*
2 % * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3 % * Use is subject to license terms.
4 % *
5 % * CDDL HEADER START
6 % *
7 % * The contents of this file are subject to the terms of the
8 % * Common Development and Distribution License, Version 1.0 only
9 % * (the "License").  You may not use this file except in compliance
10 % * with the License.
11 % *
12 % * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 % * or http://www.opensolaris.org/os/licensing.
14 % * See the License for the specific language governing permissions
15 % * and limitations under the License.
16 % *
17 % * When distributing Covered Code, include this CDDL HEADER in each
18 % * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 % * If applicable, add the following below this CDDL HEADER, with the
20 % * fields enclosed by brackets "[]" replaced with your own identifying
21 % * information: Portions Copyright [yyyy] [name of copyright owner]
22 % *
23 % * CDDL HEADER END
24 % */
25 %
26 %#pragma ident	"%Z%%M%	%I%	%E% SMI"
27 %
28 %/*
29 % * This file has the shared fixed array RPC definitions for use in a couple
30 % * places.
31 % */
32 %
33 
34 %
35 %/*
36 % * Node Name type
37 % */
38 typedef	char			md_node_nm_t[MD_MAX_NODENAME_PLUS_1];
39 typedef	char			md_mnnode_nm_t[MD_MAX_MNNODENAME_PLUS_1];
40 
41 %
42 %/*
43 % * Set Name Type
44 % */
45 typedef	char			md_set_nm_t[MD_MAX_SETNAME_PLUS_1];
46 
47 %
48 %/*
49 % * Mediator Basic Data Types
50 % */
51 typedef	md_node_nm_t		md_alias_nm_t[MAX_HOST_ADDRS];
52 typedef	u_int			md_alias_ip_t[MAX_HOST_ADDRS];
53 
54 #ifdef	RPC_HDR
55 %
56 %/*
57 % * Values for the a_flg structure member of md_alias_nm_ip_t structure
58 % */
59 %#define	NMIP_F_LOCAL	0x0001
60 %
61 #endif	/* RPC_HDR */
62 
63 struct	md_hi_t {
64 	u_int			a_flg;
65 	int			a_cnt;
66 	md_alias_nm_t		a_nm;
67 	md_alias_ip_t		a_ip;
68 };
69 
70 struct	md_hi_arr_t {
71 	int			n_cnt;
72 	md_hi_t			n_lst[MED_MAX_HOSTS];
73 };
74 
75 struct	md_h_t {
76 	int			a_cnt;
77 	md_alias_nm_t		a_nm;
78 };
79 
80 struct	md_h_arr_t {
81 	int			n_cnt;
82 	md_h_t			n_lst[MED_MAX_HOSTS];
83 };
84 
85 %
86 %/*
87 % * Node Name type
88 % */
89 typedef	md_node_nm_t		md_node_nm_arr_t[MD_MAXSIDES];
90 %
91 #if 0
92 %
93 %/*
94 % * Node Name type with added aliases
95 % */
96 struct	md_node_nm_arr_t {
97 	int			n_cnt;
98 	md_h_t			n_lst[MD_MAXSIDES];
99 };
100 #endif	/* 0 */
101