[PATCH v5 1/8] include: Add defines for SBI debug console extension

Anup Patel anup at brainfault.org
Thu Feb 9 08:51:44 PST 2023


On Tue, Jan 31, 2023 at 10:56 PM Andrew Jones <ajones at ventanamicro.com> wrote:
>
> On Fri, Jan 13, 2023 at 05:11:03PM +0530, Anup Patel wrote:
> > We add SBI debug console extension related defines/enum to the
>
> Not adding any enums.

Okay, I will update.

>
> > SBI ecall interface header.
> >
> > Signed-off-by: Anup Patel <apatel at ventanamicro.com>
> > Reviewed-by: Atish Patra <atishp at rivosinc.com>
> > Reviewed-by: Bin Meng <bmeng at tinylab.org>
> > Reviewed-by: Xiang W <wxjstz at 126.com>
>
> Reviewed-by: Andrew Jones <ajones at ventanamicro.com>
>
> > ---
> >  include/sbi/sbi_ecall_interface.h | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h
> > index a3f2bf4..9d6f474 100644
> > --- a/include/sbi/sbi_ecall_interface.h
> > +++ b/include/sbi/sbi_ecall_interface.h
> > @@ -29,6 +29,7 @@
> >  #define SBI_EXT_HSM                          0x48534D
> >  #define SBI_EXT_SRST                         0x53525354
> >  #define SBI_EXT_PMU                          0x504D55
> > +#define SBI_EXT_DBCN                         0x4442434E
> >
> >  /* SBI function IDs for BASE extension*/
> >  #define SBI_EXT_BASE_GET_SPEC_VERSION                0x0
> > @@ -230,6 +231,11 @@ enum sbi_pmu_ctr_type {
> >  /* Flags defined for counter stop function */
> >  #define SBI_PMU_STOP_FLAG_RESET (1 << 0)
> >
> > +/* SBI function IDs for DBCN extension */
> > +#define SBI_EXT_DBCN_CONSOLE_WRITE           0x0
> > +#define SBI_EXT_DBCN_CONSOLE_READ            0x1
> > +#define SBI_EXT_DBCN_CONSOLE_WRITE_BYTE              0x2
> > +
> >  /* SBI base specification related macros */
> >  #define SBI_SPEC_VERSION_MAJOR_OFFSET                24
> >  #define SBI_SPEC_VERSION_MAJOR_MASK          0x7f
> > --
> > 2.34.1
> >
> >
> > --
> > opensbi mailing list
> > opensbi at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/opensbi

Regards,
Anup



More information about the opensbi mailing list