From mboxrd@z Thu Jan 1 00:00:00 1970 From: Akhil Goyal Subject: Re: [PATCH v2 07/33] common/cpt: add hardware register defines Date: Mon, 17 Sep 2018 16:48:32 +0530 Message-ID: References: <1528476325-15585-1-git-send-email-anoob.joseph@caviumnetworks.com> <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> <1536033560-21541-8-git-send-email-ajoseph@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org, Ankur Dwivedi , Murthy NSSR , Nithin Dabilpuram , Ragothaman Jayaraman , Srisivasubramanian S , Tejasree Kondoj To: Anoob Joseph , Pablo de Lara , Thomas Monjalon Return-path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30053.outbound.protection.outlook.com [40.107.3.53]) by dpdk.org (Postfix) with ESMTP id 13C575920 for ; Mon, 17 Sep 2018 13:18:53 +0200 (CEST) In-Reply-To: <1536033560-21541-8-git-send-email-ajoseph@caviumnetworks.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > +typedef union cpt_res_s { > + uint64_t u[2]; > + struct cpt_res_s_8s { > +#if (RTE_BYTE_ORDER == RTE_BIG_ENDIAN) /* Word 0 - Big Endian */ > + uint64_t reserved_17_63 : 47; > + uint64_t doneint : 1; > + /**< [ 16: 16] Done interrupt. This bit is copied from the > + * corresponding instruction's CPT_INST_S[DONEINT]. > + **/ > + uint64_t reserved_8_15 : 8; > + uint64_t compcode : 8; > + /**< [ 7: 0] Indicates completion/error status of the CPT > + * coprocessor for the associated instruction, as enumerated by > + * CPT_COMP_E. Core software may write the memory location > + * containing [COMPCODE] to 0x0 before ringing the doorbell, and > + * then poll for completion by checking for a nonzero value. > + > + Once the core observes a nonzero [COMPCODE] value in this case, > + the CPT coprocessor will have also completed L2/DRAM write > + operations. > + */ commenting style shall be uniform in the file. Half of the comments have * and half don't have. Please be consistent. -Akhil