public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Beiter <w.beiter@aon.at>
To: Andrew Morton <akpm@linux-foundation.org>,
	Greg KH <greg@kroah.com>,
	linux-kernel@vger.kernel.org, Lior Dotan <liodot@gmail.com>
Cc: "Wolfgang Beiter" <w.beiter@aon.at>,
	"Günter Gebhardt" <g.gebhardt@meilhaus.de>
Subject: Staging: Fixes for me4000 pci data collection driver
Date: Fri, 17 Oct 2008 19:32:56 +0200	[thread overview]
Message-ID: <48F8CC48.5040202@aon.at> (raw)

Dear linux team,

try to give some contribution on merging me4000.c driver into linux 
kernel. Please be kind on reading mail, as Im not skilled in
English conversation.



|TODO:


|> 	- checkpatch.pl cleanups


|> 	- sparse cleanups


|> 	- possible /proc interaction cleanups


|> 	- more info needed for Kconfig entry
according to the hardware vendor, several I/O cards (me4000 family) 
are supported by the "me4000" driver.
°) ME-4610 alias ME-JekyII: low cost 16 bit A/D converter.
                             16channels,500 kSsamples/s (about 400 US$)
°) ME-46xx alias ME-FoXX:   several flavours with additional I/O
                             (e.g. 16 bit D/A, isolated inputs ...)
                             (about 1000 to 2000 US$)
Please, for spezific information about the hardware (ME-4610, ME-46xx)
take a look at the vendors web presentation as an English edition is
also offered.
The hardware is up to date (ME-46xx are available also as PCI express).
Applications are: Analog signal aquisition (e.g. sound, acoustic...)
                   Data Logging (temperature, preasure, position ...)
                   Signal Analysis (Digital Oszilloskop, FFT ...)
                   Real Time Applications.
Hardware vendor:  meilhaus
Linux Driver support for customer: meilhaus/sourceforge.net
                                    (support broken since middle 2006)



|> 	- real device id?
File "me4000.h" defines a section "PCI vendor and device ID" for
different me4000 hardware. Maybe thats what you need ?



|> 	- module parameter cleanup



|erm.  Exactly what is the userspace interface which this driver is
|implementing?
Up to now, userspace programs are simple konsole test programs in C.
They are supplied by the "me4000-2.0.7.tar.gz" tarball, downloadable
from www.sourceforge.net/projects/meilhaus.
For each hardware section on the PCI board a simple C testprogram is 
provided. The hardware sections are...
ai... analog input (testing the A/D converter, data written to
       console or file).
ao... analog output (testing the D/A converter if available on PCI
       board).
dio... digital I/O (reading/writing to one of the 4 8Bit ports)
ext_int... extern interrupt (a signal transition e.g. 0V to 5V on a
            dedicated PIN will cause text output on console).
cnt... counter (counting signal transitions on a didcated PIN)

All me4000 testprograms uses System Calls me4000.c implements.
fd = open(me4000-device-node,...)), read(fd,...), write(fd,...)
                                    ioctl(fd,...), close(fd).
device-nodes are created by the "rc.me4000" bash script.

"me4000-2.0.7.tar.gz" provides also a C library, that customizes
the sys Calls to a more proper API for software application developers.
The API is documented in "meilhaus electronic handbook", downloadable
on the vendors web site.
Id never used the library, want to keep thinks easy as possible.
(Im no C nor linux kernel specialist).

The latest patch tested successfully is 
"add-me4000-pci-data-collection-driver.patch" applied to the
"2.6.25-rc6" linux kernel and running on a ME4610 PCI card installed 
on my computer. (analog output not tested, not supported by ME4610).


So, please feel free to send me another patch for testing purpose.



Best regards,
Wolfgang Beiter, Austria.






             reply	other threads:[~2008-10-17 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 17:32 Wolfgang Beiter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-10-17  7:43 Staging: Fixes for me4000 pci data collection driver Lior Dotan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48F8CC48.5040202@aon.at \
    --to=w.beiter@aon.at \
    --cc=akpm@linux-foundation.org \
    --cc=g.gebhardt@meilhaus.de \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liodot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox