# 2.11BSD#431 - /usr/src/sys/vaxif/if_ddnvar.h

##### Macros

    ANSWER            X
    CALL              X
    CLEARLC           X
    CLEARVC           X
    DC_OBUSY          X
    DDNMTU            X
    DDN_OQMAX         X
    DDN_TIMEOUT       X
    DELAY_CNT         X
    FAC_DDNSTD        X
    INTERRUPT         X
    INTR_ACK          X
    LC_CALL_PENDING   X
    LC_CLR_PENDING    X
    LC_DATA_IDLE      X
    LC_DOWN           X
    LC_IDLE           X
    LC_RESTART        X
    LINE_CNTL         X
    LINE_STATUS       X
    LINK_DISABLE      X
    LINK_DOWN         X
    LINK_ENABLE       X
    LINK_LOOPBACK     X
    LINK_UP           X
    LOOP_EXTERNAL     X
    LOOP_INTERNAL     X
    LOOP_OFF          X
    NDDNCH            X
    PKT_SIZE          X
    PKT_WINDOW        X
    READY             X
    RESET             X
    RESET_ACK         X
    RESTART           X
    RING              X
    RSTRT_ACK         X
    SYS_STATUS        X
    TMO_CALL_PENDING  X
    TMO_CLR_PENDING   X
    TMO_DATA_IDLE     X
    TMO_OFF           X
    TMO_RESTART       X
    X25_FACIL_DDN     X
    X25_PROTO_IP      X

##### typedef's

    boolean           X
    byte              X

       1: /*	@(#)if_ddnvar.h	7.1 (Berkeley) 6/5/86 */
       2:
       3:
       4:
       5: /************************************************************************\
       6:
       7:      ________________________________________________________
       8:     /                                                        \
       9:    |          AAA          CCCCCCCCCCCCCC    CCCCCCCCCCCCCC   |
      10:    |         AAAAA        CCCCCCCCCCCCCCCC  CCCCCCCCCCCCCCCC  |
      11:    |        AAAAAAA       CCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCC |
      12:    |       AAAA AAAA      CCCC              CCCC              |
      13:    |      AAAA   AAAA     CCCC              CCCC              |
      14:    |     AAAA     AAAA    CCCC              CCCC              |
      15:    |    AAAA       AAAA   CCCC              CCCC              |
      16:    |   AAAA  AAAAAAAAAAA  CCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCC |
      17:    |  AAAA    AAAAAAAAAAA CCCCCCCCCCCCCCCC  CCCCCCCCCCCCCCCC  |
      18:    | AAAA      AAAAAAAAA   CCCCCCCCCCCCCC    CCCCCCCCCCCCCC   |
      19:     \________________________________________________________/
      20:
      21: 	Copyright (c) 1985 by Advanced Computer Communications
      22: 	720 Santa Barbara Street, Santa Barbara, California  93101
      23: 	(805) 963-9431
      24:
      25: 	This software may be duplicated and used on systems
      26: 	which are licensed to run U.C. Berkeley versions of
      27: 	the UNIX operating system.  Any duplication of any
      28: 	part of this software must include a copy of ACC's
      29: 	copyright notice.
      30:
      31:
      32: File:
      33: 		if_ddnvar.h
      34:
      35: Author:
      36: 		Art Berggreen
      37:
      38: Project:
      39: 		4.2 DDN X.25 network driver
      40:
      41: Function:
      42: 		This file contains definitions used to control and
      43: 		track the status of the ACP625 (IF-11/X25).
      44:
      45: Components:
      46:
      47: Revision History:
      48: 		16-May-1985:	V1.0 - First release.
      49: 				Art Berggreen.
      50:
      51: \************************************************************************/
      52:
      53:
      54: /*	if_ddnvar.h	 V1.0	5/16/85	*/
      55:
      56: /* program parameters */
      57:
      58: #define DDNMTU      1006        /* maximum IP msg length */
      59: #define DDN_OQMAX   8       /* max IP msgs on LCN output q */
      60: #define NDDNCH      32      /* number of X.25 channels */
      61: #define DELAY_CNT   50000
      62: #define DDN_TIMEOUT 10
      63:
      64: #define DC_OBUSY    0x01
      65:
      66: typedef unsigned char   byte;
      67: typedef int     boolean;
      68:
      69: /* X25 LCN state definitions */
      70: #define LC_DOWN        0        /* X25 circuit down		*/
      71: #define LC_RESTART     1        /* X25 circuit restarting	*/
      72: #define LC_IDLE        2        /* X25 circuit not in use	*/
      73: #define LC_CALL_PENDING    3        /* X25 circuit call pending	*/
      74: #define LC_DATA_IDLE       4        /* X25 circuit open		*/
      75: #define LC_CLR_PENDING     5        /* X25 circuit clear pending	*/
      76:
      77: /* Timeout definitions */
      78: #define TMO_OFF        0            /* timer off		*/
      79: #define TMO_RESTART  ( 90/DDN_TIMEOUT)  /* restart timeout	*/
      80: #define TMO_CALL_PENDING (180/DDN_TIMEOUT)  /* call timeout		*/
      81: #define TMO_DATA_IDLE    ( 30/DDN_TIMEOUT)  /* idle circuit timeout	*/
      82: #define TMO_CLR_PENDING  ( 30/DDN_TIMEOUT)  /* clear timeout	*/
      83:
      84: /* Link status codes */
      85: #define LINK_DOWN   0x00        /* Link layer is down		*/
      86: #define LINK_UP     0x01        /* Link layer is up		*/
      87:
      88: /* Line control codes */
      89: #define LINK_DISABLE    0x00        /* Disable link layer		*/
      90: #define LINK_ENABLE 0x01        /* Enable link layer		*/
      91: #define LINK_LOOPBACK   0x42        /* Link layer loopback mode	*/
      92: #define   LOOP_OFF  0x00        /*   Loopback off		*/
      93: #define   LOOP_EXTERNAL 0x01        /*   Loopback external		*/
      94: #define   LOOP_INTERNAL 0x03        /*   Loopback internal		*/
      95: #define PKT_SIZE    0x90        /* Packet size			*/
      96: #define PKT_WINDOW  0x4f        /* Packet window		*/
      97:
      98: /* X25 supervisor message codes */
      99: #define CALL        0x00        /* outgoing call		*/
     100: #define RING        0x01        /* incoming call		*/
     101: #define CLEARVC     0x02        /* clear by VCN			*/
     102: #define ANSWER      0x03        /* answer call			*/
     103: #define CLEARLC     0x04        /* clear by LCN			*/
     104: #define RESET       0x20        /* reset LCN			*/
     105: #define RESET_ACK   0x21        /* reset ack			*/
     106: #define INTERRUPT   0x22        /* X25 interrupt		*/
     107: #define READY       0x23        /* flow control ready		*/
     108: #define INTR_ACK    0x24        /* interrupt ack		*/
     109: #define RESTART     0x40        /* X25 restart			*/
     110: #define RSTRT_ACK   0x41        /* restart ack			*/
     111: #define SYS_STATUS  0x42        /* system status msg		*/
     112: #define LINE_CNTL   0x60        /* link control cmnd		*/
     113: #define LINE_STATUS 0x61        /* link status resp		*/
     114:
     115: /* X25 facilities */
     116: #define X25_FACIL_DDN   0x04        /* DDN mode facility		*/
     117: #define FAC_DDNSTD  0x01        /*   DDN standard mode		*/
     118:
     119: /* X25 protocols */
     120: #define X25_PROTO_IP    0xcc        /* X25 IP protocol type code	*/

