- 21 Jul, 2015 6 commits
-
-
Federico Vaga authored
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
In a big industrial environment we may have several different ZIO devices each of them compiled with a different version of ZIO. With this versioning field we can check che compatibility among devices and ZIO framework. This avoid to recompile everytime all device drivers for each change. Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Miguel Jimenez Lopez authored
Signed-off-by: Miguel Jimenez Lopez <klyone@ugr.es> Acked-by: Federico Vaga <federico.vaga@cern.ch>
-
- 28 Apr, 2015 1 commit
-
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
- 13 Apr, 2015 1 commit
-
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
- 09 Apr, 2015 3 commits
-
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@gmail.com> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
Add to zio_device, zio_cset and zio_channel a new operation: change_flags. The core uses this function to signal to the driver that some flags are changed. This patch also improve the comment on the __zobj_enable function Signed-off-by: Federico Vaga <federico.vaga@gmail.com> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
Currently the trigger abort function returns only the previous value of the status flag, but actually we had always used it as if it was the entire flag, and this can break "self timed" applications on trigger configuration. Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
- 08 Apr, 2015 3 commits
-
-
Federico Vaga authored
Use a generic implementation of ti->push_block() in order to avoid code duplication and different behaviors on output configuration. (it will be more clear with multishot implementation) Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
The new option is "prefer-new" and it is boolean. 0 means that you prefer old blocks. So, when buffer is full all new incoming blocks will be discarder. 1 means that you prefer new blocks. So, when buffer is full the oldest block is removed in order to store the new one Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
- 18 Mar, 2015 1 commit
-
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
- 12 Mar, 2015 9 commits
-
-
Federico Vaga authored
If the driver call data_done when the trigger was un-armed, then print a debug message. This is useful on driver development. Theoretically, this code should not be compiled if we are not setting -DDEBUG Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
-
Federico Vaga authored
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
The trigger *must* be disable while a configuration operation is running. It was not the case. Before this patch the behavior was: config -> disable -> propagate -> enable With this path disable -> config -> propagate -> enable Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
Checking that a given value is in a range is a typical operation. This patch include this control in the framework Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
-
Federico Vaga authored
-
- 03 Mar, 2015 5 commits
-
-
Federico Vaga authored
If an arm occurs while we are resizing the buffer it may gets the wrong pointers. For example, this is the case when we use the 'user' trigger. Because we want to remove all blocks from the buffer before resize it, we are calling retr_block() which internally does pull() and the trigger user on pull calls arm(). Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
-
Federico Vaga authored
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
-
Federico Vaga authored
This avoid driver developer to handle with cset flags and locking. It also simplify the driver code. set and clear helpers can be locked; the 'if' statement doesn't slow down the code because the compiler will remove it according to the function argument (only if you pass static value) Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
- 17 Sep, 2014 10 commits
-
-
Federico Vaga authored
Mapping zio_block to a scatterlist is a common operations. This patch simply adds a set of helpers to manage the scatter DMA mapping. Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
-
Federico Vaga authored
It will be necessary on "write control" patch Now the __zattr_propagate_value() function can be used internally by ZIO components Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
It will be necessary on "write control" patch Split the zattr_store() function in two parts. The configuration function __zio_conf_set(), and the sysfs write access zattr_store. The config function is exported in order to be used by others within the framework Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
It will be necessary on "write control" patch In order to export the function to other ZIO core parts, this patch rename __get_spinlock() with a proper name and export the prototype within the framework Signed-off-by: Federico Vaga <federico.vaga@cern.ch> cked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
It will be necessary on "write control" patch In order to export the function to other ZIO core parts, this patch rename the zobj_enable function with a proper name, and change the prototype to use the zio object head instead of the kernel device. Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
make available enumeration of standard attributes also for userspace applications Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
It will be necessary on "write control" patch This allows to easily retrieve the ZIO object that owns a given zio_attribute Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
it reduces the number of printed data. The option accepts a numeric value. This value is the number of bytes to show at the beginning and at the end of a buffer Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
Federico Vaga authored
The parameter attributes (outside the control) do not have an index. Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Alessandro Rubini <rubini@gnudd.com>
-
- 14 Jul, 2014 1 commit
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-