/*
* 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 <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <fcdriver/fcdriver.h>
static fc_cell_t
{
if (!is_mcookie(virt))
/* Supress fc_run_priv error msgs on peeks */
if (errp)
/* Don't report error on peeks */
else if (error) {
}
return (data);
}
static void
int *errp)
{
if (!is_mcookie(virt))
/* Supress fc_run_priv error msgs on pokes */
if (errp)
/* Don't report error on pokes */
else if (error) {
}
}
static int
{
return (1);
}
return (0);
}
static void
{
fstack_t p;
p = TOS;
}
static void
{
fstack_t p, d;
p = TOS;
}
}
static void
{
fstack_t p;
p = TOS;
}
static void
{
fstack_t p, d;
p = TOS;
}
}
void
{
fstack_t p;
p = TOS;
}
}
static void
{
fstack_t p, d;
p = TOS;
}
}
/*
* rx@ ( xa -- xv )
*/
static void
{
fstack_t p;
xforth_t x;
p = TOS;
}
}
/*
* rx! ( xv xa -- )
*/
static void
{
fstack_t p;
xforth_t d;
p = TOS;
d = pop_xforth(env);
}
}
static void
{
fstack_t p;
lforth_t r;
int error;
if (error)
else {
}
}
static void
{
fstack_t p, d;
int error;
}
static void
{
fstack_t p;
int error;
wforth_t r;
if (error)
else {
}
}
static void
{
fstack_t p, d;
int error;
}
static void
{
fstack_t p;
uchar_t r;
int error;
if (error)
else {
}
}
static void
{
fstack_t p, d;
int error;
}
/*
* fcdriver version of cfetch, replaces base 'c@'
*/
static void
{
}
/*
* fcdriver version of cstore, replaces base 'c!'
*/
static void
{
}
/*
* fcdriver version of wfetch, replaces base 'w@'
*/
static void
{
}
/*
* fcdriver version of wstore, replaces base 'w!'
*/
static void
{
}
/*
* fcdriver version of lfetch, replaces base 'l@'
*/
static void
{
}
/*
* fcdriver version of lstore, replaces base 'l!'
*/
static void
{
}
/*
* fcdriver version of xfetch, replaces base 'x@'
*/
static void
{
}
/*
* fcdriver version of xstore, replaces base 'x!'
*/
static void
{
}
/*
* fcdriver version of move, replaces base 'move'
*/
static void
{
}
}
static void
{
return;
}
return;
}
}
}
char *
{
return (NULL);
*p = '\0';
return (p + 1);
return (NULL);
}
static void
{
char *mac_str;
int mac_value;
else
}
/*
* Allow for programmatic over-ride of 'mac-address'
*/
static char *mac_addr;
static int mac_addr_is_valid;
void
{
mac_addr_is_valid = 1;
}
void
{
}
/*
* Does driver call to get this.
*/
static void
{
int error;
&mac_add[1]);
if (error) {
}
}
/*
* 'mac-address' - complicated by 'local-mac-address' stuff.
*/
static void
{
fstack_t d;
if (mac_addr_is_valid) {
return;
}
/*
* From here, we essentially re-implement OBP's 'mac-address' word.
* on some platforms, this may need to be re-implemented.
*/
if (d) {
return;
}
}
/*
* Allow for the programmatic setting of diagnostic-mode?
*/
static int diag_mode_is_valid = 0;
static int diag_mode = 0;
void
{
diag_mode = d;
diag_mode_is_valid = 1;
}
void
{
}
/*
* 'diagnostic-mode?' - diagnostic-mode? is equivalent to NVRAM 'diag-switch?'
*/
static void
{
char *diag_str;
int diag_value;
if (!diag_mode_is_valid) {
diag_value = FALSE;
else
diag_value = TRUE;
}
}
/*
* May need to implement other memory-access Fcodes here (depending upon
* abuse), like fill, comp, +!, etc., etc.
*/
static void
_init(void)
{
}