[Pdbg] [PATCH 15/18] libpdbg: Add ocmb hwunit
Joel Stanley
joel at jms.id.au
Mon Sep 28 16:04:22 AEST 2020
On Thu, 24 Sep 2020 at 04:43, Amitay Isaacs <amitay at ozlabs.org> wrote:
>
> Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
Reviewed-by: Joel Stanley <joel at 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 at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/pdbg
More information about the Pdbg
mailing list