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