5.3. Driver Function Definitions
Copy stfp into the / kernel/drv/sparcv9 directory. The driver is ready
to be installed using following add_ drv( 1M) function.
# add_ drv -m '* 0666 root sys' stfp
Use modunload(1M) to unload the driver from the system. Use modstat( 1M)
to determine the module-id.
# modunload -i module-id
The Makefile for the x86_64 platform is also provided. Make sure copy
stfp into the /kernel/drv/amd64 directory on the x86 platform.
5.3. Driver Function Definitions
5.3.1. General
The 'STFP' device driver provides functions for each of the programming packets supported by the
bc635PCI-V2, bc637PCI-V2, bc635PCIe, and bc637PCIe Time and Frequency Processor. In addi-
tion, functions are provided to both read and write individual registers and dual port RAM locations on
the card. To understand the usage and effects of each of these functions, please refer to Chapter 1.
5.3.2. Functions
The 'STFP' device driver supports the bc635PCI-V2, bc637PCI-V2, bc635PCIe, and bc637PCIe
Time and Frequency Processor (TFP) modules. The TFP supports time code decoding, syn-
chronization to an external 1pps (Pulse Per Second) signal, a free running mode, a real time clock
mode, and the GPS Satellite System. A variety of timing outputs, all synchronous with the timing
source, are provided, including an IRIG B time code signal, a 1pps, programmable periodic, a time
coincidence strobe, and a 1, 5, or 10 MHz clock, or a DDS frequency clock in the range from less
than 1Hz to greater than 100MHz.
The open (2), close (2), read (2), write (2), and ioctl (2) system calls are supported. Most TFP func-
tions, including the reading of the time, are accessed through the ioctl (2) call.
Read/ Write Calls
- 199 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com