<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/comedi/internal.h, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/comedi/internal.h?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/comedi/internal.h?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2012-06-20T19:56:54Z</updated>
<entry>
<title>staging: comedi: rename internal.h to comedi_internal.h</title>
<updated>2012-06-20T19:56:54Z</updated>
<author>
<name>Ian Abbott</name>
<email>abbotti@mev.co.uk</email>
</author>
<published>2012-06-19T09:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=3a5fa27516116352e810b2122afd82c3d5cbcc7e'/>
<id>urn:sha1:3a5fa27516116352e810b2122afd82c3d5cbcc7e</id>
<content type='text'>
Use a less generic name for this internal header file included by
various parts of the comedi core.

Signed-off-by: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: comedi: Add module parameters for default buffer size</title>
<updated>2012-04-13T18:18:23Z</updated>
<author>
<name>Ian Abbott</name>
<email>abbotti@mev.co.uk</email>
</author>
<published>2012-04-13T13:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=4d7df821277e82ebe2fc9c9af07c928a83f572b8'/>
<id>urn:sha1:4d7df821277e82ebe2fc9c9af07c928a83f572b8</id>
<content type='text'>
For comedi subdevices that support asynchronous transfer commands, the
initial buffer size and maximum buffer size for the transfer are both
set to 64 KiB when the comedi device is "attached" to the hardware
device.  For many applications with reasonable fast sample rates and
slow user-space (e.g. Python) these sizes are a bit too small.

A task with CAP_SYS_ADMIN privileges can change the maximum buffer size
for a comedi subdevice with an ioctl call or by writing to a device
attribute file in sysfs, but that's not very convenient.  For comedi
devices attached during system startup, this could be done by a start-up
script, but for hot-plugged devices it would require scripts run by udev
rules, etc.

Rather than use hardwired values, this patch introduces a couple of
module parameters to set the defaults for the initial buffer size
(comedi_default_buf_size_kb) and maximum buffer size
(comedi_default_buf_maxsize_kb).  These values are applied in place of
the previous hard-wired values when the comedi device is "attached".
The module parameter values are in units of KiB for consistency with the
existing device attribute files.

Signed-off-by: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: comedi: don't hijack hardware device private data</title>
<updated>2012-04-10T18:21:10Z</updated>
<author>
<name>Ian Abbott</name>
<email>abbotti@mev.co.uk</email>
</author>
<published>2012-03-30T16:14:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c43435d7722134ed1fda58ce1025f41029bd58ad'/>
<id>urn:sha1:c43435d7722134ed1fda58ce1025f41029bd58ad</id>
<content type='text'>
comedi_auto_config() associates a Comedi minor device number with an
auto-configured hardware device and comedi_auto_unconfig() disassociates
it.  Currently, these use the hardware device's private data pointer to
point to some allocated storage holding the minor device number.  This
is a bit of a waste of the hardware device's private data pointer,
preventing it from being used for something more useful by the low-level
comedi device drivers.  For example, it would make more sense if
comedi_usb_auto_config() was passed a pointer to the struct
usb_interface instead of the struct usb_device, but this cannot be done
currently because the low-level comedi drivers already use the private
data pointer in the struct usb_interface for something more useful.

This patch stops the comedi core hijacking the hardware device's private
data pointer.  Instead, comedi_auto_config() stores a pointer to the
hardware device's struct device in the struct comedi_device_file_info
associated with the minor device number, and comedi_auto_unconfig()
calls new function comedi_find_board_minor() to recover the minor device
number associated with the hardware device.

Signed-off-by: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: drivers.c sparse cleanup</title>
<updated>2010-05-11T18:36:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-05-03T22:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7029a87455af3cf303e8d6d0db8c26b6a94f1020'/>
<id>urn:sha1:7029a87455af3cf303e8d6d0db8c26b6a94f1020</id>
<content type='text'>
Fix up some sparse issues in drivers.c

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: range.c: properly mark up __user pointers</title>
<updated>2010-05-11T18:36:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-05-03T22:50:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=3b6b25b5ddf4485e89432a35a7d79d371ba6eba1'/>
<id>urn:sha1:3b6b25b5ddf4485e89432a35a7d79d371ba6eba1</id>
<content type='text'>
This is the start of cleaning up the user pointer markings
in the comedi core.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: move some more functions to internal.h</title>
<updated>2010-05-11T18:36:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-05-03T22:38:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2434358ac7ece40e6aa8cd705927c423caa718ec'/>
<id>urn:sha1:2434358ac7ece40e6aa8cd705927c423caa718ec</id>
<content type='text'>
Only the internal comedi core calls these, so put them here.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: make comedi_reset_async_buf local to comedi core</title>
<updated>2010-05-11T18:36:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-05-03T22:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=09372df0dff51121e772ca5870fb565a08840c86'/>
<id>urn:sha1:09372df0dff51121e772ca5870fb565a08840c86</id>
<content type='text'>
No one outside of the comedi core calls this function, so don't export
it to the world.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: make comedi_free_board_minor local to comedi core</title>
<updated>2010-05-11T18:36:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-05-03T22:24:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=9e8c604821b372c6e98e9632f5617913bf92ae45'/>
<id>urn:sha1:9e8c604821b372c6e98e9632f5617913bf92ae45</id>
<content type='text'>
No one outside of the comedi core calls this function, so don't export
it to the world.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: comedi: make comedi_alloc_board_minor local to comedi core</title>
<updated>2010-05-11T18:36:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-05-03T22:20:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=242e7ad91a067243d7ab63b6a25ed2e085733446'/>
<id>urn:sha1:242e7ad91a067243d7ab63b6a25ed2e085733446</id>
<content type='text'>
No one outside of the comedi core calls this function, so create
an internal.h file to put the prototype in, and don't export
it to the world.

Cc: Ian Abbott &lt;abbotti@mev.co.uk&gt;
Cc: Frank Mori Hess &lt;fmhess@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
</feed>
