#include "8255.h"
// pcmcia includes
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
#include <pcmcia/version.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/cs.h>
static int das08jr_ao_winsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *insn,lsampl_t *data);
static int das08ao_ao_winsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *insn,lsampl_t *data);
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
/*
A linked list of "instances" of the das08_pcmcia device. Each actual
PCMCIA card corresponds to one device instance, and is described
i8254_offset: 4,
iosize: 8,
},
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
{
name: "pcm-das08",
id: 0x0, // XXX
int ret;
int iobase, pci_iobase = 0;
struct pci_dev *pdev;
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
dev_link_t *link = dev_list; // XXX hack
#endif
outw(INTR1_ENABLE | PCI_INTR_ENABLE, pci_iobase + INTCSR );
#endif
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
}else if(thisboard->bustype == pcmcia)
{
if(link == NULL)
be present but disabled -- but it can then be enabled for specific
modules at load time with a 'pc_debug=#' option to insmod.
*/
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
#ifdef PCMCIA_DEBUG
static int pc_debug = PCMCIA_DEBUG;
#include "8255.h"
#include "mite.h"
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
//#include <pcmcia/config.h>
//#include <pcmcia/k_compat.h>
static labpc_board labpc_boards[] =
{
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
{
name: "daqcard-1200",
device_id: 0x103, // 0x10b is manufacturer id, 0x103 is device id
int i;
unsigned long flags, isr_flags;
int ret;
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
dev_link_t *link;
#endif
irq = mite_irq(devpriv->mite);
break;
case pcmcia_bustype:
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
link = pcmcia_dev_list; /* XXX hack */
if(!link) return -EIO;
iobase = link->io.BasePort1;
}
// PCMCIA crap
-#ifdef CONFIG_PCMCIA
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
/*
All the PCMCIA modules use PCMCIA_DEBUG to control debugging. If