Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 1995 18:18:11 +0200
From:      Heikki Suonsivu <hsu@clinet.fi>
To:        freebsd-bugs@freefall.cdrom.com
Subject:   NCR SCSI fails
Message-ID:  <199503121618.SAA04225@katiska.clinet.fi>

next in thread | raw e-mail | index | archive | help

This failed on our P60 motherboard with NCR SCSI, is this a broken
motherboard, configuration problem or something else?

/*==========================================================
**
**
**	Test the pci bus snoop logic :-(
**
**	Has to be called with interrupts disabled.
**
**
**==========================================================
*/

#ifndef NCR_IOMAPPED
static int ncr_regtest (struct ncb* np)
{
	register volatile u_long data, *addr;
	/*
	**	ncr registers may NOT be cached.
	**	write 0xffffffff to a read only register area,
	**	and try to read it back.
	*/
	addr = (u_long*) &np->reg->nc_dstat;
	data = 0xffffffff;
	*addr= data;
	data = *addr;
#if 1
	if (data == 0xffffffff) {
#else
	if ((data & 0xe2f0fffd) != 0x02000080) {
#endif
		printf ("CACHE TEST FAILED: reg dstat-sstat2 readback %x.\n",
			(unsigned) data);
		return (0x10);
	};
	return (0);
}
#endif


-- 
Heikki Suonsivu, T{ysikuu 10 C 83/02210 Espoo/FINLAND,
hsu@cs.hut.fi  home +358-0-8031121 work -4513377 fax -4555276  riippu SN



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503121618.SAA04225>