2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Open the SCF driver and use the ioctl interface to set or get the status. 2N/A * Returns 0 on success. Returns OP_FAILED on error. 2N/A /* paranoid check */ 2N/A /* errstring is set in opl_get_scf_logical_disk */ 2N/A /* Open a file descriptor for the scf driver. */ 2N/A * Use the ioctl interface with the SCF driver to get/set the 2N/A * hdd locator indicator. 2N/A /* Check Retry Error Number */ 2N/A /* Check Retry Times */ 2N/A * Print the value of the hard disk locator in a human friendly form. 2N/A * Print the value of the hard disk fault LED in a human friendly form. 2N/A * The func argument is a string in one of the two following forms: 2N/A * led=LED[,mode=MODE] 2N/A * which can generically be thought of as: 2N/A * name=value[,name=value] 2N/A * So first, split the function based on the comma into two name-value 2N/A /* Options are sane so set or get the locator. */ 2N/A /* options are sane so go ahead and set or get the led */