Author: Daniel Vecino Castel <dvecino@able.es>
Devices: National Instruments PCMCIA DAQ-Card DIO-24
Status: ?
+Updated: Thu, 07 Nov 2002 21:53:06 -0800
+
+This is just a wrapper around the 8255.o driver to properly handle
+the PCMCIA interface.
*/
static int dio24_attach(comedi_device *dev,comedi_devconfig *it);
static int dio24_detach(comedi_device *dev);
-static unsigned int dio24_inb(unsigned int address);
-static void dio24_outb(unsigned int byte, unsigned int address);
-
enum dio24_bustype {pcmcia_bustype};
typedef struct dio24_board_struct{
device_id: 0x475c, // 0x10b is manufacturer id, 0x475c is device id
bustype: pcmcia_bustype,
have_dio: 1,
- read_byte: dio24_inb,
- write_byte: dio24_outb,
},
};
};
-/* functions that do inb/outb and readb/writeb so we can use
- * function pointers to decide which to use */
-static unsigned int dio24_inb(unsigned int address)
-{
- return inb(address);
-}
-
-static void dio24_outb(unsigned int byte, unsigned int address)
-{
- outb(byte, address);
-}
-
// PCMCIA crap
{
int ret;
- printk("ni_daq_dio24: HOLA SOY YO el primero!\n");
ret = init_dio24_cs();
if(ret < 0)
return ret;
void cleanup_module(void)
{
- printk("ni_daq_dio24: ADIOS SOY YO el primero!\n");
exit_dio24_cs();
comedi_driver_unregister(&driver_dio24);
}