/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/promimpl.h>
#include <sys/prom_emul.h>
static void
{
struct prom_prop *p, *q;
q = kmem_zalloc(sizeof (*q), KM_SLEEP);
switch (flags) {
case DDI_PROP_TYPE_INT:
case DDI_PROP_TYPE_INT64:
/*
* Technically, we need byte-swapping to conform to 1275.
* However, the old x86 prom simulator used little endian
* representation, so we don't swap here either.
*
* NOTE: this is inconsistent with ddi_prop_lookup_*()
* which does byte-swapping when looking up prom properties.
* Since all kernel nodes are SID nodes, drivers no longer
* access PROM properties on x86.
*/
default: /* no byte swapping */
break;
}
return;
}
/* empty */;
p->pp_next = q;
}
static prom_node_t *
{
char *nodename;
/* need to encode to proper endianness */
}
return (pnp);
}
static void
{
while (ndip) {
}
}
static void
{
while (cdip) {
}
}
void
{
}
static prom_node_t *
{
return (pnp);
return (qnp);
if (pnp->pn_sibling)
return (qnp);
return (NULL);
}
static prom_node_t *
{
if (nodeid == OBP_NONODE)
return (promif_top);
if (promif_top == NULL)
return (NULL);
}
{
/*
* Note: next(0) returns the root node
*/
return (OBP_NONODE);
}
{
return (OBP_NONODE);
}
/*
* Retrieve a PROM property (len and value)
*/
static int
{
return (-1);
}
int
{
return (-1);
}
static void *
{
return (NULL);
}
int
{
void *v;
int len;
return (-1);
if (len > 0) {
}
return (len);
}
static char *
{
/*
* getting next of NULL or a null string returns the first prop name
*/
return (NULL);
}
char *
{
char *s;
next[0] = '\0';
return (NULL);
if (s == NULL)
return (next);
return (next);
}