From: Jean THOMAS Date: Wed, 15 Jul 2020 15:06:31 +0000 (+0200) Subject: Expose DFII functions to other objects X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c89294ce29db8d16391944d830a9c48d5268d48;p=gram.git Expose DFII functions to other objects --- diff --git a/libgram/src/dfii.c b/libgram/src/dfii.c index 044c939..f1fdceb 100644 --- a/libgram/src/dfii.c +++ b/libgram/src/dfii.c @@ -21,7 +21,7 @@ void dfii_setsw(struct gramCtx *ctx, bool software_control) { } } -static void dfii_set_p0_address(struct gramCtx *ctx, uint32_t val) { +void dfii_set_p0_address(struct gramCtx *ctx, uint32_t val) { #ifdef GRAM_RW_FUNC gram_write(ctx, &(ctx->core->phases[0].address), val); #else @@ -29,7 +29,7 @@ static void dfii_set_p0_address(struct gramCtx *ctx, uint32_t val) { #endif } -static void dfii_set_p0_baddress(struct gramCtx *ctx, uint32_t val) { +void dfii_set_p0_baddress(struct gramCtx *ctx, uint32_t val) { #ifdef GRAM_RW_FUNC gram_write(ctx, &(ctx->core->phases[0].baddress), val); #else @@ -37,7 +37,7 @@ static void dfii_set_p0_baddress(struct gramCtx *ctx, uint32_t val) { #endif } -static void dfii_p0_command(struct gramCtx *ctx, uint32_t cmd) { +void dfii_p0_command(struct gramCtx *ctx, uint32_t cmd) { #ifdef GRAM_RW_FUNC gram_write(ctx, &(ctx->core->phases[0].command), cmd); gram_write(ctx, &(ctx->core->phases[0].command_issue), 1); diff --git a/libgram/src/dfii.h b/libgram/src/dfii.h index 9831281..1d53306 100644 --- a/libgram/src/dfii.h +++ b/libgram/src/dfii.h @@ -16,5 +16,8 @@ void dfii_setsw(struct gramCtx *ctx, bool software_control); void dfii_initseq(struct gramCtx *ctx); +void dfii_set_p0_address(struct gramCtx *ctx, uint32_t val); +void dfii_set_p0_baddress(struct gramCtx *ctx, uint32_t val); +void dfii_p0_command(struct gramCtx *ctx, uint32_t cmd); #endif /* DFII_H */