xref: /original-bsd/sys/sparc/include/openpromio.h (revision 3705696b)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * All advertising materials mentioning features or use of this software
10  * must display the following acknowledgement:
11  *	This product includes software developed by the University of
12  *	California, Lawrence Berkeley Laboratory.
13  *
14  * %sccs.include.redist.c%
15  *
16  *	@(#)openpromio.h	8.1 (Berkeley) 06/11/93
17  *
18  * from: $Header: openpromio.h,v 1.2 93/04/20 11:14:46 torek Exp $
19  */
20 
21 struct opiocdesc {
22 	int	op_nodeid;		/* passed or returned node id */
23 	int	op_namelen;		/* length of op_name */
24 	char	*op_name;		/* pointer to field name */
25 	int	op_buflen;		/* length of op_buf (value-result) */
26 	char	*op_buf;		/* pointer to field value */
27 };
28 
29 #define	OPIOCGET	_IOWR('O', 1, struct opiocdesc) /* get openprom field */
30 #define	OPIOCSET	_IOW('O', 2, struct opiocdesc) /* set openprom field */
31 #define	OPIOCNEXTPROP	_IOWR('O', 3, struct opiocdesc) /* get next property */
32 #define	OPIOCGETOPTNODE	_IOR('O', 4, int)	/* get openprom field */
33 #define	OPIOCGETNEXT	_IOWR('O', 5, int)	/* get next node of node */
34 #define	OPIOCGETCHILD	_IOWR('O', 6, int)	/* get first child of node */
35