xref: /freebsd/usr.sbin/ppp/ether.h (revision b3e76948)
187c3786eSBrian Somers /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
31de7b4b8SPedro F. Giffuni  *
487c3786eSBrian Somers  * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
587c3786eSBrian Somers  * All rights reserved.
687c3786eSBrian Somers  *
787c3786eSBrian Somers  * Redistribution and use in source and binary forms, with or without
887c3786eSBrian Somers  * modification, are permitted provided that the following conditions
987c3786eSBrian Somers  * are met:
1087c3786eSBrian Somers  * 1. Redistributions of source code must retain the above copyright
1187c3786eSBrian Somers  *    notice, this list of conditions and the following disclaimer.
1287c3786eSBrian Somers  * 2. Redistributions in binary form must reproduce the above copyright
1387c3786eSBrian Somers  *    notice, this list of conditions and the following disclaimer in the
1487c3786eSBrian Somers  *    documentation and/or other materials provided with the distribution.
1587c3786eSBrian Somers  *
1687c3786eSBrian Somers  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1787c3786eSBrian Somers  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1887c3786eSBrian Somers  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1987c3786eSBrian Somers  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2087c3786eSBrian Somers  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2187c3786eSBrian Somers  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2287c3786eSBrian Somers  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2387c3786eSBrian Somers  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2487c3786eSBrian Somers  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2587c3786eSBrian Somers  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2687c3786eSBrian Somers  * SUCH DAMAGE.
2787c3786eSBrian Somers  */
2887c3786eSBrian Somers 
2987c3786eSBrian Somers struct physical;
3087c3786eSBrian Somers struct device;
3187c3786eSBrian Somers 
32fdc29d54SBrian Somers #define DEF_ETHERCDDELAY	5	/* Default ``set cd'' value */
33fdc29d54SBrian Somers 
3487c3786eSBrian Somers extern struct device *ether_Create(struct physical *);
3587c3786eSBrian Somers extern struct device *ether_iov2device(int, struct physical *, struct iovec *,
3687c3786eSBrian Somers                                        int *, int, int *, int *);
37057f1760SBrian Somers extern unsigned ether_DeviceSize(void);
38