sun4u_iommu.c (59c58f96b270f5edd4ad10954c3a96556cb3a728) | sun4u_iommu.c (9323e79f10e5f5d8fffc3b307776173ca11faeae) |
---|---|
1/* 2 * QEMU sun4u IOMMU emulation 3 * 4 * Copyright (c) 2006 Fabrice Bellard 5 * Copyright (c) 2012,2013 Artyom Tarasenko 6 * Copyright (c) 2017 Mark Cave-Ayland 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 151 unchanged lines hidden (view full) --- 160 MEMTXATTRS_UNSPECIFIED, NULL); 161 162 if (!(tte & IOMMU_TTE_DATA_V)) { 163 /* Invalid mapping */ 164 return ret; 165 } 166 167 if (tte & IOMMU_TTE_DATA_W) { | 1/* 2 * QEMU sun4u IOMMU emulation 3 * 4 * Copyright (c) 2006 Fabrice Bellard 5 * Copyright (c) 2012,2013 Artyom Tarasenko 6 * Copyright (c) 2017 Mark Cave-Ayland 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 151 unchanged lines hidden (view full) --- 160 MEMTXATTRS_UNSPECIFIED, NULL); 161 162 if (!(tte & IOMMU_TTE_DATA_V)) { 163 /* Invalid mapping */ 164 return ret; 165 } 166 167 if (tte & IOMMU_TTE_DATA_W) { |
168 /* Writeable */ | 168 /* Writable */ |
169 ret.perm = IOMMU_RW; 170 } else { 171 ret.perm = IOMMU_RO; 172 } 173 174 /* Extract phys */ 175 if (tte & IOMMU_TTE_DATA_SIZE) { 176 /* 64K */ --- 166 unchanged lines hidden --- | 169 ret.perm = IOMMU_RW; 170 } else { 171 ret.perm = IOMMU_RO; 172 } 173 174 /* Extract phys */ 175 if (tte & IOMMU_TTE_DATA_SIZE) { 176 /* 64K */ --- 166 unchanged lines hidden --- |