Using modules with drivers requireing command line config info

Dave Caswell (davec@apocalypse.org)
Wed, 10 Apr 1996 17:14:57 -0400


In order for the aha152x driver to find its card in my system, I need
to have the line
append = "aha152x=0x340,11,7,1,1,1"
in my lilo.conf file. It seems that it should be possible to put an
analogous line in the /etc/conf.modules, something like:
options aha152x setup=0x340,11,7,1,1,1

I've got through all the docs I have found and the source, and still
can't quite make this work.

Any help would be greatly appreciated. Here's some more details of
the problem:

The Network driver used in the examples in the source use several
static variables to store their config. ie:
static int bnc = 0;
static int utp = 0;
static int io = DE620_IO;
static int irq = DE620_IRQ;
static int clone = DE620_CLONE;

This is ok, one can just assign a new value by tacking an options line
like:
options de620 irq=7 bnc=1
into the conf.modules.

The aha152x driver has an array of structures, ie:
static int setup_count=0;
static struct aha152x_setup {
int io_port;
int irq;
int scsiid;
int reconnect;
int parity;
int synchronous;
int delay;
#ifdef DEBUG_AHA152X
int debug;
#endif
char *conf;
} setup[2];
That I need to squirt some corrected values into.