amd_iommu_acpi.c revision 6732dbb379bf754b70168b01ba56793737f9f3e7
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf * Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrensstatic void amd_iommu_acpi_table_fini(amd_iommu_acpi_t **acpipp);
fa9e4066f08beec538e775443c5be79dd423fcabahrensstatic void dump_acpi_aliases(void);
fa9e4066f08beec538e775443c5be79dd423fcabahrensstatic amd_iommu_acpi_global_t *amd_iommu_acpi_global;
fa9e4066f08beec538e775443c5be79dd423fcabahrensstatic amd_iommu_acpi_ivhd_t **amd_iommu_acpi_ivhd_hash;
fa9e4066f08beec538e775443c5be79dd423fcabahrensstatic amd_iommu_acpi_ivmd_t **amd_iommu_acpi_ivmd_hash;
f808c858fa61e7769218966759510a8b1190dfcfraf len_bits = AMD_IOMMU_REG_GET8(&type8, AMD_IOMMU_ACPI_DEVENTRY_LEN);
fa9e4066f08beec538e775443c5be79dd423fcabahrens return (4);
fa9e4066f08beec538e775443c5be79dd423fcabahrens return (8);
fa9e4066f08beec538e775443c5be79dd423fcabahrens return (16);
f808c858fa61e7769218966759510a8b1190dfcfraf return (32);
fa9e4066f08beec538e775443c5be79dd423fcabahrens /*NOTREACHED*/
switch (entry_type) {
AMD_IOMMU_ACPI_DATRSV) == 0);
switch (entry_type) {
#ifdef BROKEN_ASSERT
AMD_IOMMU_ACPI_DATRSV) == 0);
ivhd_container_t *c;
ivmd_container_t *c;
amd_iommu_acpi_init(void)
return (DDI_FAILURE);
AMD_IOMMU_ACPI_IVINFO_RSV1) == 0);
AMD_IOMMU_ACPI_IVINFO_RSV2) == 0);
return (DDI_FAILURE);
return (DDI_SUCCESS);
static ivhd_deventry_t *
return (next);
static ivhd_container_t *
return (next);
static ivmd_container_t *
return (next);
amd_iommu_acpi_fini(void)
static uint16_t
#ifdef BROKEN_ASSERT
AMD_IOMMU_ACPI_IVHD_FLAGS_RSV) == 0);
#ifdef BROKEN_ASSERT
AMD_IOMMU_ACPI_IOMMU_INFO_RSV1) == 0);
AMD_IOMMU_ACPI_IOMMU_INFO_RSV2) == 0);
case DEVENTRY_ALL:
case DEVENTRY_SELECT:
case DEVENTRY_RANGE:
case DEVENTRY_RANGE_END:
case DEVENTRY_ALIAS_SELECT:
case DEVENTRY_ALIAS_RANGE:
case DEVENTRY_EXTENDED_SELECT:
case DEVENTRY_EXTENDED_RANGE:
case DEVENTRY_SPECIAL_DEVICE:
AMD_IOMMU_ACPI_IVMD_RSV) == 0);
KM_SLEEP);
return (DDI_SUCCESS);
return (amd_iommu_acpi_global);
return (hinfop);
return (minfop);
for (i = AMD_IOMMU_ACPI_INFO_HASH_SZ; i >= 0; i--) {
return (hinfop);
for (i = AMD_IOMMU_ACPI_INFO_HASH_SZ; i >= 0; i--) {
return (minfop);
dump_acpi_aliases(void)
return (hinfop);
goto out;
goto range;
out:
return (hinfop);
goto out;
goto range;
out:
return (minfop);