[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automatic NIC driver selection.
- Date: Tue, 31 Jan 2006 06:04:13 -0600
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: automatic NIC driver selection.
Till Straumann wrote:
> Karel Gardas wrote:
>
>>
>> Hello,
>>
>> has anybody here already hacked RTEMS to support some kind of
>> automatic NIC driver selection? The purpose is to compile once
>> net-enabled binaries and runs on two (or more) machines (pc386 BSP)
>> with different NIC.
>>
>> Thanks,
>> Karel
>> --
>> Karel Gardas kgardas at objectsecurity.com
>> ObjectSecurity Ltd. http://www.objectsecurity.com
>
>
> Yes.
>
> Hacked is the appropriate word.
>
> I write a wrapper 'attach' method which does the driver selection
> (the MVME6100 BSP I recently wrote also does link detection
> there), modifies the 'ifcfg->attach' and 'ifcfg->name' fields and
> vectors to the real 'attach'.
>
Would it be feasible to add another NIC driver entry to the network
initialization table for a probe function? When the probe function is
NULL, it is assumed that the driver exists?
>
> Till
>