static void mac53c94_init(struct fsc_state *state) { struct mac53c94_regs __iomem *regs = state->regs; struct dbdma_regs __iomem *dma = state->dma; int x; writeb(state->host->this_id | CF1_PAR_ENABLE, ®s->config1); writeb(TIMO_VAL(250), ®s->sel_timeout); /* 250ms */ writeb(CLKF_VAL(state->clk_freq), ®s->clk_factor); writeb(CF2_FEATURE_EN, ®s->config2); writeb(0, ®s->config3); writeb(0, ®s->sync_period); writeb(0, ®s->sync_offset); x = readb(®s->interrupt); writel((RUN|PAUSE|FLUSH|WAKE) << 16, &dma->control); }
static void mac53c94_init(struct fsc_state *state) { volatile struct mac53c94_regs *regs = state->regs; volatile struct dbdma_regs *dma = state->dma; int x; regs->config1 = state->host->this_id | CF1_PAR_ENABLE; regs->sel_timeout = TIMO_VAL(250); /* 250ms */ regs->clk_factor = CLKF_VAL(state->clk_freq); regs->config2 = CF2_FEATURE_EN; regs->config3 = 0; regs->sync_period = 0; regs->sync_offset = 0; eieio(); x = regs->interrupt; st_le32(&dma->control, (RUN|PAUSE|FLUSH|WAKE) << 16); }