From patchwork Thu Sep 24 04:42:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1370284 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bxj9l4QTZz9sSt for ; Thu, 24 Sep 2020 14:43:55 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=eh/O64q2; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4Bxj9l2H1GzDqYk for ; Thu, 24 Sep 2020 14:43:55 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Bxj8d5wY4zDqYt for ; Thu, 24 Sep 2020 14:42:57 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=eh/O64q2; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Bxj8d3BFrz9sTg; Thu, 24 Sep 2020 14:42:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1600922577; bh=1rPPGNMturiUeYHgCUpEujho0sj0KtouGJSm5WJE6iM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eh/O64q2TF3zgH5IBAUL0lXSZuooy6MXljEMMfHvXVIhkWT6N6AC3zzxP8YN3Y2QH k64vGhnqF3/WDSqAHEJt6OWiH/6ivxPtaMaQ7lwcTw7gFvKQaiddmCWsiJTw6gJUW9 1kln9SzI3ATO2pZu5kfuhqMdtL1ISaaVsmlw8VVrSn9URhMstQit0kyIKbRanreI6F zL78KQJgezJV4jVFSQRIgmZxqJfwWEvHVczVjRHeEb0XZokKPTvpPhA4Snt80BMR4+ Kd3WHZEdvVvNPf79EdlJo1veX+MU3WNQB2Qs4S+vApEDNFO1P3K8C/fc9aIdd0dBsD kSbKan+bfbiXg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 24 Sep 2020 14:42:33 +1000 Message-Id: <20200924044236.130586-16-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200924044236.130586-1-amitay@ozlabs.org> References: <20200924044236.130586-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 15/18] libpdbg: Add ocmb hwunit X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Joel Stanley --- libpdbg/hwunit.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h index 52fdaf0..f1f164e 100644 --- a/libpdbg/hwunit.h +++ b/libpdbg/hwunit.h @@ -320,4 +320,12 @@ struct mcc { struct pdbg_target target; }; #define target_to_mcc(x) container_of(x, struct mcc, target) + +struct ocmb { + struct pdbg_target target; + int (*getscom)(struct ocmb *, uint64_t, uint64_t *); + int (*putscom)(struct ocmb *, uint64_t, uint64_t); +}; +#define target_to_ocmb(x) container_of(x, struct ocmb, target); + #endif /* __HWUNIT_H */