149472Sbrian/*-
249472Sbrian * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
349472Sbrian * All rights reserved.
449472Sbrian *
549472Sbrian * Redistribution and use in source and binary forms, with or without
649472Sbrian * modification, are permitted provided that the following conditions
749472Sbrian * are met:
849472Sbrian * 1. Redistributions of source code must retain the above copyright
949472Sbrian *    notice, this list of conditions and the following disclaimer.
1049472Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1149472Sbrian *    notice, this list of conditions and the following disclaimer in the
1249472Sbrian *    documentation and/or other materials provided with the distribution.
1349472Sbrian *
1449472Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1549472Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1649472Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1749472Sbrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1849472Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1949472Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2049472Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2149472Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2249472Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2349472Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2449472Sbrian * SUCH DAMAGE.
2549472Sbrian *
2650479Speter * $FreeBSD$
2749472Sbrian */
2849472Sbrian
2949472Sbrianstruct physical;
3049472Sbrianstruct device;
3149472Sbrian
3253733Sbrian#define DEF_I4BCDDELAY	6		/* Default ``set cd'' value */
3353733Sbrian
3449472Sbrianextern struct device *i4b_Create(struct physical *);
3549472Sbrianextern struct device *i4b_iov2device(int, struct physical *,
3652942Sbrian                                     struct iovec *, int *, int, int *, int *);
37134789Sbrianextern unsigned i4b_DeviceSize(void);
38