added declarations for IO Device Window Base Size Register
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 4 Apr 2004 18:19:13 +0000 (18:19 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 4 Apr 2004 18:19:13 +0000 (18:19 +0000)
comedi/drivers/mite.c
comedi/drivers/mite.h

index fe5dd2b4541c4f0fc14ed79cddc3af3ccfc1aa71..fccd1861309d33d5393e4fffe1a7e3c8469ac2a9 100644 (file)
@@ -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++ ) {
 
index c48a8d955e6d461724fc0bbcf96c4ccd62e234e8..2b32f9ab85686ace6a486582035ab87a3b11610b 100644 (file)
@@ -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 */