vfio: Query and store the maximum number of possible DMA mappings
[qemu/kevin.git] / include / hw / vfio / vfio-calxeda-xgmac.h
blob8482f151dd5ab8ca5f7e8f4300e67314604a68e3
1 /*
2 * VFIO calxeda xgmac device
4 * Copyright Linaro Limited, 2014
6 * Authors:
7 * Eric Auger <eric.auger@linaro.org>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #ifndef HW_VFIO_VFIO_CALXEDA_XGMAC_H
15 #define HW_VFIO_VFIO_CALXEDA_XGMAC_H
17 #include "hw/vfio/vfio-platform.h"
18 #include "qom/object.h"
20 #define TYPE_VFIO_CALXEDA_XGMAC "vfio-calxeda-xgmac"
22 /**
23 * This device exposes:
24 * - a single MMIO region corresponding to its register space
25 * - 3 IRQS (main and 2 power related IRQs)
27 struct VFIOCalxedaXgmacDevice {
28 VFIOPlatformDevice vdev;
30 typedef struct VFIOCalxedaXgmacDevice VFIOCalxedaXgmacDevice;
32 struct VFIOCalxedaXgmacDeviceClass {
33 /*< private >*/
34 VFIOPlatformDeviceClass parent_class;
35 /*< public >*/
36 DeviceRealize parent_realize;
38 typedef struct VFIOCalxedaXgmacDeviceClass VFIOCalxedaXgmacDeviceClass;
40 DECLARE_OBJ_CHECKERS(VFIOCalxedaXgmacDevice, VFIOCalxedaXgmacDeviceClass,
41 VFIO_CALXEDA_XGMAC_DEVICE, TYPE_VFIO_CALXEDA_XGMAC)
43 #endif