diff mbox series

[15/18] libpdbg: Add ocmb hwunit

Message ID 20200924044236.130586-16-amitay@ozlabs.org
State Superseded
Headers show
Series Add p10 support to libpdbg | expand

Commit Message

Amitay Isaacs Sept. 24, 2020, 4:42 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/hwunit.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Joel Stanley Sept. 28, 2020, 6:04 a.m. UTC | #1
On Thu, 24 Sep 2020 at 04:43, Amitay Isaacs <amitay@ozlabs.org> wrote:
>
> Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>

Reviewed-by: Joel Stanley <joel@jms.id.au>

> ---
>  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 */
> --
> 2.26.2
>
> --
> Pdbg mailing list
> Pdbg@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/pdbg
diff mbox series

Patch

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 */