On 08/09/17 11:57, Sebastian Huber wrote:
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.
For device drivers on SPARC you can use the classic device drivers, a
driver manager device driver or an IMFS generic node. I would use an
IMFS generic node, see IMFS_make_generic_node() with comments in imfs.h.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel