OpenCores
URL https://opencores.org/ocsvn/hf-risc/hf-risc/trunk

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [linux-headers/] [include/] [linux/] [mic_ioctl.h] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
/*
2
 * Intel MIC Platform Software Stack (MPSS)
3
 *
4
 * Copyright(c) 2013 Intel Corporation.
5
 *
6
 * This program is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License, version 2, as
8
 * published by the Free Software Foundation.
9
 *
10
 * This program is distributed in the hope that it will be useful, but
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
 * General Public License for more details.
14
 *
15
 * The full GNU General Public License is included in this distribution in
16
 * the file called "COPYING".
17
 *
18
 * Intel MIC Host driver.
19
 *
20
 */
21
#ifndef _MIC_IOCTL_H_
22
#define _MIC_IOCTL_H_
23
 
24
#include <linux/types.h>
25
 
26
/*
27
 * mic_copy - MIC virtio descriptor copy.
28
 *
29
 * @iov: An array of IOVEC structures containing user space buffers.
30
 * @iovcnt: Number of IOVEC structures in iov.
31
 * @vr_idx: The vring index.
32
 * @update_used: A non zero value results in used index being updated.
33
 * @out_len: The aggregate of the total length written to or read from
34
 *      the virtio device.
35
 */
36
struct mic_copy_desc {
37
        struct iovec *iov;
38
        __u32 iovcnt;
39
        __u8 vr_idx;
40
        __u8 update_used;
41
        __u32 out_len;
42
};
43
 
44
/*
45
 * Add a new virtio device
46
 * The (struct mic_device_desc *) pointer points to a device page entry
47
 *      for the virtio device consisting of:
48
 *      - struct mic_device_desc
49
 *      - struct mic_vqconfig (num_vq of these)
50
 *      - host and guest features
51
 *      - virtio device config space
52
 * The total size referenced by the pointer should equal the size returned
53
 * by desc_size() in mic_common.h
54
 */
55
#define MIC_VIRTIO_ADD_DEVICE _IOWR('s', 1, struct mic_device_desc *)
56
 
57
/*
58
 * Copy the number of entries in the iovec and update the used index
59
 * if requested by the user.
60
 */
61
#define MIC_VIRTIO_COPY_DESC    _IOWR('s', 2, struct mic_copy_desc *)
62
 
63
/*
64
 * Notify virtio device of a config change
65
 * The (__u8 *) pointer points to config space values for the device
66
 * as they should be written into the device page. The total size
67
 * referenced by the pointer should equal the config_len field of struct
68
 * mic_device_desc.
69
 */
70
#define MIC_VIRTIO_CONFIG_CHANGE _IOWR('s', 5, __u8 *)
71
 
72
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.