|
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 - download
Length: 6205 (0x183d) Types: TextFile Notes: UNIX file Names: »space.gen«
└─⟦fdc69b24d⟧ Bits:30004152 SW95705I 386/ix Multi User Update 1 └─⟦fdc69b24d⟧ UNIX Filesystem └─ ⟦this⟧ »U1/new/etc/atconf/modules/dsk/space.gen«
/* * 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[] = { #ifdef AT1 { "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 */ NDRV1, /* 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 */ IVEC1, athd_int,/* First Hardware Interrupt */ }, { /* Special IOCTL handlers */ 0, /* None present */ }, }, #endif #if defined(FS1) || defined(FS2) { "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 */ #ifdef FS1 NDRV1, /* Number of drives */ #endif #ifdef FS2 NDRV2, /* Number of drives */ #endif 0, /* no drive switch delay */ #ifdef FS1 0, /* Start at minormap entry 0 (minor dev 0) */ #endif #ifdef FS2 4, /* Start at minormap entry 4 (minor dev 64) */ #endif 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 */ #ifdef FS1 IVEC1, #endif #ifdef FS2 IVEC2, #endif tmc_diskint, /* First Hardware Interrupt */ }, { /* Special IOCTL handlers */ 0, /* None present */ }, }, #endif #ifdef AT2 { "Secondary AT Hard Disk", /* Controller Name */ (CCAP_RETRY | CCAP_ERRCOR), /* capabilities */ 0L, /* No memory address */ 0L, /* No memory address */ 0x170, /* Primary I/O space address (task file) */ 0x376, /* Secondary I/O address(Fixed Disk Register)*/ 0, /* No DMA */ 0, /* No DMA */ 255, /* Max sector count */ NDRV2, /* Number of drives */ 10, /* 100us drive switch delay */ 4, /* 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 */ 15, athd_int, /* First Hardware Interrupt */ }, { /* Special IOCTL handlers */ 0, /* None present */ }, }, #endif #ifdef HPDD_RAMD { "RAMdisk", /* Controller Name */ (CCAP_NOSEEK), /* capabilities */ 0L, /* No memory address (filled by init) */ 0L, /* No memory address */ 0, /* No Primary I/O space address */ 0, /* No Secondary I/O address */ 0, /* No DMA */ 0, /* No DMA */ 0xffff, /* Max sector count */ 1, /* 1 "drive" ONLY! */ 0, /* No drive switch delay */ 15, /* Start at minormap entry 15 (minor dev 240) */ 512, /* Default sector size (all you get on AT) */ gramd_bdinit, /* init board function */ gramd_drvinit, /* init drive function */ gramd_cmd, /* command function */ NULL, /* no open function */ NULL, /* no close function */ NULL, /* No Master Interrupt */ { /* Interrupt entries */ 0, NULL, /* None used */ }, { /* Special IOCTL handlers */ 0, /* None present */ }, }, #endif }; ushort disk_cfg_entries = sizeof(disk_cfg_tbl)/sizeof(struct gdev_cfg_entry);