From: gwenhael <gwenjo@free.fr>
To: gentoo-user-fr@lists.gentoo.org
Subject: Re: [gentoo-user-fr] [HS] Cherche information pour créer un driver basé sur parport
Date: Thu, 27 Dec 2007 09:15:57 +0100 [thread overview]
Message-ID: <20071227091557.0dafb4f7@omniBook> (raw)
In-Reply-To: <1198695688.2088.3.camel@tuxduo.rezid.org>
Salut,
On Wed, 26 Dec 2007 20:01:28 +0100
Damien Thébault <damien.thebault@laposte.net> wrote:
> Le mercredi 26 décembre 2007 à 18:50 +0100, gwenhael a écrit :
> > Bonjour,
> > Je sais que c'est hors sujet mais j'avoue ne pas trop savoir à qui demander...
> > En fait je suis à la recherche d'un bon exemple (de préférence commenté) en vue de créer un driver qui viendrait au dessus de parport en vue de pouvoir piloter un lcd.
> > J'ai fait pas mal de recherche mais je n'ai rien trouvé qui puisse m'aider afin de réaliser ce module
> > Merci d'avance
> > Gwenhaël
>
> Tu peux regarder le livre "Linux Device Drivers (3rd
> edition)" (disponible aussi online). En plus d'être un très bon bouquin
> en ce qui concerne les drivers linux en général, il y a un exemple
> d'utilisation du port parallèle, donc ça pourrait t'aider encore plus.
>
J'ai en version papier la seconde édition, du côtés de l'utilisation de parport, c'est juste un exemple de hierarchie de module, ensuite l'utilisation du port paralléle est plutôt direct au niveau du matériel sans autre driver.
Par contre je sais pas où/comment trouver la version online de la troisième édition.
> Sinon tu peux toujours faire en user-space, genre une bibliothèque.
> C'est plus simple, c'est pas grave quand ça plante (pendant le
> développement), le seul truc c'est que du coup il faut adapter le
> programme pour (pas moyen de faire un echo "Hello" > /dev/mylcd).
>
C'est déjà fait, mais franchement ca limite vachement les possibilités d'utilisations, vu que pour chaque programme faut se taper tout le code de l'init, et ca bride un peu...
a+
Gwenhaël
> --
> Damien Thebault
>
> Key C15AB8AF
> Fingerprint 8FB9 8576 7033 4B45 3DF5 88E8 5471 1A44 C15A B8AF
-------
http://www.trabucayre.com
Arsenic et vieilles ferailles
--
gentoo-user-fr@gentoo.org mailing list
next prev parent reply other threads:[~2007-12-27 8:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-26 17:50 [gentoo-user-fr] [HS] Cherche information pour créer un driver basé sur parport gwenhael
2007-12-26 19:01 ` Damien Thébault
2007-12-27 8:15 ` gwenhael [this message]
2007-12-27 11:22 ` Aurélien Francillon
2007-12-27 14:30 ` gwenhael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071227091557.0dafb4f7@omniBook \
--to=gwenjo@free.fr \
--cc=gentoo-user-fr@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox