13df2l3.txt ;************************************************************************************************** ; LISTING 3 - DATA-ACQUISITION-BOARD INITIALIZATION ; ; "Get those boards talking under Linux," EDN, June 22, 2000, pg 153 ; ; http://www.ednmag.com/ednmag/reg/2000/06222000/13df2.htm ;**************************************************************************************************** int init_module(void) { struct pci_dev *dev = NULL; // PCI device structure // find suitable device on PCI bus and try to work with it while (dev = pci_find_device(MOTOROLA_VENDORID, DSP56301_DEVICEID, dev)) { pd_enumerate_devices(dev); // OS-independent function to initialize device } // register character device in OS if(register_chrdev(PD_MAJOR, "powerdaq", &pd_fops)) return -EBUSY;}