pci_debug.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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.
*/
#ifndef _SYS_PCI_DEBUG_H
#define _SYS_PCI_DEBUG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct pci_debug_flag_to_string {
char *string;
#if defined(DEBUG)
#define DBG_ATTACH 0x1ull
#define DBG_DETACH 0x2ull
#define DBG_MAP 0x4ull
#define DBG_RSV1 0x10ull
#define DBG_A_INTX 0x20ull
#define DBG_R_INTX 0x40ull
#define DBG_INIT_CLD 0x80ull
#define DBG_CTLOPS 0x100ull
#define DBG_INTR 0x200ull
#define DBG_ERR_INTR 0x400ull
#define DBG_BUS_FAULT 0x800ull
#define DBG_DMA_ALLOCH 0x10000ull
#define DBG_DMA_FREEH 0x20000ull
#define DBG_DMA_BINDH 0x40000ull
#define DBG_DMA_UNBINDH 0x80000ull
#define DBG_DMA_MAP 0x100000ull
#define DBG_CHK_MOD 0x200000ull
#define DBG_BYPASS 0x400000ull
#define DBG_IOMMU 0x800000ull
#define DBG_DMA_WIN 0x1000000ull
#define DBG_MAP_WIN 0x2000000ull
#define DBG_UNMAP_WIN 0x4000000ull
#define DBG_DMA_CTL 0x8000000ull
#define DBG_DMA_SYNC 0x10000000ull
#define DBG_DMA_SYNC_PBM 0x20000000ull
#define DBG_FAST_DVMA 0x40000000ull
#else
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PCI_DEBUG_H */