Sparc - Leon - New driver creation
Yannick SARTHOU
yannick.sarthou at erems.fr
Fri Sep 8 11:12:25 UTC 2017
Ok I agree, in this particular an simple API will do the job fine but I
still wanted to know if it is possible to register a "soft device" (more
complicated than my simple MRAM register) to link with a driver or if it
has to be linked with a hardware device ?
Le 08/09/2017 à 11:57, Sebastian Huber a écrit :
> On 08/09/17 11:28, Yannick SARTHOU wrote:
>
>> *What I want to achieve :* I want to create a new driver that allows
>> the user to open a device "/dev/mram" and use ioctl calls to allow
>> the user to control these registers in a safe way.
>
> You don't have to use a device driver for this. You need a device
> driver only if you want to be portable to systems with a user/kernel
> space separation or avoid link time dependencies. You can define a
> simple API with normal functions for your MRAM device.
>
--
Yannick Sarthou
------------------------------------------------------------------------
*Yannick Sarthou *
Informatique
*EREMS *
/13, Chemin de la Madeleine - ZI
31130 - Flourens – France /
*Web :*........ http://www.erems.fr <http://www.erems.fr/>
*Tel :*........ +33 (0)5 61 36 06 06
*Fax :*........ +33 (0)5 61 83 99 45
*Mail :*........ Yannick.Sarthou at erems.fr
<mailto:Yannick.Sarthou at erems.fr>
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170908/824c0c9c/attachment-0002.html>
More information about the devel
mailing list