DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦c04b94012⟧ TextFile

    Length: 2342 (0x926)
    Types: TextFile
    Notes: UNIX file
    Names: »space.c«

Derivation

└─⟦fdc69b24d⟧ Bits:30004152 SW95705I 386/ix Multi User Update 1
└─⟦fdc69b24d⟧ UNIX Filesystem
    └─ ⟦this⟧ »U1/new/etc/atconf/modules/dsk/space.c« 

TextFile

/*
 * 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.gen	1.7 - 88/11/01"
 */

#include "sys/types.h"
#include "sys/param.h"
#include "sys/sysmacros.h"
#include "sys/buf.h"
#include "sys/elog.h"
#include "sys/iobuf.h"
#include "sys/vtoc.h"
#include "sys/alttbl.h"
#include "sys/gendev.h"
#include "sys/gendisk.h"
#include "sys/aha1540.h"
#include "sys/athd.h"
#include "sys/genscsi.h"
#include "sys/gramd.h"
#include "sys/errno.h"
#include "sys/kdef.h"

#include "config.h"     /* In case user wants to override defaults */

/* START: The actual configuration table */
struct  gdev_cfg_entry disk_cfg_tbl[] = {
	{
	"Primary AT Hard Disk", /* Controller Name */
	(CCAP_RETRY | CCAP_ERRCOR), /* capabilities */
	0L,                     /* No memory address */
	0L,                     /* No memory address */
	0x1f0,                  /* Primary I/O space address (task file) */
	0x3f6,                  /* Secondary I/O address(Fixed Disk Register)*/
	0,                      /* No DMA */
	0,                      /* No DMA */
	255,                    /* Max sector count */
	2,			/* Number of drives */
	10,                     /* 100us drive switch delay */
	0,                      /* Start at minormap entry 0 (minor dev 0) */
	512,                    /* Default sector size (all you get on AT) */
	athd_bdinit,            /* init board function */
	athd_drvinit,           /* init drive function */
	athd_cmd,               /* command function */
	NULL,                   /* no open function */
	NULL,                   /* no close function */
	NULL,                   /* No Master Interrupt */
		{               /* Interrupt entries */
		14, athd_int,/* First Hardware Interrupt */
		},
		{               /* Special IOCTL handlers */
		0,              /* None present */
		},
	},
};
ushort  disk_cfg_entries = sizeof(disk_cfg_tbl)/sizeof(struct gdev_cfg_entry);