home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / PCB121.ZIP / DECLARE / WD03SLIP.INC < prev    next >
Encoding:
Text File  |  1992-01-23  |  5.0 KB  |  125 lines

  1. ;;****************************************************************************
  2.  
  3. ;;                      declare.inc         declare.inc
  4.  
  5. ;;****************************************************************************
  6.  
  7. ;;
  8.  
  9. ;;  Copyright (C) 1989 Northwestern University, Vance Morrison
  10.  
  11. ;;
  12.  
  13. ;;
  14.  
  15. ;; Permission to view, compile, and modify for LOCAL (intra-organization) 
  16.  
  17. ;; USE ONLY is hereby granted, provided that this copyright and permission 
  18.  
  19. ;; notice appear on all copies.  Any other use by permission only.
  20.  
  21. ;;
  22.  
  23. ;; Northwestern University makes no representations about the suitability 
  24.  
  25. ;; of this software for any purpose.  It is provided "as is" without expressed 
  26.  
  27. ;; or implied warranty.  See the copywrite notice file for complete details.
  28.  
  29. ;;
  30.  
  31. ;;*****************************************************************************
  32.  
  33. ;;
  34.  
  35. ;; Due to limitations in TURBO ASSEMBLER, we have to compile PCroute in 
  36.  
  37. ;; pieces.  declare.inc is a 'header' file that constains the declarations
  38.  
  39. ;; of all compile-time information that is shared among seperately compiled
  40.  
  41. ;; pieces.  
  42.  
  43. ;;
  44.  
  45. ;;  AUTHOR: Vance Morrison  
  46.  
  47. ;;  DATE:   4/28/89  
  48.  
  49. ;;****************************************************************************
  50.  
  51.  
  52.  
  53.     .MODEL SMALL
  54.  
  55.  
  56.  
  57.     JUMPS                       ;; deal with long jump displacements 
  58.  
  59.                                 ;; automatically
  60.  
  61.     .CODE                       ;; extablish the default segment
  62.  
  63.  
  64.  
  65.     include debug.inc
  66.  
  67.     include bridge.inc
  68.  
  69.     include buffer.inc
  70.  
  71.     include queue.inc
  72.  
  73.     include if.inc
  74.  
  75.     include memory.inc
  76.  
  77.  
  78.  
  79.     include wd8003e.inc            ;; can be commented out if not used
  80.  
  81.     include qif.inc
  82.  
  83.     include slip.inc
  84.  
  85.     include i8250.inc
  86.  
  87.     include packet.inc
  88.  
  89.     include 3c507.inc
  90.  
  91.  
  92.  
  93.     cur_if = 1
  94.  
  95. ;;*************************************************************************
  96.  
  97. ;; start declaration section.   Comment in your coices
  98.  
  99.  
  100.  
  101.         ;; the first WD8013EBT card
  102.  
  103.  ;   WDE_DECLARE %cur_if, 280H, 0D000H, 0H, 1, 64, 1  ;; promiscuous ,16K, 16bit
  104.  
  105.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  106.  
  107.  ;   cur_if = cur_if + 1
  108.  
  109.  
  110.  
  111.         ;; the second WD8013EBT card
  112.  
  113.  ;   WDE_DECLARE %cur_if, 2A0H, 0D800H, 0H, 1, 64, 1  ;; promiscuous ,16K, 16bit
  114.  
  115.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  116.  
  117.  ;   cur_if = cur_if + 1
  118.  
  119.  
  120.  
  121.         ;; the third WD8013EBT card
  122.  
  123.  ;   WDE_DECLARE %cur_if, 2C0H, 0A000H, 0H, 1, 64, 1  ;; promiscuous ,16K, 16bit
  124.  
  125.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  126.  
  127.  ;   cur_if = cur_if + 1
  128.  
  129.  
  130.  
  131.         ;; the first WD8003EBT card
  132.  
  133.  ;   WDE_DECLARE %cur_if, 280H, 0D000H, 0H, 1, 128    ;; promiscuous,  32K
  134.  
  135.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  136.  
  137.  ;   cur_if = cur_if + 1
  138.  
  139.     
  140.  
  141.         ;; the second WD8003EBT card
  142.  
  143.  ;   WDE_DECLARE %cur_if, 2A0H, 0D800H, 0H, 1, 128    ;; promiscuous,  32K
  144.  
  145.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  146.  
  147.  ;   cur_if = cur_if + 1
  148.  
  149.     
  150.  
  151.         ;; the first WD8003E Ethernet card or WD8003S(H) Starlan card
  152.  
  153.      WDE_DECLARE %cur_if, 280H, 0D000H, 0H, 1, 32     ;; promiscuous,  8K
  154.  
  155.      IF_DECLARE %cur_if, %cur_if, WDE
  156.  
  157.      cur_if = cur_if + 1
  158.  
  159.  
  160.  
  161.         ;; a second WD8003E Ethernet card or WD8003S(H) Starlan card
  162.  
  163.  ;   WDE_DECLARE %cur_if, 2A0H, 0D800H, 0H, 1, 32     ;; promiscuous,  8K
  164.  
  165.  ;   IF_DECLARE %cur_if, %cur_if, WDE
  166.  
  167.  ;   cur_if = cur_if + 1
  168.  
  169.  
  170.  
  171.         ;; a serial card for a remote bridge
  172.  
  173.      I8250_DECLARE %cur_if, SLIP, %cur_if, IBM_COM1_PORT, IBM_COM1_IRQ, 0
  174.  
  175.      tmp = cur_if*10                                 ;; generate temp names
  176.  
  177.      BUFF_DECLARE %(tmp+1), 3200                      ;; the read buffer
  178.  
  179.      QUEUE_DECLARE %(tmp+2), 5, %(size qif_entry)     ;; the read queue
  180.  
  181.      BUFF_DECLARE %(tmp+3), 10240                     ;; the write buffer
  182.  
  183.      QUEUE_DECLARE %(tmp+4), 16, %(size qif_entry) ;; the write queue
  184.  
  185.      SLIP_DECLARE %cur_if,%cur_if,%(tmp+1),%(tmp+2),%(tmp+3),%(tmp+4)
  186.  
  187.      MY_SET_MTU %cur_if, 1518                         ;; overide default MTU
  188.  
  189.      Q_IF_DECLARE %cur_if,%(tmp+1),%(tmp+2),%(tmp+3),%(tmp+4),SLIP,%cur_if
  190.  
  191.      IF_DECLARE %cur_if, %cur_if, Q
  192.  
  193.      cur_if = cur_if + 1
  194.  
  195.  
  196.  
  197.         ;; a packet driver entry
  198.  
  199.  ;   PKT_DECLARE %cur_if, 60H, 01, 1    ;; <name> <Int num> <Class (Eth=1), prom
  200.  
  201.  ;   IF_DECLARE %cur_if, %cur_if, PKT
  202.  
  203.  ;   cur_if = cur_if + 1
  204.  
  205.  
  206.  
  207.         ;; a second packet driver entry
  208.  
  209.  ;   PKT_DECLARE %cur_if, 61H, 01, 1    ;; <name> <Int num> <Class (Eth=1), prom
  210.  
  211.  ;   IF_DECLARE %cur_if, %cur_if, PKT
  212.  
  213.  ;   cur_if = cur_if + 1
  214.  
  215.  
  216.  
  217.         ;; a 3C507 card entry 64K of memory at D0000H
  218.  
  219.  ;   C507_DECLARE %cur_if, 280H, 0D000H, 10000H, 1   ;; name,io,seg,len,prom
  220.  
  221.  ;   IF_DECLARE %cur_if, %cur_if, C507
  222.  
  223.  ;   cur_if = cur_if + 1
  224.  
  225.  
  226.  
  227.         ;; a 3C507 card entry 64K of memory at C0000H
  228.  
  229.  ;   C507_DECLARE %cur_if, 2A0H, 0C000H, 10000H, 1   ;; name,io,seg,len,prom
  230.  
  231.  ;   IF_DECLARE %cur_if, %cur_if, C507
  232.  
  233.  ;   cur_if = cur_if + 1
  234.  
  235.  
  236.  
  237. ;; end declaration section
  238.  
  239. ;;*************************************************************************
  240.  
  241.  
  242.  
  243.    num_dls = cur_if - 1
  244.  
  245.    mybridge = 1
  246.  
  247.    BDG_DECLARE %mybridge, 1, %num_dls, 1
  248.  
  249.