comedi: Move "comedi_8254.h" to <linux/comedi/comedi_8254.h>

Some of the header files in "drivers/comedi/drivers/" are common enough
to be useful to out-of-tree comedi driver modules.  Using them for
out-of-tree module builds is hampered by the headers being outside the
"include/" directory so it is desirable to move them.

There are about a couple of dozen or so Comedi device drivers that use
the "comedi_8254" module to add timers based on the venerable 8254
Programmable Interval Timer chip.  The macros and declarations to use
that module are in the "comedi_8254.h" header file in the comedi
"drivers" directory.  Move it into "include/linux/comedi/".

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20211117120604.117740-5-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ian Abbott 2021-11-17 12:06:02 +00:00 committed by Greg Kroah-Hartman
parent 631e272b12
commit 44fb7affcf
28 changed files with 27 additions and 38 deletions

View File

@ -43,9 +43,9 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8254.h>
#include "plx9052.h"
#include "comedi_8254.h"
#define PCI9111_FIFO_HALF_SIZE 512

View File

@ -79,9 +79,9 @@
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8254.h>
#include "amcc_s5933.h"
#include "comedi_8254.h"
/*
* PCI BAR2 Register map (dev->iobase)

View File

@ -31,8 +31,8 @@
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "amcc_s5933.h"
/*

View File

@ -25,8 +25,7 @@
#include <linux/delay.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8255.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* Register offset definitions

View File

@ -24,8 +24,7 @@
#include <linux/module.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* Register map

View File

@ -14,9 +14,9 @@
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h> /* only for register defines */
#include <linux/comedi/comedi_8254.h>
#include "amplc_dio200.h"
#include "comedi_8254.h"
/* 200 series registers */
#define DIO200_IO_SIZE 0x20

View File

@ -97,8 +97,7 @@
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/comedi/comedi_pci.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* PCI224/234 i/o space 1 (PCIBAR2) registers.

View File

@ -176,8 +176,7 @@
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8255.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* PCI230 PCI configuration register information

View File

@ -28,8 +28,7 @@
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/comedi/comedi_pcmcia.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* Register I/O map

View File

@ -56,8 +56,8 @@
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8255.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "amcc_s5933.h"
#define AI_BUFFER_SIZE 1024 /* max ai fifo size */

View File

@ -36,8 +36,8 @@
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8255.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "plx9052.h"
/*

View File

@ -117,8 +117,7 @@
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/comedi/comedidev.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
static unsigned int __i8254_read(struct comedi_8254 *i8254, unsigned int reg)
{

View File

@ -12,8 +12,8 @@
#include <linux/module.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "das08.h"
/*

View File

@ -65,9 +65,9 @@
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_isadma.h"
#include "comedi_8254.h"
#define DAS16_DMA_SIZE 0xff00 /* size in bytes of allocated dma buffer */

View File

@ -44,8 +44,7 @@
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* Register map (dev->iobase)

View File

@ -74,9 +74,9 @@
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_isadma.h"
#include "comedi_8254.h"
/* misc. defines */
#define DAS1800_SIZE 16 /* uses 16 io addresses */

View File

@ -25,8 +25,7 @@
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* Register I/O map

View File

@ -47,8 +47,7 @@
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/comedi/comedidev.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
#define N_CHAN_AI 8 /* number of analog input channels */

View File

@ -33,8 +33,8 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "plx9052.h"
#define ME4000_FIRMWARE "me4000_firmware.bin"

View File

@ -40,9 +40,9 @@
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_isadma.h"
#include "comedi_8254.h"
#define A2150_DMA_BUFFER_SIZE 0xff00 /* size in bytes of dma buffer */

View File

@ -26,8 +26,7 @@
#include <linux/module.h>
#include <linux/comedi/comedidev.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* Register map

View File

@ -14,8 +14,8 @@
#include <linux/slab.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8255.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "ni_labpc.h"
#include "ni_labpc_regs.h"
#include "ni_labpc_isadma.h"

View File

@ -30,8 +30,7 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include "comedi_8254.h"
#include <linux/comedi/comedi_8254.h>
/*
* I/O port register map

View File

@ -115,9 +115,9 @@
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_isadma.h"
#include "comedi_8254.h"
/*
* Register I/O map

View File

@ -36,9 +36,9 @@
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_isadma.h"
#include "comedi_8254.h"
/*
* Register I/O map

View File

@ -98,9 +98,9 @@
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedidev.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_isadma.h"
#include "comedi_8254.h"
/*
* Register I/O map

View File

@ -86,8 +86,8 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/comedi/comedi_pci.h>
#include <linux/comedi/comedi_8254.h>
#include "comedi_8254.h"
#include "plx9080.h"
/*