|
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: 2241 (0x8c1) 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/wd/Space.c«
/* * Module: WD8003 * Project: System V ViaNet * * Copyright (c) 1987, 1988 by Western Digital Corporation. * All rights reserved. Contains confidential information and * trade secrets proprietary to * Western Digital Corporation * 2445 McCabe Way * Irvine, California 92714 */ #ident "@(#)Space.c 1.8 - 88/12/07" /* * Configuration file for WD8003S (Starlan) / WD8003E (Ethernet). * All user configurable options are here (automatically set on PS-2). */ #include "sys/types.h" #include "sys/stream.h" #include "sys/wd.h" #define WDDEBUG 0 /* trace transmit attempts */ #ifdef MERGE #include "config.h" #define NWDDEV WD_MAXSUB /* Number of WD 8003 (sub) devices */ #define WDIRQ0 WD_0_VECT /* IRQ value */ #define WDBASEPORT0 WD_0_SIOA /* Base I/O port */ #define WDBASEADDR0 WD_0_SCMA /* Base shared memory address */ #define WDBOARDSIZE0 8192 /* Board size */ #define WDMAJOR0 WD_CMAJ /* Board major device number */ #else #define NWDDEV 32 /* Number of WD 8003 devices */ #define WDIRQ0 3 /* IRQ value */ #define WDBASEPORT0 0x280 /* Base I/O port */ #define WDBASEADDR0 0xc8000 /* Base shared memory address */ #define WDBOARDSIZE0 8192 /* Board size */ #define WDMAJOR0 30 /* Board major device number */ #endif /* MERGE */ #define NWD 1 /* Number of WD 8003 boards */ #define NSTR (NWDDEV/NWD) /* Number of streams/board */ #define MAXMULTI 16 /* Number of multicast addrs/board */ struct wddev wddevs[NSTR*NWD]; struct wdstat wdstats[NWD]; int wd_boardcnt = NWD; struct wdmaddr wdmultiaddrs[NWD * MAXMULTI]; /* multicast addr storage */ int wd_multisize = MAXMULTI; /* # of multicast addrs/board */ int wd_debug = WDDEBUG; /* can be enabled dynamically */ struct wdparam wdparams[NWD] = { { 0, /* board index */ WDIRQ0, /* interrupt level */ WDBASEPORT0, /* I/O port for device */ (caddr_t)WDBASEADDR0, /* address of board's memory */ WDBOARDSIZE0, /* memory size */ 0, /* pointer to mapped memory */ 0, /* board type */ 0, /* board present flag */ 0, /* board status */ 0, /* number of streams open */ WDMAJOR0, /* major device number */ NSTR /* number of minor devices allowed */ } };