+ sigma_set_register(WRITE_MODE, 0x11, ctx);
+
+ /* Set SDRAM Read Enable. */
+ sigma_set_register(WRITE_MODE, 0x02, ctx);
+
+ /* Get the current position. */
+ sigma_read_pos(&ctx->state.stoppos, &ctx->state.triggerpos, ctx);
+
+ /* Check if trigger has fired. */
+ modestatus = sigma_get_register(READ_MODE, ctx);
+ if (modestatus & 0x20)
+ ctx->state.triggerchunk = ctx->state.triggerpos / 512;
+ else
+ ctx->state.triggerchunk = -1;
+
+ ctx->state.chunks_downloaded = 0;
+
+ ctx->state.state = SIGMA_DOWNLOAD;