vdpa.h (d0f9164eb294aeb884cbe36ddbbae34fa0124aa1) vdpa.h (442706f9f94d28fe3c9f188ae4ebbd6b40addffe)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_VDPA_H
3#define _LINUX_VDPA_H
4
5#include <linux/kernel.h>
6#include <linux/device.h>
7#include <linux/interrupt.h>
8#include <linux/vhost_iotlb.h>

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

145 * @vdev: vdpa device
146 * Returns u32: virtio vendor id
147 * @get_status: Get the device status
148 * @vdev: vdpa device
149 * Returns u8: virtio device status
150 * @set_status: Set the device status
151 * @vdev: vdpa device
152 * @status: virtio device status
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_VDPA_H
3#define _LINUX_VDPA_H
4
5#include <linux/kernel.h>
6#include <linux/device.h>
7#include <linux/interrupt.h>
8#include <linux/vhost_iotlb.h>

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

145 * @vdev: vdpa device
146 * Returns u32: virtio vendor id
147 * @get_status: Get the device status
148 * @vdev: vdpa device
149 * Returns u8: virtio device status
150 * @set_status: Set the device status
151 * @vdev: vdpa device
152 * @status: virtio device status
153 * @get_config_size: Get the size of the configuration space
154 * @vdev: vdpa device
155 * Returns size_t: configuration size
153 * @get_config: Read from device specific configuration space
154 * @vdev: vdpa device
155 * @offset: offset from the beginning of
156 * configuration space
157 * @buf: buffer used to read to
158 * @len: the length to read from
159 * configuration space
160 * @set_config: Write to device specific configuration space

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

226 int (*set_features)(struct vdpa_device *vdev, u64 features);
227 void (*set_config_cb)(struct vdpa_device *vdev,
228 struct vdpa_callback *cb);
229 u16 (*get_vq_num_max)(struct vdpa_device *vdev);
230 u32 (*get_device_id)(struct vdpa_device *vdev);
231 u32 (*get_vendor_id)(struct vdpa_device *vdev);
232 u8 (*get_status)(struct vdpa_device *vdev);
233 void (*set_status)(struct vdpa_device *vdev, u8 status);
156 * @get_config: Read from device specific configuration space
157 * @vdev: vdpa device
158 * @offset: offset from the beginning of
159 * configuration space
160 * @buf: buffer used to read to
161 * @len: the length to read from
162 * configuration space
163 * @set_config: Write to device specific configuration space

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

229 int (*set_features)(struct vdpa_device *vdev, u64 features);
230 void (*set_config_cb)(struct vdpa_device *vdev,
231 struct vdpa_callback *cb);
232 u16 (*get_vq_num_max)(struct vdpa_device *vdev);
233 u32 (*get_device_id)(struct vdpa_device *vdev);
234 u32 (*get_vendor_id)(struct vdpa_device *vdev);
235 u8 (*get_status)(struct vdpa_device *vdev);
236 void (*set_status)(struct vdpa_device *vdev, u8 status);
237 size_t (*get_config_size)(struct vdpa_device *vdev);
234 void (*get_config)(struct vdpa_device *vdev, unsigned int offset,
235 void *buf, unsigned int len);
236 void (*set_config)(struct vdpa_device *vdev, unsigned int offset,
237 const void *buf, unsigned int len);
238 u32 (*get_generation)(struct vdpa_device *vdev);
239 struct vdpa_iova_range (*get_iova_range)(struct vdpa_device *vdev);
240
241 /* DMA ops */

--- 134 unchanged lines hidden ---
238 void (*get_config)(struct vdpa_device *vdev, unsigned int offset,
239 void *buf, unsigned int len);
240 void (*set_config)(struct vdpa_device *vdev, unsigned int offset,
241 const void *buf, unsigned int len);
242 u32 (*get_generation)(struct vdpa_device *vdev);
243 struct vdpa_iova_range (*get_iova_range)(struct vdpa_device *vdev);
244
245 /* DMA ops */

--- 134 unchanged lines hidden ---