if (devpriv->valid) pci9118_reset(dev);
release_region(devpriv->iobase_a,this_board->iorange_amcc);
if (devpriv->allocated) pci_card_free(devpriv->amcc);
- if (devpriv->dmabuf_virt[0]) free_pages((unsigned int)devpriv->dmabuf_virt[0],devpriv->dmabuf_pages[0]);
- if (devpriv->dmabuf_virt[1]) free_pages((unsigned int)devpriv->dmabuf_virt[1],devpriv->dmabuf_pages[1]);
+ if (devpriv->dmabuf_virt[0]) free_pages((unsigned long)devpriv->dmabuf_virt[0],devpriv->dmabuf_pages[0]);
+ if (devpriv->dmabuf_virt[1]) free_pages((unsigned long)devpriv->dmabuf_virt[1],devpriv->dmabuf_pages[1]);
}
if(dev->irq) comedi_free_irq(dev->irq,dev);
static const int read_command = 0x6;
unsigned int bitstream = (read_command << 8) | address;
unsigned int bit;
- const int plx_control_addr = priv(dev)->plx9080_iobase + PLX_CONTROL_REG;
+ const unsigned long plx_control_addr = priv(dev)->plx9080_iobase + PLX_CONTROL_REG;
uint16_t value;
static const int value_length = 16;
static const int eeprom_comedi_udelay = 1;
| | +-------- Simultaneous sample and hold
| +---------- Signed data format
+------------------------- Correction offset low
-
+
Word2:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
! | | | ! | | | ! | | | ! | | | !
int timeout;
for(i=0;i<insn->n;i++){
- /*
+ /*
* OK, since it works OK without enabling the DAC's, let's keep
* it as simple as possible...
*/
daqboard2000_pulseProgPin(dev);
if(daqboard2000_pollCPLD(dev, DAQBOARD2000_CPLD_INIT)) {
for (i = 0 ; i < len ; i++) {
- if (cpld_array[i] == 0xff && cpld_array[i+1] == 0x20) {
+ if (cpld_array[i] == 0xff && cpld_array[i+1] == 0x20) {
#ifdef DEBUG_EEPROM
printk("Preamble found at %d\n", i);
#endif
printk("Interrupt after is: %x\n", interrupt);
*/
- dev->iobase = (int)devpriv->daq;
-
+ dev->iobase = (unsigned long)devpriv->daq;
+
dev->board_name = this_board->name;
s = dev->subdevices + 0;
printk("0x%08lx mapped to %p, ",devpriv->phys_addr,devpriv->io_addr);
#endif
- dev->iobase = (int)devpriv->io_addr;
+ dev->iobase = (unsigned long)devpriv->io_addr;
return 0;
}
printk("0x%08lx mapped to %p, ", iobase, devpriv->io_addr);
#endif
- dev->iobase = (int)devpriv->io_addr;
+ dev->iobase = (unsigned long)devpriv->io_addr;
dev->board_name = this_board->name;
typedef union {
- int iobase;
+ unsigned long iobase;
struct {
- int iobase;
+ unsigned long iobase;
comedi_lrange *ao_range_list[2]; /* range of channels of ao module */
lsampl_t last_data[2];
}pci20006;
struct {
- int iobase;
+ unsigned long iobase;
int timebase;
int settling_time;
int ai_gain;
typedef struct
{
struct pci_dev* pci_device;
- unsigned int plx_regbase; // PLX configuration base address
- unsigned int me_regbase; // Base address of the Meilhaus card
+ unsigned long plx_regbase; // PLX configuration base address
+ unsigned long me_regbase; // Base address of the Meilhaus card
unsigned int plx_regbase_size; // Size of PLX configuration space
unsigned int me_regbase_size; // Size of Meilhaus space
value is
*/
int tmpdata[2];
- int address;
+ unsigned long address;
/* ============================================================ */
/* 1 subdevice with 8 channels, differentation based on channel */
if(data[0]){
s->state &= ~data[0];
s->state |= (data[0]&data[1]);
- outb(s->state,dev->iobase+(int)(s->private));
+ outb(s->state,dev->iobase+(unsigned long)(s->private));
}
data[1] = s->state;
comedi_insn *insn,lsampl_t *data)
{
if(insn->n!=2)return -EINVAL;
- data[1] = inb(dev->iobase+(int)(s->private));
+ data[1] = inb(dev->iobase+(unsigned long)(s->private));
return 2;
}
usbduxsub->urbIn[i]->status = 0;
usbduxsub->urbIn[i]->transfer_flags = URB_ISO_ASAP;
#ifdef CONFIG_COMEDI_DEBUG
- printk("comedi%d: usbdux: submitting in-urb[%d]: %x,%x\n",
+ printk("comedi%d: usbdux: submitting in-urb[%d]: %p,%p\n",
usbduxsub->comedidev->minor,
i,
- (int)(usbduxsub->urbIn[i]->context),
- (int)(usbduxsub->urbIn[i]->dev));
+ (usbduxsub->urbIn[i]->context),
+ (usbduxsub->urbIn[i]->dev));
#endif
errFlag = USB_SUBMIT_URB
(usbduxsub->urbIn[i]);