FreeBSD/sys/boot/ofw/libofw/openfirm.c
/* Get the next property of a package. */
Get the next property of a package.
Get the next property of a package .
int
OF_nextprop(phandle_t package, char *previous, char *buf)
{
	static struct {
		cell_t name;
		cell_t nargs;
		cell_t nreturns;
		cell_t package;
		cell_t previous;
		cell_t buf;
		cell_t flag;
	} args = {
		(cell_t)"nextprop",
		3,
		1,
	};
	args.package = package;
	args.previous = (cell_t)previous;
	args.buf = (cell_t)buf;
	if (openfirmware(&args) == -1)
		return (-1);
	return (args.flag);
}
int OF_nextprop ( phandle_t package , char * previous , char * buf ) { static struct { cell_t name ; cell_t nargs ; cell_t nreturns ; cell_t package ; cell_t previous ; cell_t buf ; cell_t flag ; } args = { ( cell_t ) " " , 3 , 1 , } ; args . package = package ; args . previous = ( cell_t ) previous ; args . buf = ( cell_t ) buf ; if ( openfirmware ( & args ) == -1 ) return ( -1 ) ; return ( args . flag ) ; }
Get the next property of a package.
Get the next property of a package .