luxadm.h revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
970N/A/*
970N/A * CDDL HEADER START
1097N/A *
970N/A * The contents of this file are subject to the terms of the
970N/A * Common Development and Distribution License (the "License").
970N/A * You may not use this file except in compliance with the License.
970N/A *
970N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970N/A * or http://www.opensolaris.org/os/licensing.
970N/A * See the License for the specific language governing permissions
970N/A * and limitations under the License.
970N/A *
970N/A * When distributing Covered Code, include this CDDL HEADER in each
970N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
970N/A * If applicable, add the following below this CDDL HEADER, with the
970N/A * fields enclosed by brackets "[]" replaced with your own identifying
970N/A * information: Portions Copyright [yyyy] [name of copyright owner]
970N/A *
970N/A * CDDL HEADER END
970N/A */
970N/A/*
970N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
970N/A * Use is subject to license terms.
970N/A */
970N/A
970N/A/*
970N/A * luxadm.h
1097N/A *
970N/A * External functions and global variables needed for PHOTON
970N/A */
970N/A
970N/A/*
970N/A * I18N message number ranges
970N/A * This file: 13500 - 13999
970N/A * Shared common messages: 1 - 1999
970N/A */
970N/A
970N/A#ifndef _LUXADM_H
970N/A#define _LUXADM_H
970N/A
970N/A
970N/A
970N/A#ifdef __cplusplus
970N/Aextern "C" {
970N/A#endif
970N/A
970N/A
970N/A/* External functions */
970N/Aextern int fc_update(unsigned, unsigned, char *);
970N/Aextern int fcal_update(unsigned, char *);
970N/Aextern int q_qlgc_update(unsigned, char *);
970N/Aextern int emulex_update(char *);
970N/Aextern int emulex_fcode_reader(int, char *, char *, uint32_t);
970N/Aextern int setboot(unsigned, unsigned, char *);
970N/Aextern int sysdump(int);
970N/Aextern int h_insertSena_fcdev();
970N/Aextern int hotplug(int, char **, int, int);
970N/Aextern int hotplug_e(int, char **, int, int);
970N/Aextern void print_fabric_dtype_prop(uchar_t *, uchar_t *, uchar_t);
970N/A/* SSA and RSM */
970N/Aextern int p_download(char *, char *, int, int, uchar_t *);
970N/Aextern void ssa_fast_write(char *);
970N/Aextern void ssa_perf_statistics(char *);
970N/Aextern void ssa_cli_start(char **, int);
970N/Aextern void ssa_cli_stop(char **, int);
970N/Aextern void ssa_cli_display_config(char **argv, char *, int, int, int);
970N/Aextern void cli_display_envsen_data(char **, int);
970N/Aextern int p_sync_cache(char *);
970N/Aextern int p_purge(char *);
970N/Aextern void led(char **, int, int);
970N/Aextern void alarm_enable(char **, int, int);
970N/Aextern void alarm_set(char **, int);
970N/Aextern void power_off(char **, int);
970N/Aextern char *get_physical_name(char *);
970N/A
970N/A/* SSA LIB environment sense */
970N/Aextern int scsi_get_envsen_data(int, char *, int);
970N/Aextern int scsi_put_envsen_data(int, char *, int);
970N/A
970N/A/* hotplug */
970N/Aextern void print_errString(int, char *);
970N/Aextern int print_devState(char *, char *, int, int, int);
970N/Aextern void print_dev_state(char *, int);
970N/Aextern void print_bus_state(char *, int);
970N/Aextern int dev_handle_insert(char *, int);
1097N/Aextern int dev_handle_remove(char *, int);
970N/Aextern int dev_handle_replace(char *, int);
970N/A
970N/A/* funct.c */
970N/Aextern char ctoi(char);
970N/A
970N/A
970N/A/* Functions for FC-HBA based operations */
970N/Aextern int fchba_display_port(int verbose);
extern int fchba_non_encl_probe();
extern int fchba_inquiry(char **argv);
extern int fchba_dump_map(char **argv);
extern int use_fchba();
extern int fchba_display_link_status(char **);
extern int fchba_display_config(char **, int, int);
extern int fchba_hotplug_e(int, char **, int, int);
/* for g_adm.c & hotplug.c */
int print_devState(char *, char *, int, int, int);
#ifdef __cplusplus
}
#endif
#endif /* _LUXADM_H */