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 44extern "C" { 45#endif 46 47 48/* External functions */ 49extern int fc_update(unsigned, unsigned, char *); 50extern int fcal_update(unsigned, char *); 51extern int q_qlgc_update(unsigned, char *); 52extern int emulex_update(char *); 53extern int emulex_fcode_reader(int, char *, char *, uint32_t); 54extern int setboot(unsigned, unsigned, char *); 55extern int sysdump(int); 56extern int h_insertSena_fcdev(); 57extern int hotplug(int, char **, int, int); 58extern int hotplug_e(int, char **, int, int); 59extern void print_fabric_dtype_prop(uchar_t *, uchar_t *, uchar_t); 60/* SSA and RSM */ 61extern int p_download(char *, char *, int, int, uchar_t *); 62extern void ssa_fast_write(char *); 63extern void ssa_perf_statistics(char *); 64extern void ssa_cli_start(char **, int); 65extern void ssa_cli_stop(char **, int); 66extern void ssa_cli_display_config(char **argv, char *, int, int, int); 67extern void cli_display_envsen_data(char **, int); 68extern int p_sync_cache(char *); 69extern int p_purge(char *); 70extern void led(char **, int, int); 71extern void alarm_enable(char **, int, int); 72extern void alarm_set(char **, int); 73extern void power_off(char **, int); 74extern char *get_physical_name(char *); 75 76/* SSA LIB environment sense */ 77extern int scsi_get_envsen_data(int, char *, int); 78extern int scsi_put_envsen_data(int, char *, int); 79 80/* hotplug */ 81extern void print_errString(int, char *); 82extern int print_devState(char *, char *, int, int, int); 83extern void print_dev_state(char *, int); 84extern void print_bus_state(char *, int); 85extern int dev_handle_insert(char *, int); 86extern int dev_handle_remove(char *, int); 87extern int dev_handle_replace(char *, int); 88 89/* funct.c */ 90extern char ctoi(char); 91 92 93/* Functions for FC-HBA based operations */ 94extern int fchba_display_port(int verbose); 95extern int fchba_non_encl_probe(); 96extern int fchba_inquiry(char **argv); 97extern int fchba_dump_map(char **argv); 98extern int use_fchba(); 99extern int fchba_display_link_status(char **); 100extern int fchba_display_config(char **, int, int); 101extern int fchba_hotplug_e(int, char **, int, int); 102 103/* for g_adm.c & hotplug.c */ 104int print_devState(char *, char *, int, int, int); 105 106#ifdef __cplusplus 107} 108#endif 109 110#endif /* _LUXADM_H */ 111