/*
* 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 <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include <errno.h>
#include <fcdriver/fcdriver.h>
static char *pkg_my_args;
static void
{
}
/*
*/
int
{
char c;
int nbytes;
return (0);
}
return (0);
}
return (0);
}
return (0);
return (1);
}
static void
{
/*
* Don't get if already set.
*/
if (pkg_my_args)
return;
return;
}
}
static void
{
if (pkg_my_args)
}
static void
{
if (pkg_my_args)
else
}
void
{
}
void
{
char *p, *buf;
return;
}
} else {
"%s: Fcode from device: len: 0x%x\n", func_name,
}
}
static void
{
int len;
return;
}
return;
}
fname);
return;
}
}
void
{
fstack_t d;
char *method;
extern void exec_parent_method(fcode_env_t *);
extern void exec_builtin_driver(fcode_env_t *);
if (d) {
} else {
method);
}
}
void
{
fstack_t d;
extern void exec_parent_method(fcode_env_t *);
if (d) {
} else {
}
} else {
}
}
/*
* Looks for "device-id" and "class-id" methods in parent, if there,
* executes them to get "builtin drivers" file name or method name, then
* executes the builtin-driver method. If both those fail, try getting the
* fcode from the device. Note that we sleaze resetting the data stack.
* from within C code.
*/
void
{
int error;
if (TOS) {
return;
}
if (TOS) {
return;
}
if (TOS) {
return;
}
if (TOS) {
return;
}
if (TOS) {
return;
}
error = FC_NO_FCODE;
return;
}
}
int
{
}
static void
{
if (!open_fcode_dev(env))
exit(1);
if (!fc_get_request(cdp)) {
exit(1);
}
}
/*
* file descriptor is fd 0.
*/
static void
{
exit(1);
}
exit(1);
}
static void
{
char *path;
exit(1);
}
if (!fcode_len) {
return;
}
}
static void
{
}
/*
* Non-daemon "do-request", for debugging
*/
static void
{
}
/*
* open and passed in fd0 (stdin). If it's not, we throw up our hands.
*/
void
{
exit(0);
}
void
{
int error;
if (error)
}
static void
_init(void)
{
}