/*
* 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
*/
/*
*/
#ifndef _AMD_IOMMU_ACPI_H
#define _AMD_IOMMU_ACPI_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/amd_iommu.h>
#include "amd_iommu_impl.h"
#ifdef _KERNEL
/*
* IVINFO settings
*/
/*
* IVHD Device entry len field
*/
/*
* IVHD flag fields definition
*/
/*
* IVHD IOMMU info fields
*/
/*
* IVHD deventry data settings
*/
/*
* IVHD deventry extended data settings
*/
/*
* IVMD flags fields settings
*/
/*
* Deventry special device "variety"
*/
typedef enum {
DEVENTRY_INVALID = 0,
typedef enum {
IVMD_DEVICE_INVALID = 0,
typedef struct ivhd_deventry {
typedef struct ivhd {
} ivhd_t;
typedef struct ivhd_container {
typedef struct ivmd {
} ivmd_t;
typedef struct ivmd_container {
typedef struct ivrs {
} ivrs_t;
typedef struct amd_iommu_acpi {
/* Global IVINFo fields */
typedef struct amd_iommu_acpi_global {
typedef struct amd_iommu_acpi_ivhd {
/* IVHD deventry type */
/* IVHD flag fields */
/* IVHD fields */
/* IVHD IOMMU info fields */
/* IVHD deventry data settings */
/* alias */
/* IVHD deventry extended data settings */
/* IVHD deventry special device */
typedef struct amd_iommu_acpi_ivmd {
/* IVMD type */
/* IVMD flags */
/* IVMD mem block */
typedef union {
} align_16_t;
typedef union {
} align_32_t;
typedef union {
char *cp;
} align_ivhd_t;
typedef union {
char *cp;
} align_ivmd_t;
#pragma pack()
int amd_iommu_acpi_init(void);
void amd_iommu_acpi_fini(void);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _AMD_IOMMU_ACPI_H */