mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Concerning a driver rewrite (NOT THE KERNEL)
@ 2001-12-26 18:54 victor1 torres
  2001-12-26 19:42 ` writing device drivers Eliezer dos Santos Magalhães
  0 siblings, 1 reply; 18+ messages in thread
From: victor1 torres @ 2001-12-26 18:54 UTC (permalink / raw)
  To: pavel; +Cc: linux-kernel

To clarify something I am not the WINMODEM Manufacture that would be Intel. 
Ian and I from linmodems.org have been working on building a AC97 Modem 
driver.


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* writing device drivers
  2001-12-26 18:54 Concerning a driver rewrite (NOT THE KERNEL) victor1 torres
@ 2001-12-26 19:42 ` Eliezer dos Santos Magalhães
  2001-12-26 20:01   ` Arnaldo Carvalho de Melo
                     ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Eliezer dos Santos Magalhães @ 2001-12-26 19:42 UTC (permalink / raw)
  To: linux-kernel

Hello all ,
where can I find a good paper , or something good that could teach me how to
write device drivers ?? I really would like to know , mainly network device
drivers , for example , how could I re-write the rtl8139 driver ?
Please , if someone can help me ...
Tankx ...


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: writing device drivers
  2001-12-26 19:42 ` writing device drivers Eliezer dos Santos Magalhães
@ 2001-12-26 20:01   ` Arnaldo Carvalho de Melo
  2001-12-26 20:13   ` Robert Szentmihalyi
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 18+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-12-26 20:01 UTC (permalink / raw)
  To: Eliezer, dos, Santos,
	=?iso-8859-1?Q?Magalh=E3es_=3Cmagalhaes=40intime-ne?=,
	=?iso-8859-1?B?dC5jb20uYnI+?=
  Cc: linux-kernel

Em Wed, Dec 26, 2001 at 05:42:16PM -0200, Eliezer dos Santos Magalhães escreveu:
> where can I find a good paper , or something good that could teach me how to
> write device drivers ?? I really would like to know , mainly network device
> drivers , for example , how could I re-write the rtl8139 driver ?

http://www.xml.com/ldd/chapter/book/index.html

More specifically:

Chapter 14: Network Drivers
http://www.xml.com/ldd/chapter/book/ch14.html

- Arnaldo

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: writing device drivers
  2001-12-26 19:42 ` writing device drivers Eliezer dos Santos Magalhães
  2001-12-26 20:01   ` Arnaldo Carvalho de Melo
@ 2001-12-26 20:13   ` Robert Szentmihalyi
  2001-12-26 20:15   ` Riley Williams
  2001-12-26 22:41   ` Legacy Fishtank
  3 siblings, 0 replies; 18+ messages in thread
From: Robert Szentmihalyi @ 2001-12-26 20:13 UTC (permalink / raw)
  To: Eliezer dos Santos Magalhães, linux-kernel

On Wednesday, 26. December 2001 20:42, Eliezer dos Santos Magalhães 
wrote:
> Hello all ,
> where can I find a good paper , or something good that could
> teach me how to write device drivers ?? I really would like to
> know , mainly network device drivers , for example , how could I
> re-write the rtl8139 driver ? Please , if someone can help me ...
> Tankx ...

One of the best books on this topic is "Linux Device Drivers" by 
Alessandro Rubini & Jonathan Corbet.
You may have a look at it at 
http://www.xml.com/ldd/chapter/book/index.html
but I suggest buying the printed book. It's definately worth the 
money.

hth,
 Robert

-- 
Where do you want to be tomorrow?

Entracom. Building Linux systems.
http://www.entracom.de

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: writing device drivers
  2001-12-26 19:42 ` writing device drivers Eliezer dos Santos Magalhães
  2001-12-26 20:01   ` Arnaldo Carvalho de Melo
  2001-12-26 20:13   ` Robert Szentmihalyi
@ 2001-12-26 20:15   ` Riley Williams
  2001-12-26 22:41   ` Legacy Fishtank
  3 siblings, 0 replies; 18+ messages in thread
From: Riley Williams @ 2001-12-26 20:15 UTC (permalink / raw)
  To: Eliezer dos Santos Magalhães; +Cc: Linux Kernel

Hi Eliezer.

> where can I find a good paper , or something good that could teach
> me how to write device drivers ?? I really would like to know ,
> mainly network device drivers , for example , how could I re-write
> the rtl8139 driver ?

A good starting point is the book "Linux Device Drivers" published by
O'Reilly Associates (with which I have no relationship other than as a
satisfied customer, depite my name). Details can be found at...

	http://www.oreilly.com/catalog/linuxdrive2/

