xref: /OK3568_Linux_fs/kernel/include/uapi/linux/virtio_9p.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun #ifndef _LINUX_VIRTIO_9P_H
2*4882a593Smuzhiyun #define _LINUX_VIRTIO_9P_H
3*4882a593Smuzhiyun /* This header is BSD licensed so anyone can use the definitions to implement
4*4882a593Smuzhiyun  * compatible drivers/servers.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Redistribution and use in source and binary forms, with or without
7*4882a593Smuzhiyun  * modification, are permitted provided that the following conditions
8*4882a593Smuzhiyun  * are met:
9*4882a593Smuzhiyun  * 1. Redistributions of source code must retain the above copyright
10*4882a593Smuzhiyun  *    notice, this list of conditions and the following disclaimer.
11*4882a593Smuzhiyun  * 2. Redistributions in binary form must reproduce the above copyright
12*4882a593Smuzhiyun  *    notice, this list of conditions and the following disclaimer in the
13*4882a593Smuzhiyun  *    documentation and/or other materials provided with the distribution.
14*4882a593Smuzhiyun  * 3. Neither the name of IBM nor the names of its contributors
15*4882a593Smuzhiyun  *    may be used to endorse or promote products derived from this software
16*4882a593Smuzhiyun  *    without specific prior written permission.
17*4882a593Smuzhiyun  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
18*4882a593Smuzhiyun  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19*4882a593Smuzhiyun  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20*4882a593Smuzhiyun  * ARE DISCLAIMED.  IN NO EVENT SHALL IBM OR CONTRIBUTORS BE LIABLE
21*4882a593Smuzhiyun  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22*4882a593Smuzhiyun  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23*4882a593Smuzhiyun  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24*4882a593Smuzhiyun  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25*4882a593Smuzhiyun  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26*4882a593Smuzhiyun  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27*4882a593Smuzhiyun  * SUCH DAMAGE. */
28*4882a593Smuzhiyun #include <linux/virtio_types.h>
29*4882a593Smuzhiyun #include <linux/virtio_ids.h>
30*4882a593Smuzhiyun #include <linux/virtio_config.h>
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun /* The feature bitmap for virtio 9P */
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun /* The mount point is specified in a config variable */
35*4882a593Smuzhiyun #define VIRTIO_9P_MOUNT_TAG 0
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun struct virtio_9p_config {
38*4882a593Smuzhiyun 	/* length of the tag name */
39*4882a593Smuzhiyun 	__virtio16 tag_len;
40*4882a593Smuzhiyun 	/* non-NULL terminated tag name */
41*4882a593Smuzhiyun 	__u8 tag[0];
42*4882a593Smuzhiyun } __attribute__((packed));
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun #endif /* _LINUX_VIRTIO_9P_H */
45