Annotation of 43BSDReno/sys/vaxif/if_ix.h, revision 1.1.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 is only permitted until one year after the first shipment
                      9:  * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
                     10:  * binary forms are permitted provided that: (1) source distributions retain
                     11:  * this entire copyright notice and comment, and (2) distributions including
                     12:  * binaries display the following acknowledgement:  This product includes
                     13:  * software developed by the University of California, Berkeley and its
                     14:  * contributors'' in the documentation or other materials provided with the
                     15:  * distribution and in all advertising materials mentioning features or use
                     16:  * of this software.  Neither the name of the University nor the names of
                     17:  * its contributors may be used to endorse or promote products derived from
                     18:  * this software without specific prior written permission.
                     19:  * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     20:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     21:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     22:  *
                     23:  *     @(#)if_ix.h     7.3 (Berkeley) 6/28/90
                     24:  */
                     25: 
                     26: union ix_stats {
                     27:        struct {                                /* General statistics below */
                     28:                u_char  macg_physaddr[6];
                     29:                u_short macg_pad;
                     30:                u_long  dlag_rcvmac;    /* packets received by DLA from MAC */
                     31:                u_long  dlag_rcvpass;   /* packets passed to users by DLA */
                     32:                u_long  dlag_txreq;     /* packets sent by users to DLA */
                     33:                u_long  dlag_txsnt;     /* packets sent by DLA to MAC */
                     34:                u_short dlag_chaopn;    /* channels open */
                     35:                u_short dlag_maxopn;    /* max channels opened concurrently */
                     36:                u_long  macg_frmtos;    /* packets discarded by MAC */
                     37:                u_long  macg_frmpas;    /* packets sent to DLA by MAC */
                     38:                u_long  macg_x2x;       /* packets put on wire by MAC */
                     39:                u_long  macg_x2r;       /* packets looped by MAC */
                     40:                u_long  macg_xrty;      /* transmitter retries */
                     41:                u_short macg_noap;      /* open MAC paths */
                     42:                u_short macg_nprom;     /* open promiscuous paths */
                     43:                u_short macg_conopn;    /* max concurrent MAC paths */
                     44:                u_short sysg_crce;      /* CRC errors */
                     45:                u_short sysg_alne;      /* alignment errors */
                     46:                u_short sysg_rsce;      /* resource errors */
                     47:                u_short sysg_ovre;      /* overrun errors */
                     48:        } ixg;
                     49:        struct {                        /* Channel statistics below */
                     50:                u_long  dabc_rcvacc;    /* packets received */
                     51:                u_long  dabc_rcvtoss;   /* packets discarded, queue full */
                     52:                u_long  dabc_rcvpass;   /* packets passed to user */
                     53:                u_long  dabc_txreq;     /* packets sent by  user */
                     54:                u_long  dabc_txsent;    /* packets sent to MAC */
                     55:                u_long  macc_rcvcnt;    /* packets received by MAC */
                     56:                u_long  macc_txtcnt;    /* packets sent by MAC to wire */
                     57:                u_long  macc_lowmem;    /* packets discarded, no mem  */
                     58:        } ixc;
                     59: };
                     60: #define IXC_MAP(a)     (((a) << 6) | 0100077)
                     61: 
                     62: #define IXC_OPEN       IXC_MAP(1)              /* Open Channel */
                     63: #define IXC_CLOSE      IXC_MAP(2)              /* Close Channel */
                     64: #define IXC_MCAST      IXC_MAP(3)              /* Set Multicast Addresses */
                     65: #define IXC_RECV       IXC_MAP(4)              /* Receive Frame */
                     66: #define IXC_RECVF      IXC_MAP(5)              /* Receive Fragment */
                     67: #define IXC_XMIT       IXC_MAP(6)              /* Send Frame */
                     68: #define IXC_GSTAT      IXC_MAP(7)              /* Get General Statistics */
                     69: #define IXC_CSTAT      IXC_MAP(8)              /* Get Channel Statistics */
                     70: #define IXC_GSCLR      IXC_MAP(9)              /* Clear General Statistics */
                     71: #define IXC_CSCLR      IXC_MAP(10)             /* Clear Channel Statistics */
                     72: #define IXC_RESET      IXC_MAP(11)             /* Reset DLA module */
                     73: #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.