...regarding the second edition thereof - I have the first edition
myself, which covers the 2.0 kernel series, but I believe the second
edition covers the 2.4 series kernels, SMP and USB, all of which were
missing from the original.

Best wishes from Riley.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: writing device drivers
  2001-12-26 19:42 ` writing device drivers Eliezer dos Santos Magalhães
                     ` (2 preceding siblings ...)
  2001-12-26 20:15   ` Riley Williams
@ 2001-12-26 22:41   ` Legacy Fishtank
  2001-12-27 14:56     ` Eliezer dos Santos Magalhães
  3 siblings, 1 reply; 18+ messages in thread
From: Legacy Fishtank @ 2001-12-26 22:41 UTC (permalink / raw)
  To: Eliezer dos Santos Magalhães; +Cc: linux-kernel

On Wed, Dec 26, 2001 at 05:42:16PM -0200, Eliezer dos Santos Magalhães wrote:
> where can I find a good paper , or something good that could teach me how to
> write device drivers ?? I really would like to know , mainly network device
> drivers , for example , how could I re-write the rtl8139 driver ?

For kernel 2.4, the -2nd- edition of _Linux Device Drivers_ is good, but
it doesn't cover nearly everything you need to know...  your best
reference is existing network driver source code for recent PCI drivers.

And, are you having problems with rtl8139 or was that just an example?  :)

	Jeff



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: writing device drivers
  2001-12-26 22:41   ` Legacy Fishtank
@ 2001-12-27 14:56     ` Eliezer dos Santos Magalhães
  2001-12-27 14:57       ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 18+ messages in thread
From: Eliezer dos Santos Magalhães @ 2001-12-27 14:56 UTC (permalink / raw)
  To: linux-kernel


----- Original Message -----
From: "Legacy Fishtank" <garzik@havoc.gtf.org>
To: "Eliezer dos Santos Magalhães" <magalhaes@intime-net.com.br>
Cc: <linux-kernel@vger.kernel.org>
Sent: Wednesday, December 26, 2001 8:41 PM
Subject: Re: writing device drivers


> On Wed, Dec 26, 2001 at 05:42:16PM -0200, Eliezer dos Santos Magalhães
wrote:
> > where can I find a good paper , or something good that could teach me
how to
> > write device drivers ?? I really would like to know , mainly network
device
> > drivers , for example , how could I re-write the rtl8139 driver ?
>
> For kernel 2.4, the -2nd- edition of _Linux Device Drivers_ is good, but
> it doesn't cover nearly everything you need to know...  your best
> reference is existing network driver source code for recent PCI drivers.
>
> And, are you having problems with rtl8139 or was that just an example?  :)
>
> Jeff
>
No , it was just an example , I would like to take a source of a device
drive , and study the code ... well , I have got that book ... I think I
need to read it very slowly ... thank for the help ...


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: writing device drivers
  2001-12-27 14:56     ` Eliezer dos Santos Magalhães
@ 2001-12-27 14:57       ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 18+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-12-27 14:57 UTC (permalink / raw)
  To: Eliezer, dos, Santos,
	=?iso-8859-1?Q?Magalh=E3es_=3Cmagalhaes=40intime-ne?=,
	=?iso-8859-1?B?dC5jb20uYnI+?=
  Cc: linux-kernel

Em Thu, Dec 27, 2001 at 12:56:58PM -0200, Eliezer dos Santos Magalhães escreveu:
> No , it was just an example , I would like to take a source of a device
> drive , and study the code ... well , I have got that book ... I think I
> need to read it very slowly ... thank for the help ...

Some tips: there's some IRC channels that you may find interesting, namely:

#kernelnewbies and #kernel-br, both at irc.openprojects.net, go there and
you'll find plenty of helpful people willing to help you to get into this
kernel hacking journey, join us! :)

- Arnaldo

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
  2001-12-26 19:02 Concerning a driver rewrite (NOT THE KERNEL) victor1 torres
@ 2001-12-26 20:47 ` Alan Cox
  0 siblings, 0 replies; 18+ messages in thread
From: Alan Cox @ 2001-12-26 20:47 UTC (permalink / raw)
  To: victor1 torres; +Cc: pavel, alan, linux-kernel

> Is the Modem just there or is it just able to transfer analog signal?

The codec is on the AML riser or motherboard, it digitizes the signal coming
in and converts the outgoing digital stream to analog. It also has a few
controls for the line signalling.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
@ 2001-12-26 19:02 victor1 torres
  2001-12-26 20:47 ` Alan Cox
  0 siblings, 1 reply; 18+ messages in thread
