#include <linux/comedidev.h>
#include "8255.h"
-#ifdef CONFIG_PCMCIA
-
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/string.h>
static dev_link_t *pcmcia_dev_list = NULL;
-#endif // CONFIG_PCMCIA
-
#define DIO24_SIZE 4 // size of io region used by board
static int dio24_attach(comedi_device *dev,comedi_devconfig *it);
static dio24_board dio24_boards[] =
{
-#ifdef CONFIG_PCMCIA
{
name: "daqcard-dio24",
device_id: 0x475c, // 0x10b is manufacturer id, 0x475c is device id
read_byte: dio24_inb,
write_byte: dio24_outb,
},
-#endif // CONFIG_PCMCIA
};
/*
comedi_subdevice *s;
int iobase = 0;
int irq = 0;
-#ifdef CONFIG_PCMCIA
dev_link_t *link;
-#endif
/* allocate and initialize dev->private */
if(alloc_private(dev, sizeof(dio24_private)) < 0)
switch(thisboard->bustype)
{
case pcmcia_bustype:
-#ifdef CONFIG_PCMCIA
link = pcmcia_dev_list; /* XXX hack */
if(!link) return -EIO;
iobase = link->io.BasePort1;
irq = link->irq.AssignedIRQ;
-#else
- printk(" driver was not compiled with pcmcia support\n");
- return -EINVAL;
-#endif // CONFIG_PCMCIA
break;
default:
printk("bug! couldn't determine board type\n");
// PCMCIA crap
-#ifdef CONFIG_PCMCIA
/*
All the PCMCIA modules use PCMCIA_DEBUG to control debugging. If
comedi_driver_unregister(&driver_dio24);
}
-#else
-COMEDI_INITCLEANUP(driver_dio24);
-
-#endif // CONFIG_PCMCIA