152942Sbrian/*-
2330449Seadler * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3330449Seadler *
452942Sbrian * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
552942Sbrian * All rights reserved.
652942Sbrian *
752942Sbrian * Redistribution and use in source and binary forms, with or without
852942Sbrian * modification, are permitted provided that the following conditions
952942Sbrian * are met:
1052942Sbrian * 1. Redistributions of source code must retain the above copyright
1152942Sbrian *    notice, this list of conditions and the following disclaimer.
1252942Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1352942Sbrian *    notice, this list of conditions and the following disclaimer in the
1452942Sbrian *    documentation and/or other materials provided with the distribution.
1552942Sbrian *
1652942Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1752942Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1852942Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1952942Sbrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2052942Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2152942Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2252942Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2352942Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2452942Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2552942Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2652942Sbrian * SUCH DAMAGE.
2752942Sbrian *
2852942Sbrian * $FreeBSD: stable/11/usr.sbin/ppp/ether.h 330449 2018-03-05 07:26:05Z eadler $
2952942Sbrian */
3052942Sbrian
3152942Sbrianstruct physical;
3252942Sbrianstruct device;
3352942Sbrian
3453733Sbrian#define DEF_ETHERCDDELAY	5	/* Default ``set cd'' value */
3553733Sbrian
3652942Sbrianextern struct device *ether_Create(struct physical *);
3752942Sbrianextern struct device *ether_iov2device(int, struct physical *, struct iovec *,
3852942Sbrian                                       int *, int, int *, int *);
39134789Sbrianextern unsigned ether_DeviceSize(void);
40