File:  [MW Coherent from dump] / coherent / f / etc / conf / patch / src / Space.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * Configurable information for the patch driver.
 */
#define __KERNEL__	1

#include <sys/patch.h>
#include <sys/compat.h>
#include <sys/con.h>
#include <kernel/param.h>

/*
 * These devices need deferred startup during installation.
 */
extern CON	atcon;	/* IDE hard disk. */
extern CON	sdcon;	/* Adaptec hard disk. */
extern CON	sscon;	/* Seagate/Future Domain hard disk. */
extern CON	scsicon;	/* Hai SCSI driver. */

#define PATCHABLE_VAR(var)	{ STRING(var), &(var), sizeof(var) }
#define PATCHABLE_CON(var)	{ STRING(var), &(var) }

extern unsigned long _bar;
extern int ronflag;
extern unsigned long _entry;
extern int kb_lang;
extern unsigned int NSDRIVE;
extern unsigned int SS_INT;
extern unsigned int SS_BASE;
extern int AHA_SD_HDS;
extern int AHA_SD_SPT;
extern int SDDMA;
extern int SDIRQ;
extern int SDBASE;
extern unsigned short AHADMACHAN;
extern unsigned short AHAINTR;
extern unsigned short AHABASE;
extern int HAI_SD_HDS;
extern int HAI_SD_SPT;
extern int HAI_TAPE;
extern int HAI_DISK;
extern int ATSREG;
extern short at_drive_ct;
extern int fl_dsk_ch_prob;

struct patchVarInternal	patchVarTable [] = {
	PATCHABLE_VAR(_bar),
	PATCHABLE_VAR(ronflag),
	PATCHABLE_VAR(_entry),
	PATCHABLE_VAR(kb_lang),
	PATCHABLE_VAR(NSDRIVE),
	PATCHABLE_VAR(SS_INT),
	PATCHABLE_VAR(SS_BASE),
	PATCHABLE_VAR(AHA_SD_HDS),
	PATCHABLE_VAR(AHA_SD_SPT),
	PATCHABLE_VAR(SDDMA),
	PATCHABLE_VAR(SDIRQ),
	PATCHABLE_VAR(SDBASE),
	PATCHABLE_VAR(AHADMACHAN),
	PATCHABLE_VAR(AHAINTR),
	PATCHABLE_VAR(AHABASE),
	PATCHABLE_VAR(HAI_SD_HDS),
	PATCHABLE_VAR(HAI_SD_SPT),
	PATCHABLE_VAR(HAI_DISK),
	PATCHABLE_VAR(HAI_TAPE),
	PATCHABLE_VAR(ATSREG),
	PATCHABLE_VAR(at_drive_ct),
	PATCHABLE_VAR(fl_dsk_ch_prob),
};

int	patchVarCount = sizeof(patchVarTable)/sizeof(patchVarTable[0]);

struct patchConInternal	patchConTable [] = {
	PATCHABLE_CON(atcon),
	PATCHABLE_CON(sdcon),
	PATCHABLE_CON(sscon),
	PATCHABLE_CON(scsicon)
};

int	patchConCount = sizeof(patchConTable)/sizeof(patchConTable[0]);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.