xref: /linux/include/uapi/linux/virtio_9p.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1607ca46eSDavid Howells #ifndef _LINUX_VIRTIO_9P_H
2607ca46eSDavid Howells #define _LINUX_VIRTIO_9P_H
3607ca46eSDavid Howells /* This header is BSD licensed so anyone can use the definitions to implement
4607ca46eSDavid Howells  * compatible drivers/servers.
5607ca46eSDavid Howells  *
6607ca46eSDavid Howells  * Redistribution and use in source and binary forms, with or without
7607ca46eSDavid Howells  * modification, are permitted provided that the following conditions
8607ca46eSDavid Howells  * are met:
9607ca46eSDavid Howells  * 1. Redistributions of source code must retain the above copyright
10607ca46eSDavid Howells  *    notice, this list of conditions and the following disclaimer.
11607ca46eSDavid Howells  * 2. Redistributions in binary form must reproduce the above copyright
12607ca46eSDavid Howells  *    notice, this list of conditions and the following disclaimer in the
13607ca46eSDavid Howells  *    documentation and/or other materials provided with the distribution.
14607ca46eSDavid Howells  * 3. Neither the name of IBM nor the names of its contributors
15607ca46eSDavid Howells  *    may be used to endorse or promote products derived from this software
16607ca46eSDavid Howells  *    without specific prior written permission.
17607ca46eSDavid Howells  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
18607ca46eSDavid Howells  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19607ca46eSDavid Howells  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20607ca46eSDavid Howells  * ARE DISCLAIMED.  IN NO EVENT SHALL IBM OR CONTRIBUTORS BE LIABLE
21607ca46eSDavid Howells  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22607ca46eSDavid Howells  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23607ca46eSDavid Howells  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24607ca46eSDavid Howells  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25607ca46eSDavid Howells  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26607ca46eSDavid Howells  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27607ca46eSDavid Howells  * SUCH DAMAGE. */
28cae19a63SMichael S. Tsirkin #include <linux/virtio_types.h>
29607ca46eSDavid Howells #include <linux/virtio_ids.h>
30607ca46eSDavid Howells #include <linux/virtio_config.h>
31607ca46eSDavid Howells 
32607ca46eSDavid Howells /* The feature bitmap for virtio 9P */
33607ca46eSDavid Howells 
34607ca46eSDavid Howells /* The mount point is specified in a config variable */
35607ca46eSDavid Howells #define VIRTIO_9P_MOUNT_TAG 0
36607ca46eSDavid Howells 
37607ca46eSDavid Howells struct virtio_9p_config {
38607ca46eSDavid Howells 	/* length of the tag name */
39cae19a63SMichael S. Tsirkin 	__virtio16 tag_len;
40607ca46eSDavid Howells 	/* non-NULL terminated tag name */
41*94dfc73eSGustavo A. R. Silva 	__u8 tag[];
42607ca46eSDavid Howells } __attribute__((packed));
43607ca46eSDavid Howells 
44607ca46eSDavid Howells #endif /* _LINUX_VIRTIO_9P_H */
45