150472Speter/* 233975Sjdp * Copyright (c) 2001-2003 333975Sjdp * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 433975Sjdp * All rights reserved. 533975Sjdp * 633975Sjdp * Redistribution and use in source and binary forms, with or without 780019Sobrien * modification, are permitted provided that the following conditions 854748Smarcel * are met: 933975Sjdp * 1. Redistributions of source code must retain the above copyright 1084902Sobrien * notice, this list of conditions and the following disclaimer. 1144360Simp * 2. Redistributions in binary form must reproduce the above copyright 1233975Sjdp * notice, this list of conditions and the following disclaimer in the 1333975Sjdp * documentation and/or other materials provided with the distribution. 1433975Sjdp * 1584902Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1633975Sjdp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1784902Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1884902Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1933975Sjdp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2084902Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2133975Sjdp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2233975Sjdp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2333975Sjdp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2484902Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2544360Simp * SUCH DAMAGE. 2684902Sobrien * 2734495Sjdp * Author: Hartmut Brandt <harti@freebsd.org> 2884902Sobrien * 2984902Sobrien * $FreeBSD$ 3084902Sobrien */ 3134495Sjdp 3244360Simpstruct diagif { 3344360Simp TAILQ_ENTRY(diagif) link; 3434495Sjdp char ifname[IFNAMSIZ]; 3534495Sjdp u_int index; 3684902Sobrien struct ifatm_mib mib; 3735709Sjb int phy_present : 1; 3852927Sjb u_int phy_type; 3952927Sjb u_int phy_loopback; 4084902Sobrien char phy_name[100]; 4152927Sjb u_int phy_state; 4252927Sjb u_int phy_carrier; 4352927Sjb struct atmio_vcctable *vtab; 4435709Sjb}; 4535709SjbTAILQ_HEAD(diagif_list, diagif); 4635709Sjbextern struct diagif_list diagif_list; 4734495Sjdp 4835709Sjbvoid diagif_fetch(void); 49void diagif_fetch_vcc(struct diagif *aif, int fd); 50