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

⟦39822d1d4⟧ TextFile

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

Derivation

└─⟦22cab2c1b⟧ Bits:30004042/kcaddon.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦22cab2c1b⟧ UNIX Filesystem
    └─⟦this⟧ »KC/new/etc/atconf/modules/scsi/space.c« 

TextFile

/*
 * Revision history:
 * 871221 RC950 version created from RC39 cscsi.c
 *
 */  
/*
 *
 *      SCSI Specific Configuration file.
 *
 */
#include "sys/param.h"
#include "sys/types.h"
#include "sys/buf.h"
#include "sys/open.h"
#include "sys/scsi.h"




/*
 *  Host adapter configurations
 *
 */

struct scsihcfg scsihcfg = {
/*  io addr, int level, dma io addresses             ,  values to write  */
     0x328 ,   15     , 0xc8,0xc8,0xca,0xca,0xd6,0xd4,  0,0,0,0,0xc2,2
};

/*
 *  Configuration of minor number dependend functionality 
 *
 */

/*      The tunable parameters are:
  default       explanation
  
	0       (short) scsi Destination ID    
	0       (short) unit number of the device
	512     (ushort) sector-size in bytes
	9       (ushort) Block Shift Factor - sector size power of 2 

                params for set read/write parameters cmd - see t100 manual
	 14    	 (ushort) number of heads-1
	 1       (ushort) drive manufactor code
	 1       (ushort) minimum transfer size
	 0       (ushort) drive control

	         params for opening device
	 1       (ushort) no retension if 1. load fails OR 
	 3       retension if 1. load fails
	         params for closing the device
	 0       (ushort) action in close = unload OR
	 1        action in close = load
*/

struct  scsidev scsidev[] = {
/*Minor 0 no retension in open and load in close*/
0,0,512,9,14,0x1E,1,0,1,1,   
/*Minor 1 no retension in open and unload in close*/
0,0,512,9,14,0x1E,1,0,1,0,   
/*Minor 2 retension in open and load in close*/ 
0,0,512,9,14,0x1E,1,0,3,1,  
/*Minor 3 retension in open and unload in close*/ 
0,0,512,9,14,0x1E,1,0,3,0  
};


/*
 * The following are static initialization variables
 * which are based on the configuration. These variables
 * MUST NOT CHANGE because the device driver makes
 * most of the calculations based on these variables.
 *
 */


/*
 * maximum minor number posible .
 */
int	scsimaxmin = ((sizeof scsidev) / (sizeof (struct scsidev)));