Lines Matching +full:back +full:- +full:to +full:- +full:back

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2007-2010 Advanced Micro Devices, Inc.
14 * This is mainly used to communicate information back-and-forth
36 * amd_iommu_enable_device_erratum() - Enable erratum workaround for device
39 * @erratum: The erratum workaround to enable
41 * The function needs to be called before amd_iommu_init_device().
43 * - AMD_PRI_DEV_ERRATUM_ENABLE_RESET - Reset PRI capability when PRI
45 * - AMD_PRI_DEV_ERRATUM_LIMIT_REQ_ONE - Limit number of outstanding PRI
46 * requests to one
54 * amd_iommu_init_device() - Init device for use with IOMMUv2 driver
55 * @pdev: The PCI device to initialize
56 * @pasids: Number of PASIDs to support for this device
65 * amd_iommu_free_device() - Free all IOMMUv2 related device resources
67 * @pdev: The PCI device to disable IOMMUv2 usage for'
72 * amd_iommu_bind_pasid() - Bind a given task to a PASID on a device
73 * @pdev: The PCI device to bind the task to
74 * @pasid: The PASID on the device the task should be bound to
75 * @task: the task to bind
83 * amd_iommu_unbind_pasid() - Unbind a PASID from its task on
86 * @pasid: The PASID to unbind
89 * and the PASID is no longer bound to its task.
94 * amd_iommu_set_invalid_ppr_cb() - Register a call-back for failed
96 * @pdev: The PCI device the call-back should be registered for
97 * @cb: The call-back function
99 * The IOMMUv2 driver invokes this call-back when it is unable to
102 * the call-back are:
104 * - AMD_IOMMU_INV_PRI_RSP_SUCCESS - Send SUCCESS back to the device
105 * - AMD_IOMMU_INV_PRI_RSP_INVALID - Send INVALID back to the device
106 * - AMD_IOMMU_INV_PRI_RSP_FAIL - Send Failure back to the device,
107 * the device is required to disable
132 * amd_iommu_device_info() - Get information about IOMMUv2 support of a
134 * @pdev: PCI device to query information from
135 * @info: A pointer to an amd_iommu_device_info structure which will contain
147 super-user privileges */
158 * amd_iommu_set_invalidate_ctx_cb() - Register a call-back for invalidating
159 * a pasid context. This call-back is
160 * invoked when the IOMMUv2 driver needs to
162 * because the task that is bound to that
163 * context is about to exit.
165 * @pdev: The PCI device the call-back should be registered for
166 * @cb: The call-back function
175 static inline int amd_iommu_detect(void) { return -ENODEV; } in amd_iommu_detect()