Subject: Re: LCSPX/SPXg driver, testers wanted
To: Blaz Antonic <blaz.antonic@siol.net>
From: Tom G. Christensen <nbsd@jupiterrise.com>
List: port-vax
Date: 12/10/2005 12:21:40
On Sun, Dec 04, 2005 at 10:35:18AM -0800, Blaz Antonic wrote:
> Hello,
> 
<snip>
> How to use this driver:
> - Copy file spx.c into your sys/arch/vax/vsa directiry in kernel sources
> hierarchy.
> - Add appropriate entry to sys/arch/vax/conf/files.vax that references
> spx.c; use lcspx entry as a template or simply modify lcspx entry to
> suit new driver - in-kernel lcspx.c is braindead anyway and should be
> removed
> - Add appropriate entry into your kernel configuration file; I haven't
> hardcoded all the addresses even though I probably should have so use
> the following key to find correct CSR for your framebuffer:
> VS 4000/60 with SPXg: 0x22200000
> VS 4000/9x with SPXG: 0x28200000
> VS 4000/9x with LCSPX: 0x38000000
> VS 3100 with SPX: 0x38000000
>
Finally found some time to try this out but I'm unable to build it :(
I've verified the md5sum of the source and performed all the above
steps.
I've tried with both 2.1 and 2.0.3 source and both fail in the same manner.
The buildhost is running NetBSD 2.1/i386 (vmware).

This is the build error that I get:
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:79: parse
error before `0x22200000'
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:194:
`spx_match' undeclared here (not in a function)
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:194:
initializer element is not constant
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:194: (near
initialization for `spx_ca.ca_match')
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:283: parse
error before `>='
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:286: stray '\'
in program
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:286: stray '\'
in program
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:287: stray '\'
in program
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:290: stray '\'
in program
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:295: stray '\'
in program
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:300: stray '\'
in program
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:323:
`spx_ioctl' undeclared here (not in a function)
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:323:
initializer element is not constant
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:323: (near
initialization for `spx_accessops.ioctl')
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c: In function
`spx_blkcpy':
/home/tgc/netbsd/2.0/build/usr/src/sys/arch/vax/vsa/spx.c:410: stray '\'
in program

There are more similar errors but I think it's safe to say that they are caused
by the above.

What am I doing wrong?

-tgc

-- 
Tom G. Christensen - Email: tgc@jupiterrise.com
Homepage: http://jupiterrise.com