tools/zio-dump.c: print TLV information

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
TEMP core: introduce TLV support for control

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
zio.h: stop_io return integer (0 if no error)

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
helpers.c: on zio_trigger_data_done, call stop_io to invorm device

When the acquisition is over, the driver invokes zio_trigger_data_done()
to store blocks and make some clean up on trigger. But it can be useful
for the driver to clean up itself, or it must force the hardware to
interrupt the I/O.

So, with this patch, ZIO use the stop_io() operation both: when the trigger
aborts and when an acquisition is over. This should be not a problem for
the driver because in both cases the data transfer must be stopped.

More over, simmetry with the function  zio_arm_trigger(), which invoks
cset->raw_io(), the function zio_trigger_data_done() must invoke
cset->stop_io().

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
helpers.c: on abort always invoke stop_io if it exists

If a device implement the stop_io function it mean that it must do
something when an acquisition abort. So if the trigger abort the
acquisition, ZIO must invoke stop_io if it exists.

We can abort the trigger only if the device successfully stopped the
acquisition

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
TEMP introduce smb380 driver

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
drivers/zio-at91-adc: add support for the AT91 ADC

The driver support software fire and external trigger. At the moment it
does not support trigger from internal counter.

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
zio.h: introduce zio_all_block_ready() helper

It returns 1 if all active_block within a cset are ready, otherwise, it
returns 0

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
zio-trig-timer.c: nshots support for timer

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>