/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2011 NetApp, Inc.4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in the13* documentation and/or other materials provided with the distribution.14*15* THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND16* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE17* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE18* ARE DISCLAIMED. IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE19* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL20* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS21* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT23* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY24* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF25* SUCH DAMAGE.26*/2728#include <sys/param.h>29#include <sys/systm.h>30#include <sys/errno.h>3132#include <machine/vmm.h>33#include "io/iommu.h"3435static int36amd_iommu_init(void)37{3839printf("amd_iommu_init: not implemented\n");40return (ENXIO);41}4243static void44amd_iommu_cleanup(void)45{4647printf("amd_iommu_cleanup: not implemented\n");48}4950static void51amd_iommu_enable(void)52{5354printf("amd_iommu_enable: not implemented\n");55}5657static void58amd_iommu_disable(void)59{6061printf("amd_iommu_disable: not implemented\n");62}6364static void *65amd_iommu_create_domain(vm_paddr_t maxaddr)66{6768printf("amd_iommu_create_domain: not implemented\n");69return (NULL);70}7172static void73amd_iommu_destroy_domain(void *domain)74{7576printf("amd_iommu_destroy_domain: not implemented\n");77}7879static uint64_t80amd_iommu_create_mapping(void *domain, vm_paddr_t gpa, vm_paddr_t hpa,81uint64_t len)82{8384printf("amd_iommu_create_mapping: not implemented\n");85return (0);86}8788static uint64_t89amd_iommu_remove_mapping(void *domain, vm_paddr_t gpa, uint64_t len)90{9192printf("amd_iommu_remove_mapping: not implemented\n");93return (0);94}9596static void97amd_iommu_add_device(void *domain, uint16_t rid)98{99100printf("amd_iommu_add_device: not implemented\n");101}102103static void104amd_iommu_remove_device(void *domain, uint16_t rid)105{106107printf("amd_iommu_remove_device: not implemented\n");108}109110static void111amd_iommu_invalidate_tlb(void *domain)112{113114printf("amd_iommu_invalidate_tlb: not implemented\n");115}116117struct iommu_ops iommu_ops_amd = {118amd_iommu_init,119amd_iommu_cleanup,120amd_iommu_enable,121amd_iommu_disable,122amd_iommu_create_domain,123amd_iommu_destroy_domain,124amd_iommu_create_mapping,125amd_iommu_remove_mapping,126amd_iommu_add_device,127amd_iommu_remove_device,128amd_iommu_invalidate_tlb,129};130131132