Annotation of Net2/arch/vax/if/if_ix.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1986 Regents of the University of California.
        !             3:  * All rights reserved.
        !             4:  *
        !             5:  * This code is derived from software contributed to Berkeley by
        !             6:  * Micom-Interlan Inc.
        !             7:  *
        !             8:  * Redistribution and use in source and binary forms, with or without
        !             9:  * modification, are permitted provided that the following conditions
        !            10:  * are met:
        !            11:  * 1. Redistributions of source code must retain the above copyright
        !            12:  *    notice, this list of conditions and the following disclaimer.
        !            13:  * 2. Redistributions in binary form must reproduce the above copyright
        !            14:  *    notice, this list of conditions and the following disclaimer in the
        !            15:  *    documentation and/or other materials provided with the distribution.
        !            16:  * 3. All advertising materials mentioning features or use of this software
        !            17:  *    must display the following acknowledgement:
        !            18:  *     This product includes software developed by the University of
        !            19:  *     California, Berkeley and its contributors.
        !            20:  * 4. Neither the name of the University nor the names of its contributors
        !            21:  *    may be used to endorse or promote products derived from this software
        !            22:  *    without specific prior written permission.
        !            23:  *
        !            24:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
        !            25:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            26:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            27:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
        !            28:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            29:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            30:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            31:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            32:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            33:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            34:  * SUCH DAMAGE.
        !            35:  *
        !            36:  *     @(#)if_ix.h     7.3 (Berkeley) 6/28/90
        !            37:  */
        !            38: 
        !            39: union ix_stats {
        !            40:        struct {                                /* General statistics below */
        !            41:                u_char  macg_physaddr[6];
        !            42:                u_short macg_pad;
        !            43:                u_long  dlag_rcvmac;    /* packets received by DLA from MAC */
        !            44:                u_long  dlag_rcvpass;   /* packets passed to users by DLA */
        !            45:                u_long  dlag_txreq;     /* packets sent by users to DLA */
        !            46:                u_long  dlag_txsnt;     /* packets sent by DLA to MAC */
        !            47:                u_short dlag_chaopn;    /* channels open */
        !            48:                u_short dlag_maxopn;    /* max channels opened concurrently */
        !            49:                u_long  macg_frmtos;    /* packets discarded by MAC */
        !            50:                u_long  macg_frmpas;    /* packets sent to DLA by MAC */
        !            51:                u_long  macg_x2x;       /* packets put on wire by MAC */
        !            52:                u_long  macg_x2r;       /* packets looped by MAC */
        !            53:                u_long  macg_xrty;      /* transmitter retries */
        !            54:                u_short macg_noap;      /* open MAC paths */
        !            55:                u_short macg_nprom;     /* open promiscuous paths */
        !            56:                u_short macg_conopn;    /* max concurrent MAC paths */
        !            57:                u_short sysg_crce;      /* CRC errors */
        !            58:                u_short sysg_alne;      /* alignment errors */
        !            59:                u_short sysg_rsce;      /* resource errors */
        !            60:                u_short sysg_ovre;      /* overrun errors */
        !            61:        } ixg;
        !            62:        struct {                        /* Channel statistics below */
        !            63:                u_long  dabc_rcvacc;    /* packets received */
        !            64:                u_long  dabc_rcvtoss;   /* packets discarded, queue full */
        !            65:                u_long  dabc_rcvpass;   /* packets passed to user */
        !            66:                u_long  dabc_txreq;     /* packets sent by  user */
        !            67:                u_long  dabc_txsent;    /* packets sent to MAC */
        !            68:                u_long  macc_rcvcnt;    /* packets received by MAC */
        !            69:                u_long  macc_txtcnt;    /* packets sent by MAC to wire */
        !            70:                u_long  macc_lowmem;    /* packets discarded, no mem  */
        !            71:        } ixc;
        !            72: };
        !            73: #define IXC_MAP(a)     (((a) << 6) | 0100077)
        !            74: 
        !            75: #define IXC_OPEN       IXC_MAP(1)              /* Open Channel */
        !            76: #define IXC_CLOSE      IXC_MAP(2)              /* Close Channel */
        !            77: #define IXC_MCAST      IXC_MAP(3)              /* Set Multicast Addresses */
        !            78: #define IXC_RECV       IXC_MAP(4)              /* Receive Frame */
        !            79: #define IXC_RECVF      IXC_MAP(5)              /* Receive Fragment */
        !            80: #define IXC_XMIT       IXC_MAP(6)              /* Send Frame */
        !            81: #define IXC_GSTAT      IXC_MAP(7)              /* Get General Statistics */
        !            82: #define IXC_CSTAT      IXC_MAP(8)              /* Get Channel Statistics */
        !            83: #define IXC_GSCLR      IXC_MAP(9)              /* Clear General Statistics */
        !            84: #define IXC_CSCLR      IXC_MAP(10)             /* Clear Channel Statistics */
        !            85: #define IXC_RESET      IXC_MAP(11)             /* Reset DLA module */
        !            86: #define IXC_LDPA       IXC_MAP(12)             /* Load Physical Address */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.