All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [RFC 0/1] Class driver for raw Ethernet packets
@ 2011-09-23 11:02 Richard Cochran
  2011-09-23 11:02 ` [Xenomai-core] [RFC 1/1] Add a class " Richard Cochran
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Richard Cochran @ 2011-09-23 11:02 UTC (permalink / raw)
  To: xenomai

This patch adds a class driver for raw Ethernet drivers under
Xenomai. The goal is to support industrial protocols such as EtherCAT
and IEC 61850, where the "stack" is a user space program needing
direct access at the packet level. The class driver offers interfaces
for registration, buffer management, and packet sending/receiving.

Although this patch is a kind of first draft, still I have it working
on the Freescale P2020 with a real world application, with very good
results. I can post a patch series for the gianfar driver in the ipipe
tree, if anyone is interested.

The user space interface is a character device and not a socket, simply
because my applications will probably never need fancy socket
options. The class driver could surely be made to offer a socket
instead, but I think the character is sufficient.

The class driver is clearly in the wrong directory within the source
tree, but I put it there just to get started. It really does not fit
to any of the other drivers, so it probably would need its own place
under ksrc/drivers.

Thanks in advance for your comments,

Richard


Richard Cochran (1):
  Add a class driver for raw Ethernet packets.

 include/rtdm/rtpacket.h       |   99 ++++++++++++
 ksrc/drivers/testing/Kconfig  |    8 +
 ksrc/drivers/testing/Makefile |    3 +
 ksrc/drivers/testing/packet.c |  352 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 462 insertions(+), 0 deletions(-)
 create mode 100644 include/rtdm/rtpacket.h
 create mode 100644 ksrc/drivers/testing/packet.c

-- 
1.7.2.5



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

end of thread, other threads:[~2011-09-28  8:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 11:02 [Xenomai-core] [RFC 0/1] Class driver for raw Ethernet packets Richard Cochran
2011-09-23 11:02 ` [Xenomai-core] [RFC 1/1] Add a class " Richard Cochran
2011-09-23 11:27 ` [Xenomai-core] [RFC 0/1] Class " Richard Cochran
2011-09-23 13:34 ` Peter Soetens
2011-09-23 13:50 ` Jan Kiszka
2011-09-26 11:41   ` Richard Cochran
2011-09-27  8:26     ` Jan Kiszka
2011-09-27 12:01       ` Richard Cochran
2011-09-27 12:20         ` Jan Kiszka
2011-09-27 15:10           ` Richard Cochran
2011-09-27 15:16             ` Jan Kiszka
2011-09-27 16:05               ` Richard Cochran
2011-09-27 16:26                 ` Jan Kiszka
2011-09-27 16:30                   ` Jan Kiszka
2011-09-27 17:04                     ` Richard Cochran
2011-09-27 17:25                       ` Jan Kiszka
2011-09-27 17:00                   ` Richard Cochran
2011-09-27 17:25                     ` Jan Kiszka
2011-09-28  8:16                       ` Richard Cochran
2011-09-28  8:29                         ` Jan Kiszka
2011-09-27 18:02                     ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.