KMC info wanted

mikeg at mprvaxa.UUCP mikeg at mprvaxa.UUCP
Sun Jul 10 05:34:35 AEST 1983


cvec can be set without hardwiring the csr/vector pairs by downloading
a small program to the KMC.  here is the 'probe' code to do so:

kmcprobe(reg)
caddr_t reg;
{
	register int br, cvec;
	register struct kmcdevice *kmcaddr = (struct kmcdevice *)reg;

#ifdef lint
	br = 0; cvec = br; br = cvec;
#endif
	spl7();
	kmcaddr->bsel1 = MCLR;
	spl0();
	kmcaddr->bsel1 = ROMI;
	kmcaddr->sel4 = BUS_RQ;
	kmcaddr->sel6 = 0121111;		/* mov csr4,obr */
	kmcaddr->bsel1 = ROMI|STEP;
	DELAY(5);
	kmcaddr->bsel1 = 0;
	return(1);
}


Michael Ghesquiere
Microtel Pacific Research
..!ubc-vision!mprvaxa!mikeg



More information about the Comp.unix.wizards mailing list