<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>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 ?<br>
</p>
<br>
<div class="moz-cite-prefix">Le 08/09/2017 à 11:57, Sebastian Huber
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:aeea9da3-707b-796d-852b-7e9d926ba583@embedded-brains.de">On
08/09/17 11:28, Yannick SARTHOU wrote:
<br>
<br>
<blockquote type="cite">*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.
<br>
</blockquote>
<br>
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.
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<!-- ENTETE -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- A MODIFIER : PréSarthou Sarthou -->
<title>Yannick Sarthou</title>
<!-- CORPS -->
<!-- Barre horizontale -->
<hr size="2" align="left" width="28%">
<!-- A MODIFIER : PréSarthou Sarthou --> <b> <span
style="font-family:"Comic Sans MS";color:#333399">Yannick
Sarthou</span> </b> <br>
<!-- A MODIFIER : Informatique --> <span
style="font-size:9.0pt;font-family:"Comic Sans
MS";color:#333399">Informatique</span>
<!-- Renseigments société -->
<blockquote>
<!-- Sarthou --> <b> <span
style="font-size:12.0pt;font-family:"Arial";color:#993300">EREMS</span>
</b> <br>
<!-- Adresse --> <i> <span
style="font-size:7.0pt;font-family:"Arial";color:#666699">
13, Chemin de la Madeleine - ZI<br>
31130 - Flourens – France </span> </i> <br>
<span
style="font-size:8.0pt;font-family:"Arial";color:#666699">
<!-- Site web --> <b>Web :</b>........ <a
href="http://www.erems.fr/"
style="text-decoration:none;text-underline:none">http://www.erems.fr</a><br>
<!-- A MODIFIER : Telephone --> <b>Tel :</b>........ +33 (0)5
61 36 06 06<br>
<!-- Fax --> <b>Fax :</b>........ +33 (0)5 61 83 99 45<br>
<!-- A MODIFIER : Adresse e-mail de réponse (2 endroits) --> <b>Mail
:</b>........ <a href="mailto:Yannick.Sarthou@erems.fr"
style="text-decoration:none;text-underline:none">Yannick.Sarthou@erems.fr</a>
</span> </blockquote>
<!-- Barre horizontale -->
<hr size="2" align="left" width="28%"> </div>
</body>
</html>