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 * All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006 23 */ 24 25 #ifndef _SYS_OPCIOIF_H 26 #define _SYS_OPCIOIF_H 27 28 #pragma ident "%Z%%M% %I% %E% SMI" 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 #include <sys/ioccom.h> 35 36 /* 37 * ioctl 38 * 39 * Note: The ioctl definitions are split between opcio.h (closed) and 40 * opcioif.h (open). All definitions required for the exported scfd 41 * interface should be in opcioif.h (open). 42 */ 43 #define SCFIOC 'p'<<8 44 45 #define SCFIOCGETDISKLED (SCFIOC|101|0x80040000) 46 #define SCFIOCSETDISKLED (SCFIOC|102|0x80040000) 47 #define SCFIOCSETPHPINFO (SCFIOC|1|0xe0000000) 48 49 #define SCF_DISK_LED_PATH_MAX 512 50 51 /* for led field */ 52 #define SCF_DISK_LED_ON 0x01 53 #define SCF_DISK_LED_BLINK 0x02 54 #define SCF_DISK_LED_OFF 0x04 55 56 typedef struct scfiocgetdiskled { 57 unsigned char path[SCF_DISK_LED_PATH_MAX]; 58 unsigned char led; 59 } scfiocgetdiskled_t; 60 61 typedef struct scfsetphpinfo { 62 unsigned char buf[65536]; 63 unsigned int size; 64 } scfsetphpinfo_t; 65 66 #ifdef __cplusplus 67 } 68 #endif 69 70 #endif /* _SYS_OPCIOIF_H */ 71