summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTao Ye <tye@nvidia.com>2017-07-15 19:30:35 -0400
committerStephen Wolfe <swolfe@nvidia.com>2018-07-27 17:12:44 -0400
commitec1519dd0198a24b3ffdcb207a6dae039af2d2f6 (patch)
tree29acc57b72ce1fdea33fb65e5b208ec7bdd42029 /include/linux
parentb1df18debdb5482ae0debf45b939a29d94f8af07 (diff)
Add support to probe if TA is available
When connecting to Trusty via TIPC, linux kernel wants to know if the connection failure is caused by port_not_found issues such as the requested TA is not available. Bug 1896070 Jira APTS-731 Change-Id: I7fe9b895b79ba5fa82b15d2bfd90b1297fd7d017 Signed-off-by: Tao Ye <tye@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1523288 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/trusty/trusty_ipc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/trusty/trusty_ipc.h b/include/linux/trusty/trusty_ipc.h
index beabc3f3e..da785e98d 100644
--- a/include/linux/trusty/trusty_ipc.h
+++ b/include/linux/trusty/trusty_ipc.h
@@ -1,5 +1,6 @@
1/* 1/*
2 * Copyright (C) 2015 Google, Inc. 2 * Copyright (C) 2015 Google, Inc.
3 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 4 *
4 * This software is licensed under the terms of the GNU General Public 5 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and 6 * License version 2, as published by the Free Software Foundation, and
@@ -14,6 +15,13 @@
14#ifndef __LINUX_TRUSTY_TRUSTY_IPC_H 15#ifndef __LINUX_TRUSTY_TRUSTY_IPC_H
15#define __LINUX_TRUSTY_TRUSTY_IPC_H 16#define __LINUX_TRUSTY_TRUSTY_IPC_H
16 17
18/*
19 * Errnos below must be in sync with the corresponding errnos
20 * defined in 3rdparty/trusty/external/lk/include/err.h
21 */
22#define NO_ERROR (0)
23#define ERR_NOT_FOUND (-2)
24
17struct tipc_chan; 25struct tipc_chan;
18 26
19struct tipc_msg_buf { 27struct tipc_msg_buf {
@@ -29,6 +37,7 @@ enum tipc_chan_event {
29 TIPC_CHANNEL_CONNECTED = 1, 37 TIPC_CHANNEL_CONNECTED = 1,
30 TIPC_CHANNEL_DISCONNECTED, 38 TIPC_CHANNEL_DISCONNECTED,
31 TIPC_CHANNEL_SHUTDOWN, 39 TIPC_CHANNEL_SHUTDOWN,
40 TIPC_CHANNEL_NOT_FOUND,
32}; 41};
33 42
34struct tipc_chan_ops { 43struct tipc_chan_ops {