Commit 2e404b0d authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs

drm/nouveau/gr/gk20a: share external bundles loading functions

There functions are going to be used by other chips that rely on
NVIDIA-provided firmware. Export them.
Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 5986d3e1
...@@ -203,6 +203,14 @@ void gf100_gr_icmd(struct gf100_gr *, const struct gf100_gr_pack *); ...@@ -203,6 +203,14 @@ void gf100_gr_icmd(struct gf100_gr *, const struct gf100_gr_pack *);
void gf100_gr_mthd(struct gf100_gr *, const struct gf100_gr_pack *); void gf100_gr_mthd(struct gf100_gr *, const struct gf100_gr_pack *);
int gf100_gr_init_ctxctl(struct gf100_gr *); int gf100_gr_init_ctxctl(struct gf100_gr *);
/* external bundles loading functions */
int gk20a_gr_av_to_init(struct gf100_gr *, const char *,
struct gf100_gr_pack **);
int gk20a_gr_aiv_to_init(struct gf100_gr *, const char *,
struct gf100_gr_pack **);
int gk20a_gr_av_to_method(struct gf100_gr *, const char *,
struct gf100_gr_pack **);
/* register init value lists */ /* register init value lists */
extern const struct gf100_gr_init gf100_gr_init_main_0[]; extern const struct gf100_gr_init gf100_gr_init_main_0[];
......
...@@ -32,7 +32,7 @@ struct gk20a_fw_av ...@@ -32,7 +32,7 @@ struct gk20a_fw_av
u32 data; u32 data;
}; };
static int int
gk20a_gr_av_to_init(struct gf100_gr *gr, const char *fw_name, gk20a_gr_av_to_init(struct gf100_gr *gr, const char *fw_name,
struct gf100_gr_pack **ppack) struct gf100_gr_pack **ppack)
{ {
...@@ -81,7 +81,7 @@ struct gk20a_fw_aiv ...@@ -81,7 +81,7 @@ struct gk20a_fw_aiv
u32 data; u32 data;
}; };
static int int
gk20a_gr_aiv_to_init(struct gf100_gr *gr, const char *fw_name, gk20a_gr_aiv_to_init(struct gf100_gr *gr, const char *fw_name,
struct gf100_gr_pack **ppack) struct gf100_gr_pack **ppack)
{ {
...@@ -123,7 +123,7 @@ gk20a_gr_aiv_to_init(struct gf100_gr *gr, const char *fw_name, ...@@ -123,7 +123,7 @@ gk20a_gr_aiv_to_init(struct gf100_gr *gr, const char *fw_name,
return ret; return ret;
} }
static int int
gk20a_gr_av_to_method(struct gf100_gr *gr, const char *fw_name, gk20a_gr_av_to_method(struct gf100_gr *gr, const char *fw_name,
struct gf100_gr_pack **ppack) struct gf100_gr_pack **ppack)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment