#
#include "../head/param.h"

/*
 *	Copyright 1974 Bell Telephone Laboratories Inc
 */

/*
 *	Frozen Configuration Table - New devices may be
 *	added to the end of the tables only!
 *	block order - rk,rp,rf,tm,tc,hp,ht,hs,0
 *	character order - kl,pc,lp,dc,dh,dp,dj,dn,mem,rk,rf,rp,tm,
 *			hp,ht,hs,sys,0
 */
int	(*bdevsw[])()
{
/* 0*/	&nodev,		&nodev,		&nodev,		0,
/* 1*/	&rpopen,	&nulldev,	&rpstrategy, 	&rptab,
/* 2*/	&nodev,		&nodev,		&nodev,		0,
/* 3*/	&tmopen,	&tmclose,	&tmstrategy, 	&tmtab,
/* 4*/	&nodev,		&nodev,		&nodev,		0,
/* 5*/	&nodev,		&nodev,		&nodev,		0,
/* 6*/	&nodev,		&nodev,		&nodev,		0,
/* 7*/	&nodev,		&nodev,		&nodev,		0,
	0
};

int	(*cdevsw[])()
{
/* 0*/	&klopen,   &klclose,   &klread,   &klwrite,   &klsgtty,
/* 1*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 2*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 3*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 4*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 5*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 6*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 7*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/* 8*/	&nulldev,  &nulldev,   &mmread,   &mmwrite,   &nodev,
/* 9*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/*10*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/*11*/	&rpopen,  &nulldev,   &rpread,   &rpwrite,   &nodev,
/*12*/	&tmopen,   &tmclose,   &tmread,   &tmwrite,   &nodev,
/*13*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/*14*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/*15*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
/*16*/	&nodev,    &nodev,     &nodev,    &nodev,     &nodev,
	0
};

int	(*ctlsw[])()
{
/* 0*/	&nulldev,       &klmctl,
/* 1*/	&nodev,         &nodev,
/* 2*/	&nodev,         &nodev,
/* 3*/	&nodev,         &nodev,
	0
};

int	(*linesw[])() {
&ttopen,  &ttclose, &ttread,  &ttwrite, &ttyinput,&ttxmtd,  &ttmt,    &ttstty,
	0
};

int	rootdev	{(1<<8)|0};
int	swapdev	{(1<<8)|0};
int	swplo	9200;
int	nswap	2000;


int sysparam[]{
	NPROC,
	NTEXT,
	NINODE,
	NFILE,
	NBUF,
	NMOUNT,
	NCLIST,
	0
};
