summaryrefslogtreecommitdiff
path: root/colorize.h
blob: 928deb2c9fe1b4feab254ca02e95e2837c6cda48 (plain)
1
2
3
4
5
6
7
8
#ifndef COLORIZE_H
#define COLORIZE_H

#define colorize_start(fore)		"\033[" __##fore "m"
#define colorize_start_full(fore, back)	"\033[" __##fore ";" __on_##back "m"
#define colorize_end()			"\033[" __reset "m"

#endif /* COLORIZE_H */
l'>
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>2016-09-15 16:19:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-15 19:23:29 +0200
commit8f5334651a14661f945c2d440479bb9bfa6c2b49 (patch)
tree57072198ad76e916dcf33c8e4f8fee17775229be
parenta0adbc7a81ec5430989bb2323a58c7981215077d (diff)
staging: most: hdm-dim2: monitor atx DBR space
This patch implements a workaround for a DIM2 issue where the device macro, in case the asynchronous channel sends data (to MOST), sporadically duplicates the synchronous blocks with a size of half the synchronous DBR buffer. The patch monitors the size of the unused asynchronous Tx DBR memory (that includes the ping and pong sizes) to prevent the potential DBR overflow for the asynchronous Tx DBR buffer. The patched DIM2 HDM expects that the platform driver delivers the 2nd platform irq (index 1) as the mlb_int of the DIM2 macro. Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat