* Porting Linux v2.2.x Ethernet driver to v2.4.x?
@ 2000-11-09 18:01 Steven_Snyder
2000-11-09 18:10 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: Steven_Snyder @ 2000-11-09 18:01 UTC (permalink / raw)
To: linux-kernel
Hello.
I am about to modify a Linux v2.2.x-compatible Ethernet driver to allow it to
work in the new v2.4.x kernel. Are there any documents which describe the
differences in the device driver models (particularly PCI and Ethernet) of the 2
kernel versions? If so, where can I find them?
Thank you.
(Sorry about the advertisement below.)
PLANET PROJECT will connect millions of people worldwide through the combined
technology of 3Com and the Internet. Find out more and register now at
http://www.planetproject.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Porting Linux v2.2.x Ethernet driver to v2.4.x?
2000-11-09 18:01 Porting Linux v2.2.x Ethernet driver to v2.4.x? Steven_Snyder
@ 2000-11-09 18:10 ` Jeff Garzik
2000-11-09 18:12 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2000-11-09 18:10 UTC (permalink / raw)
To: Steven_Snyder; +Cc: linux-kernel
Steven_Snyder@3com.com wrote:
>
> Hello.
>
> I am about to modify a Linux v2.2.x-compatible Ethernet driver to allow it to
> work in the new v2.4.x kernel. Are there any documents which describe the
> differences in the device driver models (particularly PCI and Ethernet) of the 2
> kernel versions? If so, where can I find them?
Not all in one place. Read:
Documentation/pci.txt
Documentation/DMA-mapping.txt
Documentation/IO-mapping.txt
and the attached document, regarding netdevice member locking rules.
Your best reference is other PCI ethernet drivers. grep for
'pci_module_init' in drivers/net/*.c of the most recent 2.4.x kernel,
for a good start.
Also... before you start thinking about gunking-up your driver with all
sorts of backwards-compatibility code... remember that most 2.4.x
drivers can easily be backported to 2.2.x with a few magic macros and
static inline functions. I have an example of this sort of thing at
http://gtf.org/garzik/drivers/kcompat24/
Jeff
--
Jeff Garzik |
Building 1024 | Would you like a Twinkie?
MandrakeSoft |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Porting Linux v2.2.x Ethernet driver to v2.4.x?
@ 2000-11-09 18:10 Dunlap, Randy
0 siblings, 0 replies; 4+ messages in thread
From: Dunlap, Randy @ 2000-11-09 18:10 UTC (permalink / raw)
To: 'Steven_Snyder@3com.com', linux-kernel
Search the lkml archives. Here are 2 instances
to find:
from jamal, 2000-jan-6: [ANNOUNCE] SOFTNETing Network Drivers HOWTO
from kuznet, 2000-feb-14: "softnet" drivers: an attempt to clarify
from dave miller, 2000-feb-9: new network driver interface changes, README
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0002.1/0408.html
from jamal, 2000-feb-10: ditto
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0002.1/0461.html
from dave miller, 2000-feb-12: ditto
_______________________________________________
|randy.dunlap_at_intel.com 503-677-5408|
|NOTE: Any views presented here are mine alone|
|& may not represent the views of my employer.|
-----------------------------------------------
> -----Original Message-----
> From: Steven_Snyder@3com.com [mailto:Steven_Snyder@3com.com]
> Sent: Thursday, November 09, 2000 10:01 AM
> To: linux-kernel@vger.kernel.org
> Subject: Porting Linux v2.2.x Ethernet driver to v2.4.x?
>
>
>
>
> Hello.
>
> I am about to modify a Linux v2.2.x-compatible Ethernet
> driver to allow it to
> work in the new v2.4.x kernel. Are there any documents which
> describe the
> differences in the device driver models (particularly PCI and
> Ethernet) of the 2
> kernel versions? If so, where can I find them?
>
> Thank you.
>
> (Sorry about the advertisement below.)
>
>
>
>
> PLANET PROJECT will connect millions of people worldwide
> through the combined
> technology of 3Com and the Internet. Find out more and register now at
> http://www.planetproject.com
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Porting Linux v2.2.x Ethernet driver to v2.4.x?
2000-11-09 18:10 ` Jeff Garzik
@ 2000-11-09 18:12 ` Jeff Garzik
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2000-11-09 18:12 UTC (permalink / raw)
To: Steven_Snyder, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 252 bytes --]
...and the attached document, referred to in the previous mail. :) I
think I posted this recently, but it's small so a repost is no big deal.
--
Jeff Garzik |
Building 1024 | Would you like a Twinkie?
MandrakeSoft |
[-- Attachment #2: netdevices.txt --]
[-- Type: text/plain, Size: 742 bytes --]
Network Devices, the Kernel, and You!
Introduction
============
The following is a random collection of documentation regarding
network devices.
struct net_device synchronization rules
=======================================
dev->open:
Locking: Inside rtnl_lock() semaphore.
Sleeping: OK
dev->stop:
Locking: Inside rtnl_lock() semaphore.
Sleeping: OK
dev->do_ioctl:
Locking: Inside rtnl_lock() semaphore.
Sleeping: OK
dev->get_stats:
Locking: Inside dev_base_lock spinlock.
Sleeping: NO
dev->hard_start_xmit:
Locking: Inside dev->xmit_lock spinlock.
Sleeping: NO
dev->tx_timeout:
Locking: Inside dev->xmit_lock spinlock.
Sleeping: NO
dev->set_multicast_list:
Locking: Inside dev->xmit_lock spinlock.
Sleeping: NO
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-11-09 18:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-09 18:01 Porting Linux v2.2.x Ethernet driver to v2.4.x? Steven_Snyder
2000-11-09 18:10 ` Jeff Garzik
2000-11-09 18:12 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2000-11-09 18:10 Dunlap, Randy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox