/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "nge.h"
/*
* Global variable for default debug flags
*/
/*
* Global mutex used by logging routines below
*/
/*
* Static data used by logging routines; protected by <nge_log_mutex>
*/
static struct {
const char *who;
const char *fmt;
int level;
} nge_log_data;
/*
* Backend print routine for all the routines below
*/
static void
{
}
/*
* Log a run-time event (CE_NOTE, log only)
*/
void
{
}
/*
* Log a run-time problem (CE_WARN, log only)
*/
void
{
}
/*
* Log a programming error (CE_WARN, log only)
*/
void
{
}
static const char *
{
const char *msg;
switch (class_id) {
default:
msg = "none";
break;
case NGE_HW_ERR:
msg = "Hardware fatal error. Hardware will be reset";
break;
case NGE_HW_LINK:
msg = "the link is broken, please check the connection";
break;
case NGE_HW_BM:
msg = "Reset the hardware buffer management fails,"
break;
case NGE_HW_RCHAN:
"on system";
break;
case NGE_HW_TCHAN:
"on system";
break;
case NGE_HW_ROM:
msg = "Unlock eeprom lock fails.";
break;
case NGE_SW_PROBLEM_ID:
msg = "Refill rx's bd fails";
break;
}
return (msg);
}
void
{
const char *err_msg;
}
static void
{
}
void
{
return (nge_prt);
}
void
{
return (nge_prt);
}