# 2.11BSD#431 - /usr/src/sys/pdpif/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; used 38 times

- in /usr/src/sys/pdpif/if_ec.c line 121(4), 166(2), 181(2), 213(2), 222(2), 235(4), 266(4), 305(2), 326(4), 338(4), 723-726(4), 795(4)

#### Defined macros

ECRDOFF defined in line 65; used 6 times

- in /usr/src/sys/pdpif/if_ec.c line 358, 374-375(2), 657, 666, 702

ECRHBF defined in line 63; used 5 times

- in /usr/src/sys/pdpif/if_ec.c line 83-85(2), 193, 283, 346

ECRLBF defined in line 62; used 3 times

- in /usr/src/sys/pdpif/if_ec.c line 193, 283, 346

ECTBF defined in line 61; used 3 times

- in /usr/src/sys/pdpif/if_ec.c line 221-223(2), 240

EC_ADATA defined in line 26; never used
EC_AROM defined in line 22; used 3 times

- in /usr/src/sys/pdpif/if_ec.c line 132-134(3)

EC_ASTEP defined in line 21; used 4 times

- in /usr/src/sys/pdpif/if_ec.c line 134, 822, 832, 844

EC_AWCLK defined in line 24; used 2 times

- in /usr/src/sys/pdpif/if_ec.c line 817, 827

EC_CLEAR defined in line 56; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 311

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; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 345

EC_RCLR defined in line 30; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 457

EC_RDONE defined in line 27; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 328

EC_READ defined in line 54; used 3 times

- in /usr/src/sys/pdpif/if_ec.c line 194, 284, 457

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; used 5 times

- in /usr/src/sys/pdpif/if_ec.c line 131, 282, 775, 809, 840

EC_WRITE defined in line 55; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 223

EC_XBITS defined in line 49; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 242

EC_XBN defined in line 47; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 240

EC_XCLR defined in line 45; used 2 times

- in /usr/src/sys/pdpif/if_ec.c line 244, 250

EC_XDONE defined in line 43; used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 240

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

#### Usage of this include

if_ecreg.h used 1 times

- in /usr/src/sys/pdpif/if_ec.c line 77

Last modified: 1987-12-28 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 717 |