diag: Add diag over pcie support
Add support for diag communication with host over pcie as an option.
Change-Id: I4d7785093344b4670e8a45cc55ab53c8671f0d40
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
diff --git a/drivers/char/diag/diagchar.h b/drivers/char/diag/diagchar.h
index f63d78c..2e87d51 100644
--- a/drivers/char/diag/diagchar.h
+++ b/drivers/char/diag/diagchar.h
@@ -296,6 +296,8 @@
#define DIAG_ID_UNKNOWN 0
#define DIAG_ID_APPS 1
+#define DIAG_ROUTE_TO_USB 0
+#define DIAG_ROUTE_TO_PCIE 1
/* List of remote processor supported */
enum remote_procs {
MDM = 1,
@@ -592,6 +594,7 @@
struct mutex cmd_reg_mutex;
uint32_t cmd_reg_count;
struct mutex diagfwd_channel_mutex[NUM_PERIPHERALS];
+ int transport_set;
/* Sizes that reflect memory pool sizes */
unsigned int poolsize;
unsigned int poolsize_hdlc;
@@ -643,6 +646,7 @@
#ifdef CONFIG_DIAG_OVER_USB
int usb_connected;
#endif
+ int pcie_connected;
struct workqueue_struct *diag_wq;
struct work_struct diag_drain_work;
struct work_struct update_user_clients;