staging: comedi: 8255_pci: initialize MITE data window
authorIan Abbott <abbotti@mev.co.uk>
Thu, 13 Mar 2014 15:30:39 +0000 (15:30 +0000)
committerJiri Slaby <jslaby@suse.cz>
Mon, 5 May 2014 12:24:37 +0000 (14:24 +0200)
commitc78609380c224adcbdf21f138505c63d93d4ce7c
treeceac3934a0d13fb8158f3094fb3d6d0631316499
parentf437aa6910609ea707815c2af1621d7bd7a2a596
staging: comedi: 8255_pci: initialize MITE data window

commit 268d1e799663b795cba15c64f5d29407786a9dd4 upstream.

According to National Instruments' PCI-DIO-96/PXI-6508/PCI-6503 User
Manual, the physical address in PCI BAR1 needs to be OR'ed with 0x80 and
written to register offset 0xC0 in the "MITE" registers (BAR0).  Do so
during initialization of the National Instruments boards handled by the
"8255_pci" driver.  The boards were previously handled by the
"ni_pcidio" driver, where the initialization was done by `mite_setup()`
in the "mite" module.  The "mite" module comes with too much extra
baggage for the "8255_pci" driver to deal with so use a local, simpler
initialization function.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/staging/comedi/drivers/8255_pci.c