/*
* 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 (c) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include <fcntl.h>
#include <fcdriver/fcdriver.h>
static fc_phandle_t
{
int error;
if (error)
return (NULL);
return (fc_cell2phandle(hcell));
}
void
{
if (d != NULL) {
device_t *p;
}
}
static void
{
char *name;
int namelen;
char *namebuf;
namebuf = "<unknown>";
return;
}
if (d->parent) {
namebuf = "<unknown>";
int status;
namebuf = "";
namelen = 0;
break;
}
if (thisnode) {
}
}
}
static void
{
/*
* We scan through the tree looking for nodes that don't have
* one of my structures attached, and for each of those nodes
* I attempt to match it with a real firmware node
*/
}
static void
{
char *name;
int len;
fc_phandle_t p;
/*
* This is not nice; new_device calls the allocate_phandle
* routine without exception, we need to disable the allocation
* while we are building the tree to the attachment point
* which is why the init_done variable exists.
*/
node_array = NULL;
depth = 0;
allocd = sizeof (private_data_t *);
do {
&len);
if (name)
name);
else
depth++;
} while (h);
for (n = 0; n < (depth-1); n++) {
}
for (n = 0; n < depth; n++) {
pd = node_array[n];
}
}
}
void
{
MYSELF = 0;
}
/*
* Installs /openprom and /packages nodes and sub-nodes.
*/
void
{
int saved_first_node;
int saved_init_done;
if (cdp) {
cdp->first_node = 0;
}
}
static void
_init(void)
{
}