From: Frank Mori Hess Date: Sun, 4 Apr 2004 18:19:13 +0000 (+0000) Subject: added declarations for IO Device Window Base Size Register X-Git-Tag: r0_7_69~69 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a33b3e1827083075b6086e2404f1255b011080b1;p=comedi.git added declarations for IO Device Window Base Size Register --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index fe5dd2b4..fccd1861 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -122,9 +122,7 @@ int mite_setup(struct mite_struct *mite) mite->daq_io_addr = ioremap(start, length) + offset; printk("DAQ:0x%08lx mapped to %p\n",mite->daq_phys_addr,mite->daq_io_addr); - /* XXX don't know what the 0xc0 and 0x80 mean */ - /* It must be here for the driver to work though */ - writel(mite->daq_phys_addr | 0x80 , mite->mite_io_addr + 0xc0 ); + writel(mite->daq_phys_addr | WENAB , mite->mite_io_addr + MITE_IODWBSR); for( i = 0; i < NUM_MITE_DMA_CHANNELS; i++ ) { diff --git a/comedi/drivers/mite.h b/comedi/drivers/mite.h index c48a8d95..2b32f9ab 100644 --- a/comedi/drivers/mite.h +++ b/comedi/drivers/mite.h @@ -115,6 +115,16 @@ void mite_print_chsr(unsigned int chsr); void mite_dump_regs(struct mite_struct *mite, int channel); #endif +enum mite_registers +{ + MITE_IODWBSR = 0xc0, //IO Device Window Base Size Register +}; + +enum MITE_IODWBSR_bits +{ + WENAB = 0x80, // window enable +}; + #define CHAN_OFFSET(x) (0x100*(x)) /* DMA base for chan 0 is 0x500, chan 1 is 0x600 */