Преглед изворни кода

qcacmn: usb: Make HTC_MAX_MSG_PER_BUNDLE_TX configurable

Make HTC_MAX_MSG_PER_BUNDLE_TX configurable through config files.

Change-Id: I259c4b202d4fc9e44ef3f5edf8454372a9a086d4
CRs-Fixed: 2534002
Ajit Pal Singh пре 5 година
родитељ
комит
0bd6d0366c
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      htc/htc_internal.h

+ 8 - 2
htc/htc_internal.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -39,9 +39,15 @@ extern "C" {
 #define HTC_TARGET_DEBUG_INTR_MASK          0x01
 #define HTC_TARGET_CREDIT_INTR_MASK         0xF0
 #define HTC_MIN_MSG_PER_BUNDLE              2
+
 #if defined(HIF_USB)
+
 #define HTC_MAX_MSG_PER_BUNDLE_RX           11
-#define HTC_MAX_MSG_PER_BUNDLE_TX           8
+#if defined(CFG_HTC_MAX_MSG_PER_BUNDLE_TX)
+#define HTC_MAX_MSG_PER_BUNDLE_TX	 CFG_HTC_MAX_MSG_PER_BUNDLE_TX
+#else
+#define HTC_MAX_MSG_PER_BUNDLE_TX	8
+#endif /* CFG_HTC_MAX_MSG_PER_BUNDLE_TX */
 #else
 #define HTC_MAX_MSG_PER_BUNDLE_RX           64
 #define HTC_MAX_MSG_PER_BUNDLE              16