home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 December / MICD_2000_12_NR1.iso / Dreamnet / drivery / Trendware / Te-16pct.exe / SCOUNIX / 5.X / SPACE.C < prev    next >
C/C++ Source or Header  |  1996-02-05  |  2KB  |  89 lines

  1. /*
  2.  *    @(#) Space.c 7.1 94/11/27 SCOINC
  3.  *
  4.  *      Copyright (C) The Santa Cruz Operation, 1993-1994.
  5.  *      This Module contains Proprietary Information of
  6.  *      The Santa Cruz Operation and should be treated
  7.  *      as Confidential.
  8.  */
  9.  
  10. /*
  11.  *    System V STREAMS TCP - Release 4.0
  12.  *
  13.  *    Copyright 1987, 1988 Lachman Associates, Incorporated (LAI)
  14.  *
  15.  *    All Rights Reserved.
  16.  *
  17.  *    The copyright above and this notice must be preserved in all
  18.  *    copies of this source code.  The copyright above does not
  19.  *    evidence any actual or intended publication of this source
  20.  *    code.
  21.  *
  22.  *    This is unpublished proprietary trade secret source code of
  23.  *    Lachman Associates.  This source code may not be copied,
  24.  *    disclosed, distributed, demonstrated or licensed except as
  25.  *    expressly authorized by Lachman Associates.
  26.  *
  27.  *    System V STREAMS TCP was jointly developed by Lachman
  28.  *    Associates and Convergent Technologies.
  29.  */
  30. #include "sys/types.h"
  31. #include "sys/stream.h"
  32. #include "sys/mdi.h"
  33. #include "config.h"
  34. #include "space.h"
  35. #include "r2e.h"
  36.  
  37.             /* IRQ LEVEL */
  38. u_int r2eintl[R2E_CNTLS] = {
  39. #ifdef R2E_0
  40.             R2E_0_IRQ,
  41. #endif
  42. #ifdef R2E_1
  43.         R2E_1_IRQ,
  44. #endif
  45. #ifdef R2E_2
  46.         R2E_2_IRQ,
  47. #endif
  48. #ifdef R2E_3
  49.         R2E_3_IRQ,
  50. #endif
  51. };
  52.  
  53.             /* I/O BASE ADDRESS */
  54. u_int r2eiobase[R2E_CNTLS] = {
  55. #ifdef R2E_0
  56.         R2E_0_BASE_IO,
  57. #endif
  58. #ifdef R2E_1
  59.         R2E_1_BASE_IO,
  60. #endif
  61. #ifdef R2E_2
  62.         R2E_2_BASE_IO,
  63. #endif
  64. #ifdef R2E_3
  65.         R2E_3_BASE_IO,
  66. #endif
  67. };
  68.  
  69.  
  70. u_int            r2e_nunit = R2E_CNTLS;
  71. struct r2edevice    r2edevice[R2E_CNTLS];  
  72.  
  73. extern int r2eopen(), r2eclose(), r2euwput();
  74. extern int nulldev();
  75.  
  76. struct module_info r2e_minfo = {
  77.     0, "r2e", 1, r2eETHERMTU, 16*r2eETHERMTU, 12*r2eETHERMTU
  78. };
  79.  
  80. struct qinit r2eurinit = {
  81.     0,  0, r2eopen, r2eclose, nulldev, &r2e_minfo, 0
  82. };
  83.  
  84. struct qinit r2euwinit = {
  85.     r2euwput,0,r2eopen,r2eclose, nulldev, &r2e_minfo, 0
  86. };
  87.  
  88. struct streamtab r2einfo = { &r2eurinit, &r2euwinit, 0, 0 };
  89.