home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / pcb121.zip / WD03SLIP.INC < prev    next >
Text File  |  1992-01-23  |  5KB  |  125 lines

  1. ;;****************************************************************************
  2. ;;                      declare.inc         declare.inc
  3. ;;****************************************************************************
  4. ;;
  5. ;;  Copyright (C) 1989 Northwestern University, Vance Morrison
  6. ;;
  7. ;;
  8. ;; Permission to view, compile, and modify for LOCAL (intra-organization) 
  9. ;; USE ONLY is hereby granted, provided that this copyright and permission 
  10. ;; notice appear on all copies.  Any other use by permission only.
  11. ;;
  12. ;; Northwestern University makes no representations about the suitability 
  13. ;; of this software for any purpose.  It is provided "as is" without expressed 
  14. ;; or implied warranty.  See the copywrite notice file for complete details.
  15. ;;
  16. ;;*****************************************************************************
  17. ;;
  18. ;; Due to limitations in TURBO ASSEMBLER, we have to compile PCroute in 
  19. ;; pieces.  declare.inc is a 'header' file that constains the declarations
  20. ;; of all compile-time information that is shared among seperately compiled
  21. ;; pieces.  
  22. ;;
  23. ;;  AUTHOR: Vance Morrison  
  24. ;;  DATE:   4/28/89  
  25. ;;****************************************************************************
  26.  
  27.     .MODEL SMALL
  28.  
  29.     JUMPS                       ;; deal with long jump displacements 
  30.                                 ;; automatically
  31.     .CODE                       ;; extablish the default segment
  32.  
  33.     include debug.inc
  34.     include bridge.inc
  35.     include buffer.inc
  36.     include queue.inc
  37.     include if.inc
  38.     include memory.inc
  39.  
  40.     include wd8003e.inc            ;; can be commented out if not used
  41.     include qif.inc
  42.     include slip.inc
  43.     include i8250.inc
  44.     include packet.inc
  45.     include 3c507.inc
  46.  
  47.     cur_if = 1
  48. ;;*************************************************************************
  49. ;; start declaration section.   Comment in your coices
  50.  
  51.         ;; the first WD8013EBT card
  52.  ;   WDE_DECLARE %cur_if, 280H, 0D000H, 0H, 1, 64, 1  ;; promiscuous ,16K, 16bit
  53.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  54.  ;   cur_if = cur_if + 1
  55.  
  56.         ;; the second WD8013EBT card
  57.  ;   WDE_DECLARE %cur_if, 2A0H, 0D800H, 0H, 1, 64, 1  ;; promiscuous ,16K, 16bit
  58.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  59.  ;   cur_if = cur_if + 1
  60.  
  61.         ;; the third WD8013EBT card
  62.  ;   WDE_DECLARE %cur_if, 2C0H, 0A000H, 0H, 1, 64, 1  ;; promiscuous ,16K, 16bit
  63.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  64.  ;   cur_if = cur_if + 1
  65.  
  66.         ;; the first WD8003EBT card
  67.  ;   WDE_DECLARE %cur_if, 280H, 0D000H, 0H, 1, 128    ;; promiscuous,  32K
  68.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  69.  ;   cur_if = cur_if + 1
  70.     
  71.         ;; the second WD8003EBT card
  72.  ;   WDE_DECLARE %cur_if, 2A0H, 0D800H, 0H, 1, 128    ;; promiscuous,  32K
  73.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  74.  ;   cur_if = cur_if + 1
  75.     
  76.         ;; the first WD8003E Ethernet card or WD8003S(H) Starlan card
  77.      WDE_DECLARE %cur_if, 280H, 0D000H, 0H, 1, 32     ;; promiscuous,  8K
  78.      IF_DECLARE %cur_if, %cur_if, WDE
  79.      cur_if = cur_if + 1
  80.  
  81.         ;; a second WD8003E Ethernet card or WD8003S(H) Starlan card
  82.  ;   WDE_DECLARE %cur_if, 2A0H, 0D800H, 0H, 1, 32     ;; promiscuous,  8K
  83.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  84.  ;   cur_if = cur_if + 1
  85.  
  86.         ;; a serial card for a remote bridge
  87.      I8250_DECLARE %cur_if, SLIP, %cur_if, IBM_COM1_PORT, IBM_COM1_IRQ, 0
  88.      tmp = cur_if*10                                 ;; generate temp names
  89.      BUFF_DECLARE %(tmp+1), 3200                      ;; the read buffer
  90.      QUEUE_DECLARE %(tmp+2), 5, %(size qif_entry)     ;; the read queue
  91.      BUFF_DECLARE %(tmp+3), 10240                     ;; the write buffer
  92.      QUEUE_DECLARE %(tmp+4), 16, %(size qif_entry) ;; the write queue
  93.      SLIP_DECLARE %cur_if,%cur_if,%(tmp+1),%(tmp+2),%(tmp+3),%(tmp+4)
  94.      MY_SET_MTU %cur_if, 1518                         ;; overide default MTU
  95.      Q_IF_DECLARE %cur_if,%(tmp+1),%(tmp+2),%(tmp+3),%(tmp+4),SLIP,%cur_if
  96.      IF_DECLARE %cur_if, %cur_if, Q
  97.      cur_if = cur_if + 1
  98.  
  99.         ;; a packet driver entry
  100.  ;   PKT_DECLARE %cur_if, 60H, 01, 1    ;; <name> <Int num> <Class (Eth=1), prom
  101.  ;   IF_DECLARE %cur_if, %cur_if, PKT
  102.  ;   cur_if = cur_if + 1
  103.  
  104.         ;; a second packet driver entry
  105.  ;   PKT_DECLARE %cur_if, 61H, 01, 1    ;; <name> <Int num> <Class (Eth=1), prom
  106.  ;   IF_DECLARE %cur_if, %cur_if, PKT
  107.  ;   cur_if = cur_if + 1
  108.  
  109.         ;; a 3C507 card entry 64K of memory at D0000H
  110.  ;   C507_DECLARE %cur_if, 280H, 0D000H, 10000H, 1   ;; name,io,seg,len,prom
  111.  ;   IF_DECLARE %cur_if, %cur_if, C507
  112.  ;   cur_if = cur_if + 1
  113.  
  114.         ;; a 3C507 card entry 64K of memory at C0000H
  115.  ;   C507_DECLARE %cur_if, 2A0H, 0C000H, 10000H, 1   ;; name,io,seg,len,prom
  116.  ;   IF_DECLARE %cur_if, %cur_if, C507
  117.  ;   cur_if = cur_if + 1
  118.  
  119. ;; end declaration section
  120. ;;*************************************************************************
  121.  
  122.    num_dls = cur_if - 1
  123.    mybridge = 1
  124.    BDG_DECLARE %mybridge, 1, %num_dls, 1
  125.