1*e97ad33aSDoug Rabson /*- 2*e97ad33aSDoug Rabson * Copyright (c) 2017 Juniper Networks, Inc. 3*e97ad33aSDoug Rabson * All rights reserved. 4*e97ad33aSDoug Rabson * 5*e97ad33aSDoug Rabson * Redistribution and use in source and binary forms, with or without 6*e97ad33aSDoug Rabson * modification, are permitted provided that the following conditions 7*e97ad33aSDoug Rabson * are met: 8*e97ad33aSDoug Rabson * 1. Redistributions of source code must retain the above copyright 9*e97ad33aSDoug Rabson * notice, this list of conditions and the following disclaimer. 10*e97ad33aSDoug Rabson * 2. Redistributions in binary form must reproduce the above copyright 11*e97ad33aSDoug Rabson * notice, this list of conditions and the following disclaimer in the 12*e97ad33aSDoug Rabson * documentation and/or other materials provided with the distribution. 13*e97ad33aSDoug Rabson * 14*e97ad33aSDoug Rabson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15*e97ad33aSDoug Rabson * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16*e97ad33aSDoug Rabson * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17*e97ad33aSDoug Rabson * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18*e97ad33aSDoug Rabson * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19*e97ad33aSDoug Rabson * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20*e97ad33aSDoug Rabson * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21*e97ad33aSDoug Rabson * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22*e97ad33aSDoug Rabson * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23*e97ad33aSDoug Rabson * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24*e97ad33aSDoug Rabson * 25*e97ad33aSDoug Rabson */ 26*e97ad33aSDoug Rabson /* 27*e97ad33aSDoug Rabson * Plan9 filesystem (9P2000.u) protocol definitions. 28*e97ad33aSDoug Rabson */ 29*e97ad33aSDoug Rabson 30*e97ad33aSDoug Rabson #ifndef FS_P9FS_P9FS_PROTO_H 31*e97ad33aSDoug Rabson #define FS_P9FS_P9FS_PROTO_H 32*e97ad33aSDoug Rabson 33*e97ad33aSDoug Rabson //#include <dev/virtio/virtio_fs_9p.h> 34*e97ad33aSDoug Rabson 35*e97ad33aSDoug Rabson /* File permissions */ 36*e97ad33aSDoug Rabson #define P9FS_OREAD 0 37*e97ad33aSDoug Rabson #define P9FS_OWRITE 1 38*e97ad33aSDoug Rabson #define P9FS_ORDWR 2 39*e97ad33aSDoug Rabson #define P9FS_OEXEC 3 40*e97ad33aSDoug Rabson #define P9FS_OTRUNC 0x10 41*e97ad33aSDoug Rabson 42*e97ad33aSDoug Rabson #endif /* FS_P9FS_P9FS_PROTO_H */ 43