From: victor1 torres @ 2001-12-26 19:02 UTC (permalink / raw)
  To: pavel, alan; +Cc: linux-kernel

Alan-
What do you mean by this??
(The line interface on the i810 chipset seems to be totally documented. Its
a dumb digitizer with AC97 2.0 modem on it.)
Is the Modem just there or is it just able to transfer analog signal?

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
  2001-12-24 22:30 ` Pavel Machek
@ 2001-12-25 22:19   ` Alan Cox
  0 siblings, 0 replies; 18+ messages in thread
From: Alan Cox @ 2001-12-25 22:19 UTC (permalink / raw)
  To: Pavel Machek; +Cc: victor1 torres, alan, linux-kernel

> Wow! Does that mean that this winmodem will be supported with linux
> for data calls? Finally some winmodem manufacturer that saw the light
> ;-). Will DSP code be binary only or will it include source? [I guess
> binary only, but...]

The line interface on the i810 chipset seems to be totally documented. Its
a dumb digitizer with AC97 2.0 modem on it.

Alan

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
  2001-12-21 18:45 victor1 torres
  2001-12-22  0:26 ` Alan Cox
@ 2001-12-24 22:30 ` Pavel Machek
  2001-12-25 22:19   ` Alan Cox
  1 sibling, 1 reply; 18+ messages in thread
From: Pavel Machek @ 2001-12-24 22:30 UTC (permalink / raw)
  To: victor1 torres; +Cc: alan, linux-kernel

Hi!

> (How do you intend the two pieces to interact ?)
> I intend for the two pieces to interact with each other since they both have 
> 
> access to the DSP. (DSP code will be aviable in late Janurary for the 
> Modem).

Wow! Does that mean that this winmodem will be supported with linux
for data calls? Finally some winmodem manufacturer that saw the light
;-). Will DSP code be binary only or will it include source? [I guess
binary only, but...]
								Pavel
-- 
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
@ 2001-12-22 18:33 victor1 torres
  0 siblings, 0 replies; 18+ messages in thread
From: victor1 torres @ 2001-12-22 18:33 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

Alan-
Thank you in advance Alan. I would appreciate it.
Victor

 > You driver also seems to be assuming the sound
 > driver has initialised the codec bus and codecs.) How could I fix it if 
the
 > sound codec is not initialised so that the modem codec could initialised
 > the codec bus and codecs?

As far as I can tell from a scan of the docs you need the drivers to
co-operate because if that isn't done if the modem driver inits the AC97
then it will break running audio (and vice versa). The sound driver also
has the interrupt line and status handling so that appears to need to
become shared code - or with the sound driver calling out to the modem
driver.

My i810 board doesn't have a modem or an AMR slot but I can certainly help
integrate the pieces. Right now Doug Ledford is doing major reworking on
the i810 driver (and having tried to fix audio bugs in that before I
really appreciate him taking on that battle) but after that I'm happy to
give you a hand


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
@ 2001-12-22 18:32 victor1 torres
  0 siblings, 0 replies; 18+ messages in thread
From: victor1 torres @ 2001-12-22 18:32 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

Alan-
Than you in advance Alan.

 > You driver also seems to be assuming the sound
 > driver has initialised the codec bus and codecs.) How could I fix it if 
the
 > sound codec is not initialised so that the modem codec could initialised
 > the codec bus and codecs?

As far as I can tell from a scan of the docs you need the drivers to
co-operate because if that isn't done if the modem driver inits the AC97
then it will break running audio (and vice versa). The sound driver also
has the interrupt line and status handling so that appears to need to
become shared code - or with the sound driver calling out to the modem
driver.

My i810 board doesn't have a modem or an AMR slot but I can certainly help
integrate the pieces. Right now Doug Ledford is doing major reworking on
the i810 driver (and having tried to fix audio bugs in that before I
really appreciate him taking on that battle) but after that I'm happy to
give you a hand


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
  2001-12-21 18:45 victor1 torres
@ 2001-12-22  0:26 ` Alan Cox
  2001-12-24 22:30 ` Pavel Machek
  1 sibling, 0 replies; 18+ messages in thread
From: Alan Cox @ 2001-12-22  0:26 UTC (permalink / raw)
  To: victor1 torres; +Cc: alan, linux-kernel

> You driver also seems to be assuming the sound
> driver has initialised the codec bus and codecs.) How could I fix it if the 
> sound codec is not initialised so that the modem codec could initialised  
> the codec bus and codecs?

As far as I can tell from a scan of the docs you need the drivers to
co-operate because if that isn't done if the modem driver inits the AC97
then it will break running audio (and vice versa). The sound driver also
has the interrupt line and status handling so that appears to need to 
become shared code - or with the sound driver calling out to the modem
driver.

My i810 board doesn't have a modem or an AMR slot but I can certainly help
integrate the pieces. Right now Doug Ledford is doing major reworking on
the i810 driver (and having tried to fix audio bugs in that before I 
really appreciate him taking on that battle) but after that I'm happy to
give you a hand

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
@ 2001-12-21 18:45 victor1 torres
  2001-12-22  0:26 ` Alan Cox
  2001-12-24 22:30 ` Pavel Machek
  0 siblings, 2 replies; 18+ messages in thread
From: victor1 torres @ 2001-12-21 18:45 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

Alan-
(How do you intend the two pieces to interact ?)
I intend for the two pieces to interact with each other since they both have 
access to the DSP. (DSP code will be aviable in late Janurary for the 
Modem).
(If you are also loading the sound driver you are likely to get into a mess
with current 2.4 because the sound code sticks its nose into the codec bus
somewhat further nowdays. )
I understand that the codec sticks its nose into the codec bus but can´t I 
add another (nose) into it also.
You driver also seems to be assuming the sound
driver has initialised the codec bus and codecs.) How could I fix it if the 
sound codec is not initialised so that the modem codec could initialised  
the codec bus and codecs?
Thank you


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Concerning a driver rewrite (NOT THE KERNEL)
  2001-12-21 18:15 victor1 torres
@ 2001-12-21 18:44 ` Alan Cox
  0 siblings, 0 replies; 18+ messages in thread
