xref: /freebsd/usr.sbin/ppp/i4b.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1eb6e5e05SBrian Somers /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
31de7b4b8SPedro F. Giffuni  *
4eb6e5e05SBrian Somers  * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
5eb6e5e05SBrian Somers  * All rights reserved.
6eb6e5e05SBrian Somers  *
7eb6e5e05SBrian Somers  * Redistribution and use in source and binary forms, with or without
8eb6e5e05SBrian Somers  * modification, are permitted provided that the following conditions
9eb6e5e05SBrian Somers  * are met:
10eb6e5e05SBrian Somers  * 1. Redistributions of source code must retain the above copyright
11eb6e5e05SBrian Somers  *    notice, this list of conditions and the following disclaimer.
12eb6e5e05SBrian Somers  * 2. Redistributions in binary form must reproduce the above copyright
13eb6e5e05SBrian Somers  *    notice, this list of conditions and the following disclaimer in the
14eb6e5e05SBrian Somers  *    documentation and/or other materials provided with the distribution.
15eb6e5e05SBrian Somers  *
16eb6e5e05SBrian Somers  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17eb6e5e05SBrian Somers  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18eb6e5e05SBrian Somers  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19eb6e5e05SBrian Somers  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20eb6e5e05SBrian Somers  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21eb6e5e05SBrian Somers  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22eb6e5e05SBrian Somers  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23eb6e5e05SBrian Somers  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24eb6e5e05SBrian Somers  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25eb6e5e05SBrian Somers  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26eb6e5e05SBrian Somers  * SUCH DAMAGE.
27eb6e5e05SBrian Somers  */
28eb6e5e05SBrian Somers 
29eb6e5e05SBrian Somers struct physical;
30eb6e5e05SBrian Somers struct device;
31eb6e5e05SBrian Somers 
32fdc29d54SBrian Somers #define DEF_I4BCDDELAY	6		/* Default ``set cd'' value */
33fdc29d54SBrian Somers 
34eb6e5e05SBrian Somers extern struct device *i4b_Create(struct physical *);
35eb6e5e05SBrian Somers extern struct device *i4b_iov2device(int, struct physical *,
3687c3786eSBrian Somers                                      struct iovec *, int *, int, int *, int *);
37057f1760SBrian Somers extern unsigned i4b_DeviceSize(void);
38