summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/8255_pci.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-07-14 11:54:26 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-16 13:21:38 -0700
commite2f1036a9b22315d5134a1145b2743044d94b733 (patch)
treea971b2ae47a3fd3ec40e8512e3b3bd5bd0ffefe1 /drivers/staging/comedi/drivers/8255_pci.c
parent1496e5961113860e97e8fc39c4fdc0e83c1fbcab (diff)
staging: comedi: 8255_pci: remove include of mite.h
The mite.h header is included only to pickup the MITE_IODWBSR and WENAB defines needed to set the data window (PCI BAR 1) when initializing the PCI MITE ASIC on the National Instruments boards supported by this driver. Remove the include of mite.h by adding the two defines locally in this driver. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/8255_pci.c')
-rw-r--r--drivers/staging/comedi/drivers/8255_pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/8255_pci.c b/drivers/staging/comedi/drivers/8255_pci.c
index 46a385c29ba8..be4c95ee9eb1 100644
--- a/drivers/staging/comedi/drivers/8255_pci.c
+++ b/drivers/staging/comedi/drivers/8255_pci.c
@@ -56,7 +56,6 @@ Configuration Options: not applicable, uses PCI auto config
#include "../comedidev.h"
#include "8255.h"
-#include "mite.h"
enum pci_8255_boardid {
BOARD_ADLINK_PCI7224,
@@ -172,6 +171,10 @@ struct pci_8255_private {
void __iomem *mmio_base;
};
+/* ripped from mite.h and mite_setup2() to avoid mite dependancy */
+#define MITE_IODWBSR 0xc0 /* IO Device Window Base Size Register */
+#define WENAB (1 << 7) /* window enable */
+
static int pci_8255_mite_init(struct pci_dev *pcidev)
{
void __iomem *mite_base;