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.
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.
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]
23 * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
37 * subset of ioctl commands from PSARC 2000/019
40 #define LOMIOCALCTL _IOW('a', 4, lom_aldata_t)
41 #define LOMIOCALSTATE _IOWR('a', 5, lom_aldata_t)
42 #define LOMIOCFLEDSTATE _IOR('a', 24, lom_fled_info_t)
43 #define LOMIOCINFO _IOR('a', 25, lom_info_t)
44 #define LOMIOCINFO2 _IOWR('a', 46, lom2_info_t)
45 #define LOMIOCCTL _IOW('a', 27, lom_ctl_t)
46 #define LOMIOCCTL2 _IOW('a', 40, lom_ctl2_t)
47 #define LOMIOCPROG _IOWR('a', 28, lom_prog_t)
48 #define LOMIOCWTMON _IOWR('a', 2, int)
49 #define LOMIOCMREAD _IOR('a', 33, lom_mprog_t)
50 #define LOMIOCEVENTLOG2 _IOWR('a', 45, lom_eventlog2_t)
52 #define LOM_SERIAL_EVENTS_ON 0x100
53 #define LOM_SERIAL_EVENTS_OFF 0x200
54 #define LOM_SERIAL_EVENTS_DEF 0x300
105 int serial_hw_config
;
106 int phone_home_config
;
107 char phone_home_script
[128];
112 int index
; /* bit 0x8000 should be set if last buffer */
117 #define MAX_EVENTS 128
118 #define MAX_EVENT_STR 80
121 int num
; /* no. events requested and no. returned */
122 int level
; /* level of events requested */
123 int pad1
[MAX_EVENTS
];
124 char string
[MAX_EVENTS
][MAX_EVENT_STR
];
125 int pad2
[MAX_EVENTS
];
129 * Project private ioctl commands - used by lw8 picl frutree plugin only
132 #define LOMIOCGETLED _IOWR('a', 100, lom_get_led_t)
133 #define LOMIOCSETLED _IOWR('a', 101, lom_set_led_t)
135 #define MAX_ID_LEN 16
136 #define MAX_LOCATION_LEN 16
137 #define MAX_COLOR_LEN 16
139 #define LOM_LED_STATUS_OFF 0
140 #define LOM_LED_STATUS_ON 1
141 #define LOM_LED_STATUS_FLASHING 2
142 #define LOM_LED_STATUS_BLINKING 3
144 #define LOM_LED_POSITION_FRU 0
145 #define LOM_LED_POSITION_LOCATION 1
148 char location
[MAX_LOCATION_LEN
];
152 char color
[MAX_COLOR_LEN
];
153 char next_id
[MAX_ID_LEN
];
157 char location
[MAX_LOCATION_LEN
];
166 #endif /* _SYS_LW8_H */