11a992bbaSAndre Przywara #ifndef _LINUX_VIRTIO_9P_H 21a992bbaSAndre Przywara #define _LINUX_VIRTIO_9P_H 31a992bbaSAndre Przywara /* This header is BSD licensed so anyone can use the definitions to implement 41a992bbaSAndre Przywara * compatible drivers/servers. 51a992bbaSAndre Przywara * 61a992bbaSAndre Przywara * Redistribution and use in source and binary forms, with or without 71a992bbaSAndre Przywara * modification, are permitted provided that the following conditions 81a992bbaSAndre Przywara * are met: 91a992bbaSAndre Przywara * 1. Redistributions of source code must retain the above copyright 101a992bbaSAndre Przywara * notice, this list of conditions and the following disclaimer. 111a992bbaSAndre Przywara * 2. Redistributions in binary form must reproduce the above copyright 121a992bbaSAndre Przywara * notice, this list of conditions and the following disclaimer in the 131a992bbaSAndre Przywara * documentation and/or other materials provided with the distribution. 141a992bbaSAndre Przywara * 3. Neither the name of IBM nor the names of its contributors 151a992bbaSAndre Przywara * may be used to endorse or promote products derived from this software 161a992bbaSAndre Przywara * without specific prior written permission. 171a992bbaSAndre Przywara * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND 181a992bbaSAndre Przywara * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191a992bbaSAndre Przywara * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201a992bbaSAndre Przywara * ARE DISCLAIMED. IN NO EVENT SHALL IBM OR CONTRIBUTORS BE LIABLE 211a992bbaSAndre Przywara * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 221a992bbaSAndre Przywara * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 231a992bbaSAndre Przywara * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 241a992bbaSAndre Przywara * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 251a992bbaSAndre Przywara * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 261a992bbaSAndre Przywara * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 271a992bbaSAndre Przywara * SUCH DAMAGE. */ 281a992bbaSAndre Przywara #include <linux/virtio_types.h> 291a992bbaSAndre Przywara #include <linux/virtio_ids.h> 301a992bbaSAndre Przywara #include <linux/virtio_config.h> 311a992bbaSAndre Przywara 321a992bbaSAndre Przywara /* The feature bitmap for virtio 9P */ 331a992bbaSAndre Przywara 341a992bbaSAndre Przywara /* The mount point is specified in a config variable */ 351a992bbaSAndre Przywara #define VIRTIO_9P_MOUNT_TAG 0 361a992bbaSAndre Przywara 371a992bbaSAndre Przywara struct virtio_9p_config { 381a992bbaSAndre Przywara /* length of the tag name */ 391a992bbaSAndre Przywara __virtio16 tag_len; 401a992bbaSAndre Przywara /* non-NULL terminated tag name */ 41*8d0facecSAnup Patel __u8 tag[]; 421a992bbaSAndre Przywara } __attribute__((packed)); 431a992bbaSAndre Przywara 441a992bbaSAndre Przywara #endif /* _LINUX_VIRTIO_9P_H */ 45