next up previous
Next: System error detection (i.e. Up: The library Previous: Memory Mapping

Miscalleanous

The process can test the connection between PCIADA and VMEMM at any time via

   int ArwvmeCheckConnection(int fd);
which is already done during the init_module() routine. It returns TRUE, if the connection was ok, FALSE otherwise.

   int ArwvmeResetVme(int fd);
initiates a global reset in the VMEMM module and is accessible only to superuser and group members of this device.

   int ArwvmeInitialize(int fd);
inits the hardware of the VMEMM module and is accessible only superuser and group members of this device.

   void ArwvmeTieFpos(int fd);
ties the f_pos (position in the device space i.e. file position) to the read or write action.
   void ArwvmeUntieFpos(int fd);
unties the f_pos, sucessive reads or writes won't alter the file position (useful for fifos).

   int ArwvmeCtrlArbiter(int fd, int arb_mode, int br_lev, 
                         int fairness);
controls the arbiter paramters of the VMEMM. There are two possible arb_modes - ArwvmeArbPri (Priority -) and ArwvmeArbRR (Round-Robin- arbitration). The bus request level is br_lev (0..3) and the fairness duration counts from 0 (disabled), 1 (2mus), 2 (4mus), .., 15 (none).

   int ArwvmeSetVMEbusTO(int to);
controls the timeout value of the VMEbus timeout, the values are 4us .. 512us .. infinity, whereas user values > 512 are mapped to infinity.


next up previous
Next: System error detection (i.e. Up: The library Previous: Memory Mapping


Fri Jul 2 08:09:45 MEST 1999