9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ncr53c8xx & 9pcfs
@ 1998-10-18 10:45 James
  0 siblings, 0 replies; only message in thread
From: James @ 1998-10-18 10:45 UTC (permalink / raw)


How many folks have a file server working using the NCR drivers? I bought
an NCR53c875 on recommendations, and have been trying to create an
9pcfs boot disk in order to get my file server up and running. I'm 
running into problems, and would really appreciate a pointer (a RTFM
would be welcomed, if I'm missing some docs somewhere).

I'm trying to compile 9pcfs with the ncr53c8xx.c driver in it. I copied
over pci.c, ncr53c8xx.c, script.n, and added a few #defines to io.h
(PCI Local Bus Support, from src/9/pc/io.h) and fns.h (KADDR(a), from
ncr53c8xx.c).  It gets most of the way through the compile processes,
but gives a few errors, the last being fatal:

	8c -w -U. -I../port ncr53c8xx.c
	warning: ncr53c8xx.c:1013 set and not used: inchip
	warning: ncr53c8xx.c:1025 set and not used: inchip
	ncr53c8xx.c:1807 function args not checked: pcimatch
	ncr53c8xx.c:1816 function args not checked: pcimemmap
	ncr53c8xx.c:1826 function args not checked: pcimemmap
	ncr53c8xx.c:1826 incompatible types: "IND ULONG" and "LONG" for op "AS"
	mk: 8c -w -U. ... : exit status=rc 3006:8c 3008:error

The function is being called like this:

	int ulong scriptpa = 0;	
	c->script = pcimemmap(0, devno - 1, 0, 2, &scriptpa);

and pcimemmap is:

	void *
	pcimemmap(int busno, int devno, int func, int basereg, ulong *pa)
	{
		...
		return KADDR(rv);
	}

KADDR is defined as

	KADDR(a) ((void *)((ulong)(a)|KZERO)).

If I just set c->script to 0, it compiles, but of course I wouldn't be
able to use it then. Any help would be appreciated.

Jim




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-10-18 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-18 10:45 [9fans] ncr53c8xx & 9pcfs James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).