Print this page
PANKOVs restructure


  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #ifndef _AMD_IOMMU_ACPI_H
  26 #define _AMD_IOMMU_ACPI_H
  27 
  28 #ifdef __cplusplus
  29 extern "C" {
  30 #endif
  31 
  32 #include <sys/sunddi.h>
  33 #include <sys/acpi/acpi.h>
  34 #include <sys/acpica.h>
  35 #include <sys/amd_iommu.h>
  36 #include "amd_iommu_impl.h"
  37 
  38 #ifdef _KERNEL
  39 
  40 #define IVRS_SIG        "IVRS"
  41 
  42 /*
  43  * IVINFO settings
  44  */
  45 #define AMD_IOMMU_ACPI_IVINFO_RSV1      (31 << 16 | 23)
  46 #define AMD_IOMMU_ACPI_HT_ATSRSV        (22 << 16 | 22)
  47 #define AMD_IOMMU_ACPI_VA_SIZE          (21 << 16 | 15)
  48 #define AMD_IOMMU_ACPI_PA_SIZE          (14 << 16 | 8)
  49 #define AMD_IOMMU_ACPI_IVINFO_RSV2      (7 << 16 | 0)
  50 
  51 /*
  52  * IVHD Device entry len field
  53  */




  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #ifndef _AMD_IOMMU_ACPI_H
  26 #define _AMD_IOMMU_ACPI_H
  27 
  28 #ifdef __cplusplus
  29 extern "C" {
  30 #endif
  31 
  32 #include <sys/sunddi.h>
  33 #include <acpica/include/acpi.h>
  34 #include <sys/acpica.h>
  35 #include <sys/amd_iommu.h>
  36 #include "amd_iommu_impl.h"
  37 
  38 #ifdef _KERNEL
  39 
  40 #define IVRS_SIG        "IVRS"
  41 
  42 /*
  43  * IVINFO settings
  44  */
  45 #define AMD_IOMMU_ACPI_IVINFO_RSV1      (31 << 16 | 23)
  46 #define AMD_IOMMU_ACPI_HT_ATSRSV        (22 << 16 | 22)
  47 #define AMD_IOMMU_ACPI_VA_SIZE          (21 << 16 | 15)
  48 #define AMD_IOMMU_ACPI_PA_SIZE          (14 << 16 | 8)
  49 #define AMD_IOMMU_ACPI_IVINFO_RSV2      (7 << 16 | 0)
  50 
  51 /*
  52  * IVHD Device entry len field
  53  */