From 46857e0b89315ffb168105445789d6a0d74b4d6e Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 2 Nov 2001 19:48:36 +0000 Subject: [PATCH] added some debugging messages --- comedi/drivers/das08.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index 6776bd80..51a3eccb 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -43,8 +43,12 @@ Options (for pci-das08): [1] = slot (optional) Use the name 'pci-das08' for the pci-das08, NOT 'das08'. +Options (for pcm-das08): + NONE + The das08 driver doesn't support asynchronous commands, since -the cheap das08 hardware doesn't really support them. The +the cheap das08 hardware doesn't really support them (except for +pcm-das08). The comedi_rt_timer driver can be used to emulate commands for this driver. */ @@ -725,12 +729,12 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it) if((ret=alloc_private(dev,sizeof(struct das08_private_struct)))<0) return ret; - printk("comedi%d: das08", dev->minor); + printk("comedi%d: das08: ", dev->minor); // deal with a pci board if(thisboard->bustype == pci) { if(it->options[0] || it->options[1]){ - printk(": bus %i, slot %i", + printk("bus %i slot %i ", it->options[0], it->options[1]); } printk("\n"); @@ -763,7 +767,7 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it) pci_iobase = pdev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK; iobase = pdev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK; #endif - + printk("pcibase 0x%x ", pci_iobase); // reserve io ports for 9052 pci chip if(check_region(pci_iobase,PCIDAS08_SIZE)<0){ printk(" I/O port conflict\n"); @@ -796,12 +800,12 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it) #endif // CONFIG_PCMCIA }else{ iobase = it->options[0]; - printk(": 0x%04x\n", iobase); } // allocate ioports for non-pcmcia boards if(thisboard->bustype != pcmcia) { + printk("iobase 0x%x ", iobase); if(check_region(iobase,DAS08_SIZE)<0){ printk(" I/O port conflict\n"); return -EIO; @@ -810,6 +814,8 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it) } dev->iobase = iobase; + printk("\n"); + dev->board_name = thisboard->name; dev->n_subdevices=5; -- 2.26.2