1098ca2bdSWarner Losh /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 4bacb482dSWarner Losh * Copyright (c) 2000-2004 5bacb482dSWarner Losh * Diomidis D. Spinellis, Athens, Greece 6bacb482dSWarner Losh * All rights reserved. 7bacb482dSWarner Losh * 8bacb482dSWarner Losh * Redistribution and use in source and binary forms, with or without 9bacb482dSWarner Losh * modification, are permitted provided that the following conditions 10bacb482dSWarner Losh * are met: 11bacb482dSWarner Losh * 1. Redistributions of source code must retain the above copyright 12bacb482dSWarner Losh * notice, this list of conditions and the following disclaimer as 13bacb482dSWarner Losh * the first lines of this file unmodified. 14bacb482dSWarner Losh * 2. Redistributions in binary form must reproduce the above copyright 15bacb482dSWarner Losh * notice, this list of conditions and the following disclaimer in the 16bacb482dSWarner Losh * documentation and/or other materials provided with the distribution. 17bacb482dSWarner Losh * 18bacb482dSWarner Losh * THIS SOFTWARE IS PROVIDED BY Diomidis D. Spinellis ``AS IS'' AND ANY 19bacb482dSWarner Losh * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20bacb482dSWarner Losh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21bacb482dSWarner Losh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Diomidis D. Spinellis BE 22bacb482dSWarner Losh * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23bacb482dSWarner Losh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24bacb482dSWarner Losh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 25bacb482dSWarner Losh * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26bacb482dSWarner Losh * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 27bacb482dSWarner Losh * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 28bacb482dSWarner Losh * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29bacb482dSWarner Losh * 30bacb482dSWarner Losh */ 31bacb482dSWarner Losh 32bacb482dSWarner Losh /* 33bacb482dSWarner Losh * Definitions needed to access the pbio device (ioctls etc) 34bacb482dSWarner Losh */ 35bacb482dSWarner Losh #ifndef SYS_PBIO_H 36bacb482dSWarner Losh #define SYS_PBIO_H 37bacb482dSWarner Losh 38bacb482dSWarner Losh #ifndef KERNEL 39bacb482dSWarner Losh #include <sys/types.h> 40bacb482dSWarner Losh #endif 41bacb482dSWarner Losh #include <sys/ioccom.h> 42bacb482dSWarner Losh 43bacb482dSWarner Losh /* 44bacb482dSWarner Losh * ioctls 45bacb482dSWarner Losh */ 46bacb482dSWarner Losh #define PBIO_SETDIFF _IOW('p', 0x01, int) 47bacb482dSWarner Losh #define PBIO_SETIPACE _IOW('p', 0x02, int) 48bacb482dSWarner Losh #define PBIO_SETOPACE _IOW('p', 0x03, int) 49bacb482dSWarner Losh #define PBIO_GETDIFF _IOR('p', 0x81, int) 50bacb482dSWarner Losh #define PBIO_GETIPACE _IOR('p', 0x82, int) 51bacb482dSWarner Losh #define PBIO_GETOPACE _IOR('p', 0x83, int) 52bacb482dSWarner Losh 53bacb482dSWarner Losh #endif 54