From: Alan Cox @ 2001-12-21 18:44 UTC (permalink / raw)
  To: victor1 torres; +Cc: camel_3, linux-kernel

> I´m working on a Modem driver that run´s with kernel 2.4x I have got the 
> code running on a 2.2x system with no trouble. The driver is for a Ac´97 
> Modem (WINMODEM). The driver can find the modem and print out output but I 
> can´t seem to include DevFs, I would also like to implement Interrupt 
> Handling.
> Here is the driver location:
> DRIVER LOCATION IS
> http://www.geocities.com/camel_10.geo/linux/ac97_modem20011221.tar.gz

If you are also loading the sound driver you are likely to get into a mess
with current 2.4 because the sound code sticks its nose into the codec bus
somewhat further nowdays. You driver also seems to be assuming the sound
driver has initialised the codec bus and codecs.

How do you intend the two pieces to interact ?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Concerning a driver rewrite (NOT THE KERNEL)
@ 2001-12-21 18:15 victor1 torres
  2001-12-21 18:44 ` Alan Cox
  0 siblings, 1 reply; 18+ messages in thread
From: victor1 torres @ 2001-12-21 18:15 UTC (permalink / raw)
  To: camel_3; +Cc: linux-kernel

No this isn´t a driver rewrite for the kernel I need help on rewriting some 
code that I have to be only working with 2.4x kernel´s do you think you 
could help. I would appericate it.

INFO:
I´m working on a Modem driver that run´s with kernel 2.4x I have got the 
code running on a 2.2x system with no trouble. The driver is for a Ac´97 
Modem (WINMODEM). The driver can find the modem and print out output but I 
can´t seem to include DevFs, I would also like to implement Interrupt 
Handling.
Here is the driver location:
DRIVER LOCATION IS
http://www.geocities.com/camel_10.geo/linux/ac97_modem20011221.tar.gz
Please
Thank you in advance

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2001-12-27 14:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-26 18:54 Concerning a driver rewrite (NOT THE KERNEL) victor1 torres
2001-12-26 19:42 ` writing device drivers Eliezer dos Santos Magalhães
2001-12-26 20:01   ` Arnaldo Carvalho de Melo
2001-12-26 20:13   ` Robert Szentmihalyi
2001-12-26 20:15   ` Riley Williams
2001-12-26 22:41   ` Legacy Fishtank
2001-12-27 14:56     ` Eliezer dos Santos Magalhães
2001-12-27 14:57       ` Arnaldo Carvalho de Melo
  -- strict thread matches above, loose matches on Subject: below --
2001-12-26 19:02 Concerning a driver rewrite (NOT THE KERNEL) victor1 torres
2001-12-26 20:47 ` Alan Cox
2001-12-22 18:33 victor1 torres
2001-12-22 18:32 victor1 torres
2001-12-21 18:45 victor1 torres
2001-12-22  0:26 ` Alan Cox
2001-12-24 22:30 ` Pavel Machek
2001-12-25 22:19   ` Alan Cox
2001-12-21 18:15 victor1 torres
2001-12-21 18:44 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®