lkml.org 
[lkml]   [2017]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRFC: abstraction for RPC'ish hardware drivers ? mailbox ? netif ?
Date
Hi folks,


I'm currently implementing drivers for an industrial backplane, (*1)
which uses some kind of rpc / command-response mechanism.

There're different variants, eg. some proprietary serial interface,
USB link, pci cards, etc. On top of that there's a block-based command-
response mechanism for talking to the individual cards (which may have
multiple channels).

In the device I'm currently working on, we have several cards, eg.
CPU, PMU (power supply) and several IO modules. My primary goal is
docking in the IO cards into IIO (and later the PMU into the power
management infrastructure).

So, I need layers: the serial port (using uart stuff), the packet
layer and IIO. (and wire them via DT)

I see two possible candidates here:
a) mailbox
b) network interface

Both of them seem to be a good fit for packet-based interfaces,
but the network layer might be too much overhead, and (IMHO) doesn't
seem to be suited for direct use from (non network-protocol) drivers.


What do you folks think ?


--mtx

--
Enrico, Sohn von Wilfried, a.d.F. Weigelt,
metux IT consulting
+49-151-27565287

\
 
 \ /
  Last update: 2017-06-25 23:44    [W:0.058 / U:1.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site