OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [include/] [net/] [if_mib.h] - Diff between revs 148 and 158

Only display areas with differences | Details | Blame | View Log

Rev 148 Rev 158
/*
/*
 * Copyright 1996 Massachusetts Institute of Technology
 * Copyright 1996 Massachusetts Institute of Technology
 *
 *
 * Permission to use, copy, modify, and distribute this software and
 * Permission to use, copy, modify, and distribute this software and
 * its documentation for any purpose and without fee is hereby
 * its documentation for any purpose and without fee is hereby
 * granted, provided that both the above copyright notice and this
 * granted, provided that both the above copyright notice and this
 * permission notice appear in all copies, that both the above
 * permission notice appear in all copies, that both the above
 * copyright notice and this permission notice appear in all
 * copyright notice and this permission notice appear in all
 * supporting documentation, and that the name of M.I.T. not be used
 * supporting documentation, and that the name of M.I.T. not be used
 * in advertising or publicity pertaining to distribution of the
 * in advertising or publicity pertaining to distribution of the
 * software without specific, written prior permission.  M.I.T. makes
 * software without specific, written prior permission.  M.I.T. makes
 * no representations about the suitability of this software for any
 * no representations about the suitability of this software for any
 * purpose.  It is provided "as is" without express or implied
 * purpose.  It is provided "as is" without express or implied
 * warranty.
 * warranty.
 *
 *
 * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''.  M.I.T. DISCLAIMS
 * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''.  M.I.T. DISCLAIMS
 * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
 * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * SUCH DAMAGE.
 *
 *
 * $FreeBSD: src/sys/net/if_mib.h,v 1.6 1999/08/28 00:48:19 peter Exp $
 * $FreeBSD: src/sys/net/if_mib.h,v 1.6 1999/08/28 00:48:19 peter Exp $
 */
 */
 
 
#ifndef _NET_IF_MIB_H
#ifndef _NET_IF_MIB_H
#define _NET_IF_MIB_H   1
#define _NET_IF_MIB_H   1
 
 
struct ifmibdata {
struct ifmibdata {
        char    ifmd_name[IFNAMSIZ]; /* name of interface */
        char    ifmd_name[IFNAMSIZ]; /* name of interface */
        int     ifmd_pcount;    /* number of promiscuous listeners */
        int     ifmd_pcount;    /* number of promiscuous listeners */
        int     ifmd_flags;     /* interface flags */
        int     ifmd_flags;     /* interface flags */
        int     ifmd_snd_len;   /* instantaneous length of send queue */
        int     ifmd_snd_len;   /* instantaneous length of send queue */
        int     ifmd_snd_maxlen; /* maximum length of send queue */
        int     ifmd_snd_maxlen; /* maximum length of send queue */
        int     ifmd_snd_drops; /* number of drops in send queue */
        int     ifmd_snd_drops; /* number of drops in send queue */
        int     ifmd_filler[4]; /* for future expansion */
        int     ifmd_filler[4]; /* for future expansion */
        struct  if_data ifmd_data; /* generic information and statistics */
        struct  if_data ifmd_data; /* generic information and statistics */
};
};
 
 
/*
/*
 * sysctl MIB tags at the net.link.generic level
 * sysctl MIB tags at the net.link.generic level
 */
 */
#define IFMIB_SYSTEM    1       /* non-interface-specific */
#define IFMIB_SYSTEM    1       /* non-interface-specific */
#define IFMIB_IFDATA    2       /* per-interface data table */
#define IFMIB_IFDATA    2       /* per-interface data table */
 
 
/*
/*
 * MIB tags for the various net.link.generic.ifdata tables
 * MIB tags for the various net.link.generic.ifdata tables
 */
 */
#define IFDATA_GENERAL  1       /* generic stats for all kinds of ifaces */
#define IFDATA_GENERAL  1       /* generic stats for all kinds of ifaces */
#define IFDATA_LINKSPECIFIC     2 /* specific to the type of interface */
#define IFDATA_LINKSPECIFIC     2 /* specific to the type of interface */
 
 
/*
/*
 * MIB tags at the net.link.generic.system level
 * MIB tags at the net.link.generic.system level
 */
 */
