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