From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: How do you force an Ethernet mode ???
Date: Thu, 12 Aug 1999 08:38:52 -0600 (MDT) [thread overview]
Message-ID: <199908121438.IAA19658@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.4.10.9908112025240.1966-100000@neptune.terran> from "B. James Phillippe" at Aug 11, 99 08:30:35 pm
B. James Phillippe wrote:
>
> If you are using tulip.c, you can pass parameters on the insmod line as
> follows (from the source):
>
> #define MAX_UNITS 8
> /* Used to pass the full-duplex flag, etc. */
> static int full_duplex[MAX_UNITS] = {0, };
> static int options[MAX_UNITS] = {0, };
> static int mtu[MAX_UNITS] = {0, };
>
> /* The possible media types that can be set in options[] are: */
> static const char * const medianame[] = {
> "10baseT", "10base2", "AUI", "100baseTx",
> "10baseT-FD", "100baseTx-FD", "100baseT4", "100baseFx",
> "100baseFx-FD", "MII 10baseT", "MII 10baseT-FD", "MII",
> "10baseT(forced)", "MII 100baseTx", "MII 100baseTx-FD", "MII
> 100baseT4",};
> ...
>
> MODULE_PARM(options, "1-" __MODULE_STRING(MAX_UNITS) "i");
^^^^^^^
^^^^^^^
It may be not immedately clear but that code fragment really means that
an argument name is "options" and, from the sources once again but
another part, its parameter is an index to the table above. So to use
"10baseT(forced)" you do 'insmod tulip options=12' or, much better, you
put in /etc/conf.modules a line like that:
options tulip options=12 debug=1
and whatever else which is recognized and you feel like it. Yes,
"options" twice. The first one is a part of a syntax of conf.modules;
the second one happens to be a name of a tulip module argument.
If you want to argue that this is not the best possible syntax then I
agree. :-)
Michal
next prev parent reply other threads:[~1999-08-12 14:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-12 3:13 How do you force an Ethernet mode ??? Segrest, Bob
1999-08-12 3:30 ` B. James Phillippe
1999-08-12 14:38 ` Michal Jaegermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-08-12 10:33 Segrest, Bob
1999-08-12 13:55 ` James Bremer
1999-08-12 14:47 Larry Sendlosky
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox