# 2.11BSD#431 - /usr/src/sys/pdpif/if_uba.h

##### Macros

    IF_MAXNUBAMR      X
    ubarelse          X
    useracc           X

##### struct's

    ifrw              X
    ifuba             X

       1: /*
       2:  * Copyright (c) 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_uba.h	1.2 (2.11BSD GTE) 12/24/92
       7:  */
       8:
       9: /*
      10:  * Structure and routine definitions
      11:  * for UNIBUS network interfaces.
      12:  */
      13:
      14: #define IF_MAXNUBAMR    10
      15: /*
      16:  * Each interface has one of these structures giving information
      17:  * about UNIBUS resources held by the interface.
      18:  *
      19:  * We hold IF_NUBAMR map registers for datagram data, starting
      20:  * at ifr_mr.  Map register ifr_mr[-1] maps the local network header
      21:  * ending on the page boundary.  Bdp's are reserved for read and for
      22:  * write, given by ifr_bdp.  The prototype of the map register for
      23:  * read and for write is saved in ifr_proto.
      24:  *
      25:  * When write transfers are not full pages on page boundaries we just
      26:  * copy the data into the pages mapped on the UNIBUS and start the
      27:  * transfer.  If a write transfer is of a (1024 byte) page on a page
      28:  * boundary, we swap in UNIBUS pte's to reference the pages, and then
      29:  * remap the initial pages (from ifu_wmap) when the transfer completes.
      30:  *
      31:  * When read transfers give whole pages of data to be input, we
      32:  * allocate page frames from a network page list and trade them
      33:  * with the pages already containing the data, mapping the allocated
      34:  * pages to replace the input pages for the next UNIBUS data input.
      35:  */
      36: struct  ifuba {
      37:     short   ifu_hlen;           /* local net header length */
      38:     struct ifrw {
      39:         u_int   ifrw_click;             /* MMU click address */
      40:         u_long  ifrw_info;              /* value from ubaalloc */
      41:     } ifu_r, ifu_w;
      42:     short   ifu_flags;
      43:     struct  mbuf *ifu_xtofree;      /* pages being dma'd out */
      44: };
      45:
      46: #ifdef SUPERVISOR
      47: struct  mbuf *if_rubaget();
      48: #endif
      49: #if defined(KERNEL) && defined(INET)
      50: #define ubarelse(a,b)
      51: #define useracc(a,c,m)      (1)
      52: ubadr_t uballoc(), ubmalloc();
      53: #endif

#### Defined struct's

ifrw defined in line 38; used 14 times

- in /usr/src/sys/pdpif/if_de.c line 263(2), 445(2), 620(2), 918(2), 969(2)
- in /usr/src/sys/pdpif/if_de.h line 61-62(4)

ifuba defined in line 36; used 34 times

- in /usr/src/sys/pdpif/if_acc.c line 66(2)
- in /usr/src/sys/pdpif/if_css.c line 86(2)
- in /usr/src/sys/pdpif/if_dmc.c line 69(2)
- in /usr/src/sys/pdpif/if_en.c line 63(2)
- in /usr/src/sys/pdpif/if_il.c line 91(2)
- in /usr/src/sys/pdpif/if_qe.c line 163-164(4), 806(2), 930(2)
- in /usr/src/sys/pdpif/if_qt.c line 104(2), 783(2), 869(2)
- in /usr/src/sys/pdpif/if_sri.c line 75(2)
- in /usr/src/sys/pdpif/if_uba.c line 36(2), 64(2), 144(2)
- in /usr/src/sys/pdpif/if_vv.c line 130(2)

#### Defined macros

IF_MAXNUBAMR defined in line 14; never used
ubarelse defined in line 50; never used
useracc defined in line 51; used 1 times

- in /usr/src/sys/sys/uipc_syscalls.c line 140

#### Usage of this include

if_uba.h used 13 times

- in /usr/src/sys/pdpif/if_acc.c line 35
- in /usr/src/sys/pdpif/if_css.c line 55
- in /usr/src/sys/pdpif/if_de.h line 27
- in /usr/src/sys/pdpif/if_dmc.c line 34
- in /usr/src/sys/pdpif/if_ec.c line 78
- in /usr/src/sys/pdpif/if_en.c line 30
- in /usr/src/sys/pdpif/if_il.c line 41
- in /usr/src/sys/pdpif/if_qe.c line 143
- in /usr/src/sys/pdpif/if_qt.c line 90
- in /usr/src/sys/pdpif/if_sri.c line 29
- in /usr/src/sys/pdpif/if_uba.c line 29
- in /usr/src/sys/pdpif/if_vv.c line 55
- in /usr/src/sys/sys/uipc_syscalls.c line 26

Last modified: 1992-12-25 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 476 |