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