xref: /titanic_44/usr/src/uts/sun4u/sys/fctest.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 2000 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef	_SYS_FCTEST_H
28 #define	_SYS_FCTEST_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * /dev/fctest ioctls ... this is not part of the efcode project.
38  * This is a prototype test driver, used to drive the prototype
39  * only, and is not needed with hot-plug hardware and real hot-plug
40  * capable code.
41  */
42 
43 #define	FCTIOC			(0xfd<<8)
44 
45 /*
46  * FCT_SET_DEBUG_LVL: 'arg' is an intptr_t.
47  * Set fcode_debug to the value in intptr_t 'arg'.
48  */
49 #define	FCT_SET_DEBUG_LVL	(FCTIOC | 1)
50 
51 /*
52  * FCT_SET_DEVICE: 'arg' is a pointer to a string.  The string
53  * is taken as the pathname of the device to be configured.
54  * The driver attempts to locate the device in the device tree,
55  * and uses the parent of the device as the attachment point.
56  * The device has to exist in the firmware's device tree.
57  */
58 #define	FCT_SET_DEVICE		(FCTIOC | 2)
59 
60 /*
61  * FCT_UNCONFIGURE: 'arg' is ignored. Unconfigures the device
62  * given in the FCT_SET_DEVICE ioctl.
63  */
64 #define	FCT_UNCONFIGURE		(FCTIOC | 3)
65 #define	FCT_CONFIGURE		(FCTIOC | 4)
66 
67 
68 #ifdef	__cplusplus
69 }
70 #endif
71 
72 #endif	/* _SYS_FCTEST_H */
73