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

##### Macros

    ECRDOFF           X
    ECRHBF            X
    ECRLBF            X
    ECTBF             X
    EC_ADATA          X
    EC_AROM           X
    EC_ASTEP          X
    EC_AWCLK          X
    EC_CLEAR          X
    EC_JAM            X
    EC_JCLR           X
    EC_JINTEN         X
    EC_MDISAB         X
    EC_PE             X
    EC_PIE            X
    EC_RBITS          X
    EC_RBN            X
    EC_RCLR           X
    EC_RDONE          X
    EC_READ           X
    EC_RINTEN         X
    EC_RWBN           X
    EC_SPIE           X
    EC_UECLR          X
    EC_WRITE          X
    EC_XBITS          X
    EC_XBN            X
    EC_XCLR           X
    EC_XDONE          X
    EC_XINTEN         X
    EC_XWBN           X

##### struct's

    ecdevice          X

       1: /*
       2:  * Copyright (c) 1982, 1986 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)if_ecreg.h	7.1 (Berkeley) 6/5/86
       7:  */
       8:
       9: /*
      10:  * 3Com Ethernet controller registers.
      11:  */
      12: struct ecdevice {
      13:     short   ec_rcr;     /* Receive Control Register */
      14:     short   ec_xcr;     /* Transmit Control Register */
      15: };
      16:
      17: /*
      18:  * Control and status bits -- rcr
      19:  */
      20: #define EC_SPIE     0x8000      /* set parity interrupt enable */
      21: #define EC_ASTEP    0x4000      /* increment address counter */
      22: #define EC_AROM     0x2000      /* 1: Use address ROM, 0: use RAM */
      23: #define EC_PE       0x2000      /* Parity error */
      24: #define EC_AWCLK    0x1000      /* address write clock bit */
      25: #define EC_PIE      0x1000      /* Parity interrupt enable (read) */
      26: #define EC_ADATA    0x0f00      /* address/filtering */
      27: #define EC_RDONE    0x0080      /* receive done */
      28: #define EC_MDISAB   0x0080      /* memory disable */
      29: #define EC_RINTEN   0x0040      /* receive interrupt enable */
      30: #define EC_RCLR     0x0020      /* clear RDONE bit */
      31: #define EC_RWBN     0x0010      /* submit buffer for receive */
      32: #define EC_RBN      0x000f      /* buffer number */
      33:
      34: #define EC_RBITS    "\10\16PE\15PIE\10RDONE\7RINTEN"
      35:
      36: /*
      37:  * Control and status bits -- xcr
      38:  */
      39: #define EC_JAM      0x8000      /* collision dectected */
      40: #define EC_JINTEN   0x4000      /* collision interrupt enable */
      41: #define EC_JCLR     0x2000      /* clear collision detect */
      42: #define EC_UECLR    0x0100      /* reset controller */
      43: #define EC_XDONE    0x0080      /* transmit done */
      44: #define EC_XINTEN   0x0040      /* transmit interrupt enable */
      45: #define EC_XCLR     0x0020      /* clear XDONE bit */
      46: #define EC_XWBN     0x0010      /* submit buffer for transmit */
      47: #define EC_XBN      0x000f      /* buffer number */
      48:
      49: #define EC_XBITS    "\10\20JAM\17JINTEN\10XDONE\7XINTEN"
      50:
      51: /*
      52:  * Useful combinations
      53:  */
      54: #define EC_READ     (0x600|EC_RINTEN|EC_RWBN)
      55: #define EC_WRITE    (EC_JINTEN|EC_XINTEN|EC_XWBN)
      56: #define EC_CLEAR    (EC_JINTEN|EC_XINTEN|EC_JCLR)
      57:
      58: /*
      59:  * Buffer number definitions
      60:  */
      61: #define ECTBF       0       /* Buffer for transmit */
      62: #define ECRLBF      1       /* First buffer for receive */
      63: #define ECRHBF      15      /* Last buffer for receive */
      64:
      65: #define ECRDOFF     528     /* Packet offset in read buffer */

#### Defined struct's

ecdevice defined in line 12; never used

#### Defined macros

ECRDOFF defined in line 65; never used
ECRHBF defined in line 63; never used
ECRLBF defined in line 62; never used
ECTBF defined in line 61; never used
EC_ADATA defined in line 26; never used
EC_AROM defined in line 22; never used
EC_ASTEP defined in line 21; never used
EC_AWCLK defined in line 24; never used
EC_CLEAR defined in line 56; never used
EC_JAM defined in line 39; never used
EC_JCLR defined in line 41; used 1 times

- in line 56

EC_JINTEN defined in line 40; used 2 times

- in line 55-56(2)

EC_MDISAB defined in line 28; never used
EC_PE defined in line 23; never used
EC_PIE defined in line 25; never used
EC_RBITS defined in line 34; never used
EC_RBN defined in line 32; never used
EC_RCLR defined in line 30; never used
EC_RDONE defined in line 27; never used
EC_READ defined in line 54; never used
EC_RINTEN defined in line 29; used 1 times

- in line 54

EC_RWBN defined in line 31; used 1 times

- in line 54

EC_SPIE defined in line 20; never used
EC_UECLR defined in line 42; never used
EC_WRITE defined in line 55; never used
EC_XBITS defined in line 49; never used
EC_XBN defined in line 47; never used
EC_XCLR defined in line 45; never used
EC_XDONE defined in line 43; never used
EC_XINTEN defined in line 44; used 2 times

- in line 55-56(2)

EC_XWBN defined in line 46; used 1 times

- in line 55

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