xref: /csrg-svn/sys/vax/stand/conf.c (revision 45803)
123221Smckusick /*
233523Sbostic  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
333523Sbostic  * All rights reserved.
423221Smckusick  *
544543Sbostic  * %sccs.include.redist.c%
633523Sbostic  *
7*45803Sbostic  *	@(#)conf.c	7.9 (Berkeley) 12/16/90
823221Smckusick  */
9318Sbill 
10*45803Sbostic #include "sys/param.h"
11*45803Sbostic #include "stand/saio.h"
12318Sbill 
1333523Sbostic extern int	nullsys(), nodev(), noioctl();
14318Sbill 
1524152Sbloom #if defined(VAX780) || defined(VAX750) || defined(VAX8600)
1630547Skarels #define	HP		"hp"
1733523Sbostic int	hpstrategy(), hpopen();
1833523Sbostic #ifdef SMALL
1933523Sbostic #define	hpioctl		noioctl
2030547Skarels #else
2133523Sbostic int	hpioctl();
2233523Sbostic #endif
2333523Sbostic #else
2433408Skarels #define	HP		0
2530547Skarels #define	hpstrategy	nodev
2630547Skarels #define	hpopen		nodev
2730547Skarels #define	hpioctl		noioctl
286970Ssam #endif
2933523Sbostic 
3033523Sbostic int	upstrategy(), upopen();
3133523Sbostic #ifdef SMALL
3233523Sbostic #define	upioctl		noioctl
3333523Sbostic #else
3433523Sbostic int	upioctl();
3533523Sbostic #endif
3633523Sbostic 
3733523Sbostic int	rkstrategy(), rkopen();
3833523Sbostic int	rastrategy(), raopen();
3933523Sbostic 
4013812Ssam #if defined(VAX730)
4130547Skarels #define	RB		"rb"
4233523Sbostic int	idcstrategy(), idcopen();
4330547Skarels #else
4433408Skarels #define	RB		0
4530547Skarels #define	idcstrategy	nodev
4630547Skarels #define	idcopen		nodev
4713812Ssam #endif
4830547Skarels 
4933523Sbostic int	rlstrategy(), rlopen();
5030547Skarels 
5133523Sbostic #ifdef BOOT
5233408Skarels #define	TM		0
5330547Skarels #define	tmstrategy	nodev
5430547Skarels #define	tmopen		nodev
5530547Skarels #define	tmclose		nodev
5633408Skarels #define	TS		0
5730547Skarels #define	tsstrategy	nodev
5830547Skarels #define	tsopen		nodev
5930547Skarels #define	tsclose		nodev
6033408Skarels #define	HT		0
6130547Skarels #define	htstrategy	nodev
6230547Skarels #define	htopen		nodev
6330547Skarels #define	htclose		nodev
6433408Skarels #define	MT		0
6530547Skarels #define	mtstrategy	nodev
6630547Skarels #define	mtopen		nodev
6730547Skarels #define	mtclose		nodev
6833408Skarels #define	UT		0
6930547Skarels #define	utstrategy	nodev
7030547Skarels #define	utopen		nodev
7130547Skarels #define	utclose		nodev
7233408Skarels #define	TMSCP		0
7333408Skarels #define	tmscpstrategy	nodev
7433408Skarels #define	tmscpopen	nodev
7533408Skarels #define	tmscpclose	nodev
7633523Sbostic #else /* !BOOT */
7733523Sbostic #define	TM		"tm"
7833523Sbostic int	tmstrategy(), tmopen(), tmclose();
7933523Sbostic #define	TS		"ts"
8033523Sbostic int	tsstrategy(), tsopen(), tsclose();
8133408Skarels 
8233523Sbostic #if defined(VAX780) || defined(VAX750) || defined(VAX8600)
8333523Sbostic #define	HT		"ht"
8433523Sbostic int	htstrategy(), htopen(), htclose();
8533523Sbostic #define	MT		"mt"
8633523Sbostic int	mtstrategy(), mtopen(), mtclose();
8733523Sbostic #else /* massbus vax */
8833523Sbostic #define	HT		0
8933523Sbostic #define	htstrategy	nodev
9033523Sbostic #define	htopen		nodev
9133523Sbostic #define	htclose		nodev
9233523Sbostic #define	MT		0
9333523Sbostic #define	mtstrategy	nodev
9433523Sbostic #define	mtopen		nodev
9533523Sbostic #define	mtclose		nodev
9633523Sbostic #endif /* massbus vax */
9733523Sbostic 
9833523Sbostic #define	UT		"ut"
9933523Sbostic int	utstrategy(), utopen(), utclose();
10033523Sbostic #define	TMSCP		"tms"
10133523Sbostic int	tmscpstrategy(), tmscpopen(), tmscpclose();
10233523Sbostic #endif /* BOOT */
10333523Sbostic 
10433408Skarels #ifdef VAX8200
10533408Skarels #define	KRA		"kra"
10633523Sbostic int	krastrategy(), kraopen();
10733408Skarels #else
10833408Skarels #define	KRA		0
10933408Skarels #define	krastrategy	nodev
11033408Skarels #define	kraopen		nodev
1117277Swnj #endif
112318Sbill 
113318Sbill struct devsw devsw[] = {
11433523Sbostic 	{ HP,	hpstrategy,	hpopen,	nullsys, hpioctl },  /*  0 = hp */
11533523Sbostic 	{ HT,	htstrategy,	htopen,	htclose, noioctl },  /*  1 = ht */
11633523Sbostic 	{ "up",	upstrategy,	upopen,	nullsys, upioctl },  /*  2 = up */
11733523Sbostic 	{ "hk",	rkstrategy,	rkopen,	nullsys, noioctl },  /*  3 = hk */
11833523Sbostic 	{ 0,	nodev,		nodev,	nullsys, noioctl },  /*  4 = sw */
11933523Sbostic 	{ TM,	tmstrategy,	tmopen,	tmclose, noioctl },  /*  5 = tm */
12033523Sbostic 	{ TS,	tsstrategy,	tsopen,	tsclose, noioctl },  /*  6 = ts */
12133523Sbostic 	{ MT,	mtstrategy,	mtopen,	mtclose, noioctl },  /*  7 = mt */
12233523Sbostic 	{ 0,	nodev,		nodev,	nullsys, noioctl },  /*  8 = tu */
12333523Sbostic 	{ "ra",	rastrategy,	raopen,	nullsys, noioctl },  /*  9 = ra */
12433523Sbostic 	{ UT,	utstrategy,	utopen,	utclose, noioctl },  /* 10 = ut */
12533523Sbostic 	{ RB,	idcstrategy,	idcopen,nullsys, noioctl },  /* 11 = rb */
12633523Sbostic 	{ 0,	nodev,		nodev,	nullsys, noioctl },  /* 12 = uu */
12733523Sbostic 	{ 0,	nodev,		nodev,	nullsys, noioctl },  /* 13 = rx */
12833523Sbostic 	{ "rl",	rlstrategy,	rlopen,	nullsys, noioctl },  /* 14 = rl */
12933523Sbostic 	{ TMSCP,tmscpstrategy,tmscpopen,tmscpclose,noioctl}, /* 15 = tmscp */
13033523Sbostic 	{ KRA,	krastrategy,	kraopen,nullsys, noioctl},   /* 16 = kra */
131318Sbill };
13230547Skarels 
13333523Sbostic int	ndevs = (sizeof(devsw)/sizeof(devsw[0]));
134