|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 2216 (0x8a8) Types: TextFile Notes: UNIX file Names: »Space.c«
└─⟦f660c3862⟧ Bits:30004068/disk1.imd Interactive TCP/IP v.1.2 └─⟦f660c3862⟧ UNIX Filesystem └─⟦this⟧ »hb/driver/ec/Space.c«
/* * Streams-based 3COM ethernet driver * * Copyrighted as an unpublished work. * (c) Copyright 1988 INTERACTIVE Systems Corporation * All rights reserved. * * RESTRICTED RIGHTS: * * These programs are supplied under a license. They may be used, * disclosed, and/or copied only as permitted under such license * agreement. Any copy must contain the above copyright notice and * this restricted rights notice. Use, copying, and/or disclosure * of the programs is strictly prohibited unless otherwise provided * in the license agreement. */ #ident "@(#)Space.c 1.5 - 88/10/27" #ident "@(#) (c) Copyright INTERACTIVE Systems Corporation 1988" #include "sys/types.h" #include "sys/stream.h" #include "sys/bsdtypes.h" #include "sys/llc.h" #include "sys/ec.h" #ifdef MERGE #include "config.h" #define NEC EC_UNITS /* Number of 3COM boards */ #define NSTRS EC_MAXSUB /* Number of 3COM streams allowed */ #define EC_IRQ0 EC_0_VECT /* 3COM Interrupt level */ #define EC_BASE0 EC_0_SIOA /* 3COM base I/O port */ #define EC_SIZE0 2048 /* 3COM memory size */ #define EC_MAJOR0 EC_CMAJ /* 3COM major device number */ #else #define NEC 1 /* Number of 3COM boards */ #define NSTRS 5 /* Number of 3COM streams allowed */ #define EC_IRQ0 3 /* 3COM Interrupt level */ #define EC_BASE0 0x300 /* 3COM base I/O port */ #define EC_SIZE0 2048 /* 3COM memory size */ #define EC_MAJOR0 36 /* 3COM major device number */ #include "config.h" /* to allow override of above defines */ #endif /* MERGE */ /* ec streams */ int ec_cnt = NEC; /* number of boards */ struct llcdev ecdevs[NSTRS*NEC]; /* minor device structures */ struct ecstats ec_stats[NEC]; /* statistics structure */ struct ecvar ecvar[NEC]; /* board dependent variables */ struct llcparam ecparams[NEC] = { { 0, /* board index */ EC_IRQ0, /* interrupt level */ EC_BASE0, /* I/O port base */ 16, /* I/O port range */ 0, /* base address of shared memory */ EC_SIZE0, /* memory size */ 0, /* mapped shared memory */ 0, /* init status */ 0, /* board state */ EC_MAJOR0, /* major device number */ NSTRS /* number of minor devices */ } }; /* debug */ #ifdef ECDEBUG int ecdebug = 0x10; #endif