1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Intel MIC Platform Software Stack (MPSS)
5 * Copyright(c) 2013 Intel Corporation.
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
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * The full GNU General Public License is included in this distribution in
17 * the file called "COPYING".
19 * Intel MIC Host driver.
25 #include <linux/types.h>
28 * mic_copy - MIC virtio descriptor copy.
30 * @iov: An array of IOVEC structures containing user space buffers.
31 * @iovcnt: Number of IOVEC structures in iov.
32 * @vr_idx: The vring index.
33 * @update_used: A non zero value results in used index being updated.
34 * @out_len: The aggregate of the total length written to or read from
37 struct mic_copy_desc {
46 * Add a new virtio device
47 * The (struct mic_device_desc *) pointer points to a device page entry
48 * for the virtio device consisting of:
49 * - struct mic_device_desc
50 * - struct mic_vqconfig (num_vq of these)
51 * - host and guest features
52 * - virtio device config space
53 * The total size referenced by the pointer should equal the size returned
54 * by desc_size() in mic_common.h
56 #define MIC_VIRTIO_ADD_DEVICE _IOWR('s', 1, struct mic_device_desc *)
59 * Copy the number of entries in the iovec and update the used index
60 * if requested by the user.
62 #define MIC_VIRTIO_COPY_DESC _IOWR('s', 2, struct mic_copy_desc *)
65 * Notify virtio device of a config change
66 * The (__u8 *) pointer points to config space values for the device
67 * as they should be written into the device page. The total size
68 * referenced by the pointer should equal the config_len field of struct
71 #define MIC_VIRTIO_CONFIG_CHANGE _IOWR('s', 5, __u8 *)