e1000g_debug.h revision 080575042aba2197b425ebfd52061dea061a9aa1
/*
* This file is provided under a CDDLv1 license. When using or
* redistributing this file, you may do so under this license.
* In redistributing this file this license must be included
* and no other modification of this header file is permitted.
*
* CDDL LICENSE SUMMARY
*
* Copyright(c) 1999 - 2007 Intel Corporation. All rights reserved.
*
* The contents of this file are subject to the terms of Version
* 1.0 of the Common Development and Distribution License (the "License").
*
* You should have received a copy of the License with this software.
* You can obtain a copy of the License at
* See the License for the specific language governing permissions
* and limitations under the License.
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms of the CDDLv1.
*/
#ifndef _E1000G_DEBUG_H
#define _E1000G_DEBUG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* **********************************************************************
* *
* Module Name: *
* e1000g_debug.h *
* *
* Abstract: *
* *
* This driver runs on the following hardware: *
* - Wiseman based PCI gigabit ethernet adapters *
* *
* Environment: *
* Kernel Mode - *
* *
* **********************************************************************
*/
/*
* Debug message control
* Debug Levels:
* 0x000 - (0) no messages
* 0x001 - (1) Errors
* 0x002 - (2) Warnings
* 0x004 - (4) Information
* 0x008 - (8) Subroutine calls and control flow
* 0x010 - (16) I/O Data (verbose!)
* Speacialised Debug Levels:
* 0x020 - (32) Receive Debug Info
* 0x040 - (64) Send Debug Info
* 0x080 - (128) Interrupt Debug Info
* 0x100 - (256) DDI Debug Info
* "set e1000g:e1000g_debug=<value>"
* "set e1000g:e1000g_debug_hw=<value>"
* "set e1000g:e1000g_display_only=<value>"
* "set e1000g:e1000g_print_only=<value>"
* Alternatively, you can use adb to set variables and debug as
* follows:
* it you must reboot for the change to take effect.
*
* It turns on diagnostics if DEBUG is defined (DEBUG also
* enables other debugging code as ASSERT statements...
*/
#ifdef e1000g_DEBUG
static int e1000g_debug = DEFAULTDEBUGLEVEL;
static int e1000g_display_only = DEFAULTDISPLAYONLY;
static int e1000g_print_only = DEFAULTPRINTONLY;
static int e1000g_debug_hw = 1;
/* control flow */
#else
static int e1000g_debug = 0;
/* 0 - Don't Display */
/* 0 - Don't Print to Msg Log */
static int e1000g_debug_hw = 0;
#define e1000g_HW_DEBUGLOG
#endif /* e1000g_DEBUG */
#define NAMELEN 31
#define BUFSZ 256
#ifdef __cplusplus
}
#endif
#endif /* _E1000G_DEBUG_H */