#define IFMIB_IFCOUNT   1       /* number of interfaces configured */
#define IFMIB_IFCOUNT   1       /* number of interfaces configured */
 
 
/*
/*
 * MIB tags as the net.link level
 * MIB tags as the net.link level
 * All of the other values are IFT_* names defined in if_types.h.
 * All of the other values are IFT_* names defined in if_types.h.
 */
 */
#define NETLINK_GENERIC 0        /* functions not specific to a type of iface */
#define NETLINK_GENERIC 0        /* functions not specific to a type of iface */
 
 
/*
/*
 * The reason why the IFDATA_LINKSPECIFIC stuff is not under the
 * The reason why the IFDATA_LINKSPECIFIC stuff is not under the
 * net.link.<iftype> branches is twofold:
 * net.link.<iftype> branches is twofold:
 *   1) It's easier to code this way, and doesn't require duplication.
 *   1) It's easier to code this way, and doesn't require duplication.
 *   2) The fourth level under net.link.<iftype> is <pf>; that is to say,
 *   2) The fourth level under net.link.<iftype> is <pf>; that is to say,
 *      the net.link.<iftype> tree instruments the adaptation layers between
 *      the net.link.<iftype> tree instruments the adaptation layers between
 *      <iftype> and a particular protocol family (e.g., net.link.ether.inet
 *      <iftype> and a particular protocol family (e.g., net.link.ether.inet
 *      instruments ARP).  This does not really leave room for anything else
 *      instruments ARP).  This does not really leave room for anything else
 *      that needs to have a well-known number.
 *      that needs to have a well-known number.
 */
 */
 
 
/*
/*
 * Link-specific MIB structures for various link types.
 * Link-specific MIB structures for various link types.
 */
 */
 
 
/* For IFT_ETHER, IFT_ISO88023, and IFT_STARLAN, as used by RFC 1650 */
/* For IFT_ETHER, IFT_ISO88023, and IFT_STARLAN, as used by RFC 1650 */
struct ifmib_iso_8802_3 {
struct ifmib_iso_8802_3 {
        u_int32_t       dot3StatsAlignmentErrors;
        u_int32_t       dot3StatsAlignmentErrors;
        u_int32_t       dot3StatsFCSErrors;
        u_int32_t       dot3StatsFCSErrors;
        u_int32_t       dot3StatsSingleCollisionFrames;
        u_int32_t       dot3StatsSingleCollisionFrames;
        u_int32_t       dot3StatsMultipleCollisionFrames;
        u_int32_t       dot3StatsMultipleCollisionFrames;
        u_int32_t       dot3StatsSQETestErrors;
        u_int32_t       dot3StatsSQETestErrors;
        u_int32_t       dot3StatsDeferredTransmissions;
        u_int32_t       dot3StatsDeferredTransmissions;
        u_int32_t       dot3StatsLateCollisions;
        u_int32_t       dot3StatsLateCollisions;
        u_int32_t       dot3StatsExcessiveCollisions;
        u_int32_t       dot3StatsExcessiveCollisions;
        u_int32_t       dot3StatsInternalMacTransmitErrors;
        u_int32_t       dot3StatsInternalMacTransmitErrors;
        u_int32_t       dot3StatsCarrierSenseErrors;
        u_int32_t       dot3StatsCarrierSenseErrors;
        u_int32_t       dot3StatsFrameTooLongs;
        u_int32_t       dot3StatsFrameTooLongs;
        u_int32_t       dot3StatsInternalMacReceiveErrors;
        u_int32_t       dot3StatsInternalMacReceiveErrors;
        u_int32_t       dot3StatsEtherChipSet;
        u_int32_t       dot3StatsEtherChipSet;
        /* Matt Thomas wants this one, not included in RFC 1650: */
        /* Matt Thomas wants this one, not included in RFC 1650: */
        u_int32_t       dot3StatsMissedFrames;
        u_int32_t       dot3StatsMissedFrames;
 
 
        u_int32_t       dot3StatsCollFrequencies[16]; /* NB: index origin */
        u_int32_t       dot3StatsCollFrequencies[16]; /* NB: index origin */
 
 
        u_int32_t       dot3Compliance;
        u_int32_t       dot3Compliance;
#define DOT3COMPLIANCE_STATS    1
#define DOT3COMPLIANCE_STATS    1
#define DOT3COMPLIANCE_COLLS    2
#define DOT3COMPLIANCE_COLLS    2
};
};
 
 
/*
/*
 * Chipset identifiers are normally part of the vendor's enterprise MIB.
 * Chipset identifiers are normally part of the vendor's enterprise MIB.
 * However, we don't want to be trying to represent arbitrary-length
 * However, we don't want to be trying to represent arbitrary-length
 * OBJECT IDENTIFIERs here (ick!), and the right value is not necessarily
 * OBJECT IDENTIFIERs here (ick!), and the right value is not necessarily
 * obvious to the driver implementor.  So, we define our own identification
 * obvious to the driver implementor.  So, we define our own identification
 * mechanism here, and let the agent writer deal with the translation.
 * mechanism here, and let the agent writer deal with the translation.
 */
 */
#define DOT3CHIPSET_VENDOR(x)   ((x) >> 16)
#define DOT3CHIPSET_VENDOR(x)   ((x) >> 16)
#define DOT3CHIPSET_PART(x)     ((x) & 0xffff)
#define DOT3CHIPSET_PART(x)     ((x) & 0xffff)
#define DOT3CHIPSET(v,p)        (((v) << 16) + ((p) & 0xffff))
#define DOT3CHIPSET(v,p)        (((v) << 16) + ((p) & 0xffff))
 
 
/* Driver writers!  Add your vendors here! */
/* Driver writers!  Add your vendors here! */
enum dot3Vendors {
enum dot3Vendors {
        dot3VendorAMD = 1,
        dot3VendorAMD = 1,
        dot3VendorIntel = 2,
        dot3VendorIntel = 2,
        dot3VendorNational = 4,
        dot3VendorNational = 4,
        dot3VendorFujitsu = 5,
        dot3VendorFujitsu = 5,
        dot3VendorDigital = 6,
        dot3VendorDigital = 6,
        dot3VendorWesternDigital = 7
        dot3VendorWesternDigital = 7
};
};
 
 
/* Driver writers!  Add your chipsets here! */
/* Driver writers!  Add your chipsets here! */
enum {
enum {
        dot3ChipSetAMD7990 = 1,
        dot3ChipSetAMD7990 = 1,
        dot3ChipSetAMD79900 = 2,
        dot3ChipSetAMD79900 = 2,
        dot3ChipSetAMD79C940 = 3
        dot3ChipSetAMD79C940 = 3
};
};
 
 
enum {
enum {
        dot3ChipSetIntel82586 = 1,
        dot3ChipSetIntel82586 = 1,
        dot3ChipSetIntel82596 = 2,
        dot3ChipSetIntel82596 = 2,
        dot3ChipSetIntel82557 = 3
        dot3ChipSetIntel82557 = 3
};
};
 
 
enum {
enum {
        dot3ChipSetNational8390 = 1,
        dot3ChipSetNational8390 = 1,
        dot3ChipSetNationalSonic = 2
        dot3ChipSetNationalSonic = 2
};
};
 
 
enum {
enum {
        dot3ChipSetFujitsu86950 = 1
        dot3ChipSetFujitsu86950 = 1
};
};
 
 
enum {
enum {
        dot3ChipSetDigitalDC21040 = 1,
        dot3ChipSetDigitalDC21040 = 1,
        dot3ChipSetDigitalDC21140 = 2,
        dot3ChipSetDigitalDC21140 = 2,
        dot3ChipSetDigitalDC21041 = 3,
        dot3ChipSetDigitalDC21041 = 3,
        dot3ChipSetDigitalDC21140A = 4,
        dot3ChipSetDigitalDC21140A = 4,
        dot3ChipSetDigitalDC21142 = 5
        dot3ChipSetDigitalDC21142 = 5
};
};
 
 
enum {
enum {
        dot3ChipSetWesternDigital83C690 = 1,
        dot3ChipSetWesternDigital83C690 = 1,
        dot3ChipSetWesternDigital83C790 = 2
        dot3ChipSetWesternDigital83C790 = 2
};
};
/* END of Ethernet-link MIB stuff */
/* END of Ethernet-link MIB stuff */
 
 
/*
/*
 * Put other types of interface MIBs here, or in interface-specific
 * Put other types of interface MIBs here, or in interface-specific
 * header files if convenient ones already exist.
 * header files if convenient ones already exist.
 */
 */
#endif /* _NET_IF_MIB_H */
#endif /* _NET_IF_MIB_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.