[486] in linux-scsi channel archive
Re: Compile time override woes
daemon@ATHENA.MIT.EDU (Kevin Lentin)
Wed Aug 9 15:10:36 1995
From: Kevin Lentin <kevinl@cs.monash.edu.au>
To: jnyilas@ford.com (Joseph Nyilas (R))
Date: Wed, 9 Aug 1995 11:54:13 +1000 (EST)
Cc: linux-scsi@vger.rutgers.edu
In-Reply-To: <199508071213.AA29892@internet-mail.ford.com> from "Joseph Nyilas (R)" at Aug 7, 95 08:11:32 am
Joseph Nyilas (R) Wrote ...
>
> I have a Trantor T160 SCSI host adaptor. It seems to work fine
> if I use the generic NCR5380 SCSI driver. However, since my card
> is not recognized by the kernel, I have to pass options into LILO
> in order to get it to work.
>
> I would like to make a bootdisk with the parameters already built into
> the kernel. ( I don't want to use LILO...)
>
> There is an option in the low level driver source (g_NCR5380.c) to override
> the default recognized configuration. (Kernel 1.2.10 source)
>
> I have tried the following compile time hacks:
>
> 1) added a -DGENERIC_NCR5380_OVERRIDE={{0x360, IRQ_NONE, DMA_NONE}}
> to the CFLAGS string in the /usr/src/linux/drivers/scsi/Makefile
I do this in my T130B/NCR53C400 patch and in my own kernel and it works
fine.
>
> All of these methods fail with the following compile errors---
>
> (ie, running make zdisk)
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-f
> rame-pointer -pipe -m386 -c g_NCR5380.c
> g_NCR5380.c:94: parse error before `void'
> g_NCR5380.c:101: `commandline_current' undeclared here (not in a function)
Looks like either the newest kernels have changed a bit that I haven't
noticed or IRQ_NONE and DMA_NONE are not defined to what you think. Try
passing -1,-1 instead and see what's happening.
Does the string 'commandline_current' appear around that area? ie is it a
result of the #defines or is it there.
--
[==================================================================]
[ Kevin Lentin |___/~\__/~\___/~~~~\__/~\__/~\_| ]
[ kevinl@cs.monash.edu.au |___/~\/~\_____/~\______/~\/~\__| ]
[ Macintrash: 'Just say NO!' |___/~\__/~\___/~~~~\____/~~\___| ]
[==================================================================]