sun4u_iommu.c (acc95bc85036c443da8bf7159a77edf9f00dcd80) sun4u_iommu.c (e688df6bc4549f28534cdb001f168b8caae55b0c)
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

--- 14 unchanged lines hidden (view full) ---

23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 */
26
27#include "qemu/osdep.h"
28#include "hw/sysbus.h"
29#include "hw/sparc/sun4u_iommu.h"
30#include "exec/address-spaces.h"
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

--- 14 unchanged lines hidden (view full) ---

23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 */
26
27#include "qemu/osdep.h"
28#include "hw/sysbus.h"
29#include "hw/sparc/sun4u_iommu.h"
30#include "exec/address-spaces.h"
31#include "qapi/error.h"
32#include "qemu/log.h"
33#include "trace.h"
34
35
36#define IOMMU_PAGE_SIZE_8K (1ULL << 13)
37#define IOMMU_PAGE_MASK_8K (~(IOMMU_PAGE_SIZE_8K - 1))
38#define IOMMU_PAGE_SIZE_64K (1ULL << 16)
39#define IOMMU_PAGE_MASK_64K (~(IOMMU_PAGE_SIZE_64K - 1))

--- 303 unchanged lines hidden ---
31#include "qemu/log.h"
32#include "trace.h"
33
34
35#define IOMMU_PAGE_SIZE_8K (1ULL << 13)
36#define IOMMU_PAGE_MASK_8K (~(IOMMU_PAGE_SIZE_8K - 1))
37#define IOMMU_PAGE_SIZE_64K (1ULL << 16)
38#define IOMMU_PAGE_MASK_64K (~(IOMMU_PAGE_SIZE_64K - 1))

--- 303 unchanged lines hidden ---