| option[0] - PCI bus number - if bus number and slot number are 0, |
| then driver search for first unused card |
| option[1] - PCI slot number |
- | |
- | option[2] = 0 - DMA ENABLE |
- | = 1 - DMA DISABLE |
+----------+-----------+------------------------------------------------+
*/
unsigned int dw_Dummy;
resource_size_t iobase_a, iobase_main, iobase_addon, iobase_reserved;
struct pcilst_struct *card = NULL;
- int i_Dma = 0;
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
pci_list_builded = 1;
}
- if ((this_board->i_Dma) && (it->options[2] == 0)) {
- i_Dma = 1;
- }
-
card = ptr_select_and_alloc_pci_card(this_board->i_VendorId,
this_board->i_DeviceId,
it->options[0],
ret = comedi_pci_enable(pcidev, "addi_amcc_s5933");
if (ret)
return ret;
- if (i_Dma)
+ if (this_board->i_Dma)
pci_set_master(pcidev);
card->used = 1;
devpriv->allocated = 1;