|
|
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: 2449 (0x991)
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/ub/Space.c«
/*
* Streams-based Ungerman-Bass PC-NIC
*
* 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 "0 - 89/09/14"
#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/ub.h"
#ifdef MERGE
#include "config.h"
#define NUB UB_CNTLS /* Number of Ungermann-Bass devices allowed */
#define UB_NSTR UB_MAXSUB /* number of streams per device */
/* first board */
#define UB_PORT UB_0_SIOA /* N/A */
#define UB_PORTSIZE 0 /* N/A */
#define UB_IRQ UB_0_VECT /* Ungermann-Bass Interrupt level */
#define UB_BASE UB_0_SCMA /* Ungermann-Bass base address */
#define UB_MEMSIZE 32768 /* Ungermann-Bass memory size */
#define UB_MAJOR UB_CMAJ
#else
#define NUB 1 /* Number of Ungermann-Bass devices allowed */
#define UB_NSTR 8 /* number of streams per device */
#define UB_PORT 0 /* N/A */
#define UB_PORTSIZE 0 /* N/A */
/* first board */
#define UB_IRQ 3 /* Ungermann-Bass Interrupt level */
#define UB_BASE 0xC8000 /* Ungermann-Bass base address */
#define UB_MEMSIZE 32768 /* Ungermann-Bass memory size */
#define UB_MAJOR 37
#include "config.h" /* to allow override of above defines */
#endif /* MERGE */
/* ub streams */
int ub_cnt = {NUB};
int ub_nstr = UB_NSTR;
struct llcdev ubdevs[NUB*UB_NSTR];
struct llcparam ubparams[NUB] = {
{
0, /* board 0 */
UB_IRQ, /* Ungermann-Bass board interrupt level */
UB_PORT, /* Ungermann-Bass board base address */
UB_PORTSIZE, /* Ungermann-Bass board memory size */
UB_BASE, /* Memory base address */
UB_MEMSIZE, /* Memory size */
0, /* mapped memory address */
0, /* init status */
0, /* tranceiver type if necessary */
UB_MAJOR, /* major device number */
UB_NSTR, /* number of upper streams */
},
};
/* stat structures */
struct ubstats ubstats[NUB];
/* local variables */
struct ubvars ubvars[NUB];
/* debug */
#ifdef UBDEBUG
int ubdebug = 0x0;
#endif