Introduction
This driver provides support for Connect Tech’s ComSync/104 and ComSync/PCI Serial Driver for Linux 2.6 and above. The following installation guide contains information on how to install the driver and get a sample application running.
Comsync/PCI and ComSync/104 DRIVER INSTALLATION
The package comes with source code, please build the driver first using “make”.comsync.ko is the loadable module. The default major number is 9 though major number is also an argument to the driver startup to suit the major number for a system. ‘runsync’ utility is included to install the module and major number set to 200. The ports created are /dev/csync1 and /dev/csync2 etc. Follow the naming scheme as csync1..x since this is important when multiple ComSync boards installed in the same computer.
If a ComSync/PCI board is installed in the system it will be detected automatically once the driver module is loaded.
If using a ComSync/104 board you must provide the appropriate base address and irq as arguments. Base address must be provided as ‘iobasex’ and irq number as ‘irqx’ where ‘x’ will be 1 to 4 that corresponds board index. Therefore, a maximum of four ComSync/104 boards can be installed.
Driver usage
Please look at the CSPCI_pset.h file for the different port settings available and ioctls.h for custom ioctls. A sample application ‘test.c’ is provided for reference, it demonstrates how to setup the port and how to perform port operations.
Apart from being a reference the sample application also provides a means to test if your setup is working correctly. This is especially useful when using the ComSync/104 board. There are few different configuration files provided for easy setup of the test application. Test configuration file *.cfg with ‘-escc’ in the file name are for ComSync/104 board otherwise they are for ComSync/PCI board. Rename the .cfg file you want to use to comsync.cfg and run ‘test’ application.
Clock tree of ComSync/104 and ComSync/PCI is ESCC-Clock-Tree.pdf and IUSC-Clock-Tree.pdf respectively.
To unload the driver module please look at the delsync utility.