|
|
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 - downloadIndex: S T U
Length: 2453 (0x995)
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/el/Space.c«
/*
* Streams-based 3COM 3C503 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.4 - 89/02/01"
#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/el.h"
#ifdef MERGE
#include "config.h" /* to allow override of above defines */
#define NEL EL_UNITS /* Number of 3COM boards */
#define NSTR EL_MAXSUB /* Number of 3COM streams allowed */
#define EL_IRQ0 EL_0_VECT /* 3COM Interrupt level */
#define EL_SHARE0 EL_0_SCMA /* 3COM shared memory base */
#define EL_SIZE0 8192 /* 3COM memory size */
#define EL_BASE0 EL_0_SIOA /* 3COM base I/O port */
#define EL_MAJOR0 EL_CMAJ /* 3COM major device number */
#else
#define NEL 1 /* Number of 3COM boards */
#define NSTR 5 /* Number of 3COM streams allowed */
#define EL_IRQ0 3 /* 3COM Interrupt level */
#define EL_SHARE0 0xDC000 /* 3COM shared memory base */
#define EL_SIZE0 8192 /* 3COM memory size */
#define EL_BASE0 0x300 /* 3COM base I/O port */
#define EL_MAJOR0 49 /* 3COM major device number */
#include "config.h" /* to allow override of above defines */
#endif /* MERGE */
#define EL_XCV0 1 /* 3COM internal transceiver (BNC vs. DIX) */
/* el streams */
int el_cnt = NEL; /* number of boards */
struct llcdev eldevs[NSTR*NEL]; /* minor device structures */
struct elstats el_stats[NEL]; /* statistics structure */
struct elvar elvar[NEL]; /* board dependent variables */
struct llcparam elparams[NEL] = {
{ 0, /* board index */
EL_IRQ0, /* interrupt level */
EL_BASE0, /* I/O port base */
16, /* I/O port range */
EL_SHARE0, /* base memory address */
EL_SIZE0, /* memory size */
0, /* mapped shared memory */
0, /* init status */
EL_XCV0, /* onboard transceiver */
EL_MAJOR0, /* major device number */
NSTR /* number of minor devices */
}
};
/* debug */
#ifdef ELDEBUG
int eldebug = 0x10;
#endif