1*cdd90ae5She /* $NetBSD: saio.h,v 1.4 2009/03/17 00:35:08 he Exp $ */ 2a3ec1726Swdk 3a3ec1726Swdk /* 4a3ec1726Swdk * Copyright (c) 2000 The NetBSD Foundation, Inc. 5a3ec1726Swdk * All rights reserved. 6a3ec1726Swdk * 7a3ec1726Swdk * This code is derived from software contributed to The NetBSD Foundation 8a3ec1726Swdk * by Wayne Knowles 9a3ec1726Swdk * 10a3ec1726Swdk * Redistribution and use in source and binary forms, with or without 11a3ec1726Swdk * modification, are permitted provided that the following conditions 12a3ec1726Swdk * are met: 13a3ec1726Swdk * 1. Redistributions of source code must retain the above copyright 14a3ec1726Swdk * notice, this list of conditions and the following disclaimer. 15a3ec1726Swdk * 2. Redistributions in binary form must reproduce the above copyright 16a3ec1726Swdk * notice, this list of conditions and the following disclaimer in the 17a3ec1726Swdk * documentation and/or other materials provided with the distribution. 18a3ec1726Swdk * 19a3ec1726Swdk * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20a3ec1726Swdk * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21a3ec1726Swdk * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22a3ec1726Swdk * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23a3ec1726Swdk * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24a3ec1726Swdk * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25a3ec1726Swdk * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26a3ec1726Swdk * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27a3ec1726Swdk * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28a3ec1726Swdk * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29a3ec1726Swdk * POSSIBILITY OF SUCH DAMAGE. 30a3ec1726Swdk */ 31a3ec1726Swdk 3202cdf4d2Sdsl int saioopen(struct open_file*, ...); 33*cdd90ae5She #if !defined(LIBSA_NO_DEV_CLOSE) 3402cdf4d2Sdsl int saioclose(struct open_file*); 35*cdd90ae5She #endif 36*cdd90ae5She #if !defined(LIBSA_NO_DEV_IOCTL) 3702cdf4d2Sdsl int saioioctl(struct open_file*, u_long, void*); 38*cdd90ae5She #endif 3902cdf4d2Sdsl int saiostrategy(void*, int, daddr_t, size_t, void*, size_t*); 40