159207Storek /* 2*63320Sbostic * Copyright (c) 1992, 1993 3*63320Sbostic * The Regents of the University of California. All rights reserved. 459207Storek * 559207Storek * This software was developed by the Computer Systems Engineering group 659207Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 759207Storek * contributed to Berkeley. 859207Storek * 959207Storek * All advertising materials mentioning features or use of this software 1059207Storek * must display the following acknowledgement: 1159207Storek * This product includes software developed by the University of 1259207Storek * California, Lawrence Berkeley Laboratory. 1359207Storek * 1459207Storek * %sccs.include.redist.c% 1559207Storek * 16*63320Sbostic * @(#)openpromio.h 8.1 (Berkeley) 06/11/93 1759207Storek * 1859207Storek * from: $Header: openpromio.h,v 1.2 93/04/20 11:14:46 torek Exp $ 1959207Storek */ 2059207Storek 2159207Storek struct opiocdesc { 2259207Storek int op_nodeid; /* passed or returned node id */ 2359207Storek int op_namelen; /* length of op_name */ 2459207Storek char *op_name; /* pointer to field name */ 2559207Storek int op_buflen; /* length of op_buf (value-result) */ 2659207Storek char *op_buf; /* pointer to field value */ 2759207Storek }; 2859207Storek 2959207Storek #define OPIOCGET _IOWR('O', 1, struct opiocdesc) /* get openprom field */ 3059207Storek #define OPIOCSET _IOW('O', 2, struct opiocdesc) /* set openprom field */ 3159207Storek #define OPIOCNEXTPROP _IOWR('O', 3, struct opiocdesc) /* get next property */ 3259207Storek #define OPIOCGETOPTNODE _IOR('O', 4, int) /* get openprom field */ 3359207Storek #define OPIOCGETNEXT _IOWR('O', 5, int) /* get next node of node */ 3459207Storek #define OPIOCGETCHILD _IOWR('O', 6, int) /* get first child of node */ 35