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 - metrics - download

⟦775df52a1⟧ TextFile

    Length: 5097 (0x13e9)
    Types: TextFile
    Notes: UNIX file
    Names: »space.boot«

Derivation

└─⟦5fb5a153b⟧ Bits:30004042/hpdd.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦5fb5a153b⟧ UNIX Filesystem
    └─⟦this⟧ »hp/new/etc/atconf/modules/dsk/space.boot« 

TextFile

/*
 * General boot configuration.  Will try for 1 drive on AT-compatible
 * controller first, then look for an AHA-1540 and use the first drive found
 * if it's there.  If not, tries for TMC-830 and uses its first drive.
 * If more than 1 controller is present, we'll panic with overlap in
 * minormap entry 0...
 */

/*
 * 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 - 88/10/17"

#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/errno.h"
#include "sys/kdef.h"

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

/* 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,                      /* Up to 2 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 */
		},
	},

	{
	"Adaptec AHA-1540 SCSI Host Adapter",   /* Controller Name */
	(CCAP_NOSEEK | CCAP_RETRY | CCAP_ERRCOR | CCAP_MULTI | CCAP_SHARED |
	 CCAP_DMA | CCAP_SHARED), /* capabilities */
	0L,                     /* No memory address */
	0L,                     /* No memory address */
	0x330,                  /* I/O space addresses */
	0,                      /* No I/O space addresses */
	5,                      /* First-party DMA */
	0,                      /* No DMA */
	255,                    /* Max sector count */
	4,                      /* Up to 4 drives */
	0,                      /* no drive switch delay */
	0,                      /* Start at minormap entry 0 (minor dev 0) */
	512,                    /* Default sector size (all you get on AT) */
	aha_bdinit,             /* init board function */
	aha_drvinit,            /* init drive function */
	aha_cmd,                /* command function */
	NULL,                   /* no open function */
	NULL,                   /* no close function */
	aha_mastint,            /* Master Interrupt Handler */
		{               /* Interrupt entries */
		11, aha_diskint,/* First Hardware Interrupt */
		},
		{               /* Special IOCTL handlers */
		0,              /* None present */
		},
	},

	{
	"TMC 830 SCSI Adapter", /* Controller Name */
	(CCAP_NOSEEK | CCAP_RETRY | CCAP_ERRCOR | CCAP_MULTI), /* capabilities */
	0xCA000,                /* No memory address */
	0L,                     /* No memory address */
	0,                      /* No I/O space addresses */
	0,                      /* No I/O space addresses */
	0,                      /* No DMA */
	0,                      /* No DMA */
	255,                    /* Max sector count */
	4,                      /* Up to 4 drives */
	0,                      /* no drive switch delay */
	0,                      /* Start at minormap entry 0 (minor dev 0) */
	512,                    /* Default sector size (all you get on AT) */
	scsi_ctl_init,          /* init board function */
	scsi_drv_init,          /* init drive function */
	scsi_mid_cmd,           /* command function */
	NULL,                   /* no open function */
	NULL,                   /* no close function */
	tmc_mastint,            /* Master Interrupt Handler */
		{               /* Interrupt entries */
		5, tmc_diskint, /* First Hardware Interrupt */
		},
		{               /* Special IOCTL handlers */
		0,              /* None present */
		},
	},

	};

ushort  disk_cfg_entries = sizeof(disk_cfg_tbl)/sizeof(struct gdev_cfg_entry);