xref: /titanic_50/usr/src/cmd/luxadm/luxadm.h (revision 694c35faa87b858ecdadfe4fc592615f4eefbb07)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 /*
27  * luxadm.h
28  *
29  * External functions and global variables needed for PHOTON
30  */
31 
32 /*
33  * I18N message number ranges
34  *  This file: 13500 - 13999
35  *  Shared common messages: 1 - 1999
36  */
37 
38 #ifndef	_LUXADM_H
39 #define	_LUXADM_H
40 
41 
42 
43 #ifdef	__cplusplus
44 extern "C" {
45 #endif
46 
47 
48 /* External functions */
49 extern int	fc_update(unsigned, unsigned, char *);
50 extern int	fcal_update(unsigned, char *);
51 extern int	q_qlgc_update(unsigned, char *);
52 extern int	emulex_update(char *);
53 extern int	emulex_fcode_reader(int, char *, char *, uint32_t);
54 extern int	setboot(unsigned, unsigned, char *);
55 extern int	sysdump(int);
56 extern int	h_insertSena_fcdev();
57 extern int	hotplug(int, char **, int, int);
58 extern int	hotplug_e(int, char **, int, int);
59 extern void	print_fabric_dtype_prop(uchar_t *, uchar_t *, uchar_t);
60 /* SSA and RSM */
61 extern int	p_download(char *, char *, int, int, uchar_t *);
62 extern void	ssa_fast_write(char *);
63 extern void	ssa_perf_statistics(char *);
64 extern void	ssa_cli_start(char **, int);
65 extern void	ssa_cli_stop(char **, int);
66 extern void	ssa_cli_display_config(char **argv, char *, int, int, int);
67 extern void	cli_display_envsen_data(char **, int);
68 extern int	p_sync_cache(char *);
69 extern int	p_purge(char *);
70 extern void	led(char **, int, int);
71 extern void	alarm_enable(char **, int, int);
72 extern void	alarm_set(char **, int);
73 extern void	power_off(char **, int);
74 extern char 	*get_physical_name(char *);
75 
76 /* SSA LIB environment sense */
77 extern int	scsi_get_envsen_data(int, char *, int);
78 extern int	scsi_put_envsen_data(int, char *, int);
79 
80 /* hotplug */
81 extern void	print_errString(int, char *);
82 extern int	print_devState(char *, char *, int, int, int);
83 extern void	print_dev_state(char *, int);
84 extern void	print_bus_state(char *, int);
85 extern int	dev_handle_insert(char *, int);
86 extern int	dev_handle_remove(char *, int);
87 extern int	dev_handle_replace(char *, int);
88 
89 /* funct.c */
90 extern char	ctoi(char);
91 
92 
93 /* Functions for FC-HBA based operations */
94 extern int fchba_display_port(int verbose);
95 extern int fchba_non_encl_probe();
96 extern int fchba_inquiry(char **argv);
97 extern int fchba_dump_map(char **argv);
98 extern int use_fchba();
99 extern int fchba_display_link_status(char **);
100 extern int fchba_display_config(char **, int, int);
101 extern int fchba_hotplug_e(int, char **, int, int);
102 
103 /* for g_adm.c & hotplug.c */
104 int print_devState(char *, char *, int, int, int);
105 
106 #ifdef	__cplusplus
107 }
108 #endif
109 
110 #endif	/* _LUXADM_H */
111