-static int spu_backing_set_mfc_query(struct spu_context * ctx, u32 mask,
- u32 mode)
-{
- struct spu_problem_collapsed *prob = &ctx->csa.prob;
- int ret;
-
- spin_lock(&ctx->csa.register_lock);
- ret = -EAGAIN;
- if (prob->dma_querytype_RW)
- goto out;
- ret = 0;
- /* FIXME: what are the side-effects of this? */
- prob->dma_querymask_RW = mask;
- prob->dma_querytype_RW = mode;
-out:
- spin_unlock(&ctx->csa.register_lock);
-
- return ret;
-}
-
-static u32 spu_backing_read_mfc_tagstatus(struct spu_context * ctx)
-{
- return ctx->csa.prob.dma_tagstatus_R;
-}
-
-static u32 spu_backing_get_mfc_free_elements(struct spu_context *ctx)
-{
- return ctx->csa.prob.dma_qstatus_R;
-}
-
-static int spu_backing_send_mfc_command(struct spu_context *ctx,
- struct mfc_dma_command *cmd)
-{
- int ret;
-
- spin_lock(&ctx->csa.register_lock);
- ret = -EAGAIN;
- /* FIXME: set up priv2->puq */
- spin_unlock(&ctx->csa.register_lock);
-
- return ret;
-}
-