summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/greybus_manifest.h
diff options
context:
space:
mode:
authorJoel Porquet <porquet_joel@projectara.com>2016-06-25 00:41:36 +0300
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-25 01:46:52 +0300
commitc0e65d026c297c53eeb5412c31a5410317225945 (patch)
tree2611d50078d937204f5e3e55041f726b96b10324 /drivers/staging/greybus/greybus_manifest.h
parent6f7f2ae5df786bf9ced3247fda51a0a7aeb9cd0c (diff)
downloadlinux-c0e65d026c297c53eeb5412c31a5410317225945.tar.xz
greybus: add support for the log protocol
Add support for the new Log class/protocol. This protocol allows modules to send their internal logging messages to the AP in order to make module debugging easier. The protocol is, for now, composed a single module-initiated request. This request contains a message and associated length. The message is integrated in the kernel log with dev_dbg(). In order to be displayed with 'dmesg', the following command needs to be entered first: $ echo "file log.c +p" > /sys/kernel/debug/dynamic_debug/control The major portion of this file was initially written by Greg KH. Signed-off-by: Joel Porquet <porquet_joel@projectara.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_manifest.h')
-rw-r--r--drivers/staging/greybus/greybus_manifest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h
index 28bbadd057d1..2ae39ad92368 100644
--- a/drivers/staging/greybus/greybus_manifest.h
+++ b/drivers/staging/greybus/greybus_manifest.h
@@ -47,6 +47,7 @@ enum greybus_protocol {
GREYBUS_PROTOCOL_CAMERA_DATA = 0x16,
GREYBUS_PROTOCOL_FW_DOWNLOAD = 0x17,
GREYBUS_PROTOCOL_FW_MANAGEMENT = 0x18,
+ GREYBUS_PROTOCOL_LOG = 0x1a,
/* ... */
GREYBUS_PROTOCOL_RAW = 0xfe,
GREYBUS_PROTOCOL_VENDOR = 0xff,
@@ -76,6 +77,7 @@ enum greybus_class_type {
/* 0x14 is unused */
GREYBUS_CLASS_BOOTROM = 0x15,
GREYBUS_CLASS_FW_MANAGEMENT = 0x16,
+ GREYBUS_CLASS_LOG = 0x17,
/* ... */
GREYBUS_CLASS_RAW = 0xfe,
GREYBUS_CLASS_VENDOR = 0xff,