io-pgtable.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) | io-pgtable.c (c9b258c6be09283663c6851725b322568d867c0b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Generic page table allocator for IOMMUs. 4 * 5 * Copyright (C) 2014 ARM Limited 6 * 7 * Author: Will Deacon <will.deacon@arm.com> 8 */ --- 10 unchanged lines hidden (view full) --- 19 [ARM_32_LPAE_S2] = &io_pgtable_arm_32_lpae_s2_init_fns, 20 [ARM_64_LPAE_S1] = &io_pgtable_arm_64_lpae_s1_init_fns, 21 [ARM_64_LPAE_S2] = &io_pgtable_arm_64_lpae_s2_init_fns, 22 [ARM_MALI_LPAE] = &io_pgtable_arm_mali_lpae_init_fns, 23#endif 24#ifdef CONFIG_IOMMU_IO_PGTABLE_ARMV7S 25 [ARM_V7S] = &io_pgtable_arm_v7s_init_fns, 26#endif | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Generic page table allocator for IOMMUs. 4 * 5 * Copyright (C) 2014 ARM Limited 6 * 7 * Author: Will Deacon <will.deacon@arm.com> 8 */ --- 10 unchanged lines hidden (view full) --- 19 [ARM_32_LPAE_S2] = &io_pgtable_arm_32_lpae_s2_init_fns, 20 [ARM_64_LPAE_S1] = &io_pgtable_arm_64_lpae_s1_init_fns, 21 [ARM_64_LPAE_S2] = &io_pgtable_arm_64_lpae_s2_init_fns, 22 [ARM_MALI_LPAE] = &io_pgtable_arm_mali_lpae_init_fns, 23#endif 24#ifdef CONFIG_IOMMU_IO_PGTABLE_ARMV7S 25 [ARM_V7S] = &io_pgtable_arm_v7s_init_fns, 26#endif |
27#ifdef CONFIG_AMD_IOMMU 28 [AMD_IOMMU_V1] = &io_pgtable_amd_iommu_v1_init_fns, 29#endif |
|
27}; 28 29struct io_pgtable_ops *alloc_io_pgtable_ops(enum io_pgtable_fmt fmt, 30 struct io_pgtable_cfg *cfg, 31 void *cookie) 32{ 33 struct io_pgtable *iop; 34 const struct io_pgtable_init_fns *fns; --- 36 unchanged lines hidden --- | 30}; 31 32struct io_pgtable_ops *alloc_io_pgtable_ops(enum io_pgtable_fmt fmt, 33 struct io_pgtable_cfg *cfg, 34 void *cookie) 35{ 36 struct io_pgtable *iop; 37 const struct io_pgtable_init_fns *fns; --- 36 unchanged lines hidden --- |