[323] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Trantor T160

daemon@ATHENA.MIT.EDU (Joseph Nyilas (R))
Wed Jul 5 13:36:09 1995

From: jnyilas@pt8166.pto.ford.com (Joseph Nyilas (R))
To: linux-scsi@vger.rutgers.edu
Date: Wed, 5 Jul 1995 07:36:37 -0400 (EDT)

I have a Trantor T160 SCSI host adaptor running linux-1.2.10. Since my card
isn't supported directly, I have to make do using the generic SCSI driver.
I also have to pass arguments into the kernel (booting from lilo) in order to
allow the kernel to recognize my card.
 
I would like to recompile my kernel and override the autoprobe routines
in g_NCR5380.c
 
In the scsi_HOWTO, it says that you can:
 
        "Define GENERIC_NCR5380_OVERRIDE to be an array of tuples
        with port, irq, dma, board type"
 
 
The sample code provided is:
#define GENERIC_NCR5380_OVERRIDE {{0x330, 5, DMA_NONE, BOARD_NCR5380}}
(of course, I would put in the appropriate port, irq, etc for my system)
 
 
My question is, where does one put this statement?? (sorry, I'm a c loser)
 

I tried putting it in the g_NCR5380.c file (didn't work...)
Putting that statement in g_NCR5380.h failed , as did
placing it the /usr/src/linux/driver/scsi/Makefile as a CFLAG ,ie
	-DGENERIC_NCR5380_OVERRIDE={{appropriate, stuff, here}}
didn't work either. 

When I try to compile, I always get various compile errors (it differs
depending on where I put the define statement, but there is always a parse
error involved.)
 
 
Can anyone recomend where that define SHOULD be placed to eliminate
those troublesome compile errors??
 
Thanks very much!!
 


-joe
jnyilas@pt8166.pto.ford.com


home help back first fref pref prev next nref lref last post