#### Defined typedef's

boolean defined in line 67; never used
byte defined in line 66; never used

#### Defined macros

ANSWER defined in line 102; never used
CALL defined in line 99; never used
CLEARLC defined in line 103; never used
CLEARVC defined in line 101; never used
DC_OBUSY defined in line 64; never used
DDNMTU defined in line 58; never used
DDN_OQMAX defined in line 59; never used
DDN_TIMEOUT defined in line 62; used 4 times

- in line 79-82(4)

DELAY_CNT defined in line 61; never used
FAC_DDNSTD defined in line 117; never used
INTERRUPT defined in line 106; never used
INTR_ACK defined in line 108; never used
LC_CALL_PENDING defined in line 73; never used
LC_CLR_PENDING defined in line 75; never used
LC_DATA_IDLE defined in line 74; never used
LC_DOWN defined in line 70; never used
LC_IDLE defined in line 72; never used
LC_RESTART defined in line 71; never used
LINE_CNTL defined in line 112; never used
LINE_STATUS defined in line 113; never used
LINK_DISABLE defined in line 89; never used
LINK_DOWN defined in line 85; never used
LINK_ENABLE defined in line 90; never used
LINK_LOOPBACK defined in line 91; never used
LINK_UP defined in line 86; never used
LOOP_EXTERNAL defined in line 93; never used
LOOP_INTERNAL defined in line 94; never used
LOOP_OFF defined in line 92; never used
NDDNCH defined in line 60; never used
PKT_SIZE defined in line 95; never used
PKT_WINDOW defined in line 96; never used
READY defined in line 107; never used
RESET defined in line 104; never used
RESET_ACK defined in line 105; never used
RESTART defined in line 109; never used
RING defined in line 100; never used
RSTRT_ACK defined in line 110; never used
SYS_STATUS defined in line 111; never used
TMO_CALL_PENDING defined in line 80; never used
TMO_CLR_PENDING defined in line 82; never used
TMO_DATA_IDLE defined in line 81; never used
TMO_OFF defined in line 78; never used
TMO_RESTART defined in line 79; never used
X25_FACIL_DDN defined in line 116; never used
X25_PROTO_IP defined in line 120; never used

Last modified: 1986-06-05 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 308 |