From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F342A0597; Wed, 8 Apr 2020 12:21:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 949F71C1AE; Wed, 8 Apr 2020 12:21:08 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B3BCA1C1A3 for ; Wed, 8 Apr 2020 12:21:05 +0200 (CEST) IronPort-SDR: w8yknBptnJsOPwTd1I6vvg66kQrpsDecTFNquFB0t0WeV/Hy5lonbQf5j/6v8mBtLQSaVE7QiP eCs1EC24P5ZA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2020 03:21:05 -0700 IronPort-SDR: Z+jJRjzD3tAqfasTDF07zeJXOxhxDgk4XsvdSpzpI8qEW6Q142ARFtARuQfONav/VfkefvHAYc 7xfbLIGWfzFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,357,1580803200"; d="scan'208";a="269712548" Received: from dpdk.sh.intel.com ([10.239.255.14]) by orsmga002.jf.intel.com with ESMTP; 08 Apr 2020 03:21:03 -0700 From: Jiaqi Min To: dev@dpdk.org Cc: Jiaqi Min , Piotr Kwapulinski Date: Wed, 8 Apr 2020 10:05:22 +0000 Message-Id: <20200408100523.67792-4-jiaqix.min@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200408100523.67792-1-jiaqix.min@intel.com> References: <20200325032356.20198-1-jiaqix.min@intel.com> <20200408100523.67792-1-jiaqix.min@intel.com> Subject: [dpdk-dev] [PATCH v2 3/4] net/i40e/base: add constants for PTP pins X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Introduce constants for handling PTP pins used for external clock source. Signed-off-by: Piotr Kwapulinski Signed-off-by: Jiaqi Min Acked-by: Piotr Kwapulinski --- drivers/net/i40e/base/i40e_register.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/base/i40e_register.h b/drivers/net/i40e/base/i40e_register.h index 436f48efa..dffcc633c 100644 --- a/drivers/net/i40e/base/i40e_register.h +++ b/drivers/net/i40e/base/i40e_register.h @@ -2910,6 +2910,10 @@ #define I40E_PRTTSYN_AUX_0_PULSEW_MASK I40E_MASK(0xF, I40E_PRTTSYN_AUX_0_PULSEW_SHIFT) #define I40E_PRTTSYN_AUX_0_EVNTLVL_SHIFT 16 #define I40E_PRTTSYN_AUX_0_EVNTLVL_MASK I40E_MASK(0x3, I40E_PRTTSYN_AUX_0_EVNTLVL_SHIFT) +#define I40E_PRTTSYN_AUX_0_PTPFLAG_SHIFT 17 +#define I40E_PRTTSYN_AUX_0_PTPFLAG_MASK \ + I40E_MASK(0x1, I40E_PRTTSYN_AUX_0_PTPFLAG_SHIFT) +#define I40E_PRTTSYN_AUX_0_PTP_OUT_SYNC_CLK_IO 0xF #define I40E_PRTTSYN_AUX_1(_i) (0x001E42E0 + ((_i) * 32)) /* _i=0...1 */ /* Reset: GLOBR */ #define I40E_PRTTSYN_AUX_1_MAX_INDEX 1 #define I40E_PRTTSYN_AUX_1_INSTNT_SHIFT 0 -- 2.17.1