Re: few questions on 'struct net_device'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/1/07, Roman Mashak <mrv@xxxxxxxxxxxxx> wrote:
Hello, Rajat!
You wrote to "Roman Mashak" <mrv@xxxxxxxxxxxxx> on Thu, 1 Feb 2007 10:44:46
+0530:

 ??>> Thank you very much, it's much clear now. I have one more question
 ??>> about the other hardware relevant fields in 'struct net_device':
 ??>> 'base_addr' and '[r]mem_start/end'. Why is 'base_addr' recommended to
 ??>> be assigned during device probe, and not later when we can be sure we
 ??>> do need this resource? And I didn't notice '8139too' driver uses
 ??>> '[r]mem_start', '[r]mem_end', isn't it mandatory?

 RJ> I don't have much idea about net_device, but the fields that you are
 RJ> referring to are quite obsolete, I think. And hence not much drivers
 RJ> use them today.
As for 'base_addr', it's used in rtl8139 driver, for instance, at device
probing routine It's only assigned to the value gotten from 'ioremap'
function and never being used (at least I didn't find in sources). May be
it's for compatibility reasons?


Thats why I said that its not used now a days. These fields are
probably a carry forward from early days of Linux networking.

Regards,

Rajat

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux