vfio.h (3539bbb93e944ffde31c61c369ea9eedcc5697a6) vfio.h (7a52ce8a160739c5d37469b0e344d3239eb86462)
1/*
2 * VFIO API definition
3 *
4 * Copyright (C) 2012 Red Hat, Inc. All rights reserved.
5 * Author: Alex Williamson <alex.williamson@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

155 * struct vfio_device_info. Caller sets argsz.
156 * Return: 0 on success, -errno on failure.
157 */
158struct vfio_device_info {
159 __u32 argsz;
160 __u32 flags;
161#define VFIO_DEVICE_FLAGS_RESET (1 << 0) /* Device supports reset */
162#define VFIO_DEVICE_FLAGS_PCI (1 << 1) /* vfio-pci device */
1/*
2 * VFIO API definition
3 *
4 * Copyright (C) 2012 Red Hat, Inc. All rights reserved.
5 * Author: Alex Williamson <alex.williamson@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

155 * struct vfio_device_info. Caller sets argsz.
156 * Return: 0 on success, -errno on failure.
157 */
158struct vfio_device_info {
159 __u32 argsz;
160 __u32 flags;
161#define VFIO_DEVICE_FLAGS_RESET (1 << 0) /* Device supports reset */
162#define VFIO_DEVICE_FLAGS_PCI (1 << 1) /* vfio-pci device */
163#define VFIO_DEVICE_FLAGS_PLATFORM (1 << 2) /* vfio-platform device */
164#define VFIO_DEVICE_FLAGS_AMBA (1 << 3) /* vfio-amba device */
163 __u32 num_regions; /* Max region index + 1 */
164 __u32 num_irqs; /* Max IRQ index + 1 */
165};
166#define VFIO_DEVICE_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 7)
167
168/**
169 * VFIO_DEVICE_GET_REGION_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 8,
170 * struct vfio_region_info)

--- 328 unchanged lines hidden ---
165 __u32 num_regions; /* Max region index + 1 */
166 __u32 num_irqs; /* Max IRQ index + 1 */
167};
168#define VFIO_DEVICE_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 7)
169
170/**
171 * VFIO_DEVICE_GET_REGION_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 8,
172 * struct vfio_region_info)

--- 328 unchanged lines hidden ---