tired of those old printfs
[unix-history] / usr / src / sys / vax / if / if_uba.h
index 549fa69..09c8732 100644 (file)
@@ -1,11 +1,11 @@
-/*     if_uba.h        4.2     81/11/26        */
+/*     if_uba.h        4.5     82/02/03        */
 
 /*
  * Structure and routine definitions
  * for UNIBUS network interfaces.
  */
 
 
 /*
  * Structure and routine definitions
  * for UNIBUS network interfaces.
  */
 
-#define        IF_NUBAMR       6
+#define        IF_MAXNUBAMR    10
 /*
  * Each interface has one of these structures giving information
  * about UNIBUS resources held by the interface.
 /*
  * Each interface has one of these structures giving information
  * about UNIBUS resources held by the interface.
  */
 struct ifuba {
        short   ifu_uban;                       /* uba number */
  */
 struct ifuba {
        short   ifu_uban;                       /* uba number */
+       short   ifu_hlen;                       /* local net header length */
        struct  uba_regs *ifu_uba;              /* uba regs, in vm */
        struct ifrw {
        struct  uba_regs *ifu_uba;              /* uba regs, in vm */
        struct ifrw {
+               caddr_t ifrw_addr;              /* virt addr of header */
+               int     ifrw_bdp;               /* unibus bdp */
                int     ifrw_info;              /* value from ubaalloc */
                int     ifrw_info;              /* value from ubaalloc */
-               short   ifrw_bdp;               /* unibus bdp */
-               struct  pte *ifrw_mr;           /* base of map registers */
                int     ifrw_proto;             /* map register prototype */
                int     ifrw_proto;             /* map register prototype */
-               caddr_t ifrw_addr;              /* virt addr of header */
+               struct  pte *ifrw_mr;           /* base of map registers */
        } ifu_r, ifu_w;
        } ifu_r, ifu_w;
-       struct  pte ifu_wmap[IF_NUBAMR];        /* base pages for output */
-       short   ifu_hlen;
-/* ifu_xswapd is set when we have swapped write pte's to do direct output */
-/* bit i of ifu_xswapd */
-       short   ifu_xswapd;                     /* bit map of pages swapped */
-       int     ifu_ierrors;
-       int     ifu_oerrors;
-       int     ifu_collisions;
+       struct  pte ifu_wmap[IF_MAXNUBAMR];     /* base pages for output */
+       short   ifu_xswapd;                     /* mask of clusters swapped */
+       short   ifu_flags;                      /* used during uballoc's */
+       struct  mbuf *ifu_xtofree;              /* pages being dma'd out */
 };
 
 #ifdef         KERNEL
 };
 
 #ifdef         KERNEL