/* * Copyright (c) 1992 The Regents of the University of California. * All rights reserved. * * This software was developed by the Computer Systems Engineering group * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and * contributed to Berkeley. * * All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Lawrence Berkeley Laboratory. * * %sccs.include.redist.c% * * @(#)openpromio.h 7.1 (Berkeley) 04/20/93 * * from: $Header: openpromio.h,v 1.2 93/04/20 11:14:46 torek Exp $ */ struct opiocdesc { int op_nodeid; /* passed or returned node id */ int op_namelen; /* length of op_name */ char *op_name; /* pointer to field name */ int op_buflen; /* length of op_buf (value-result) */ char *op_buf; /* pointer to field value */ }; #define OPIOCGET _IOWR('O', 1, struct opiocdesc) /* get openprom field */ #define OPIOCSET _IOW('O', 2, struct opiocdesc) /* set openprom field */ #define OPIOCNEXTPROP _IOWR('O', 3, struct opiocdesc) /* get next property */ #define OPIOCGETOPTNODE _IOR('O', 4, int) /* get openprom field */ #define OPIOCGETNEXT _IOWR('O', 5, int) /* get next node of node */ #define OPIOCGETCHILD _IOWR('O', 6, int) /* get first child of node */