amd_iommu_log.h revision 6732dbb379bf754b70168b01ba56793737f9f3e7
/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _AMD_IOMMU_LOG_H
#define _AMD_IOMMU_LOG_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/amd_iommu.h>
#ifdef _KERNEL
#define EV2OFF(e) ((e) << 4)
#define OFF2EV(o) ((o) >> 4)
typedef enum {
/* Common to all events */
/* Illegal device Table Entry Event bits */
/* IO Page Fault event bits */
/* Device Table HW Error event bits */
/* Page Table HW Error event bits */
/* Illegal Command Error event bits */
/* Command Buffer HW Error event bits */
/* IOTLB Invalidation TO event bits */
/* Illegal Device request event bits */
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _AMD_IOMMU_LOG_H */