1) What is this
===============

Linux driver for General Standards Corp. 16-AIO168 A/D with D/A board family.


2) Revision History
===================

Version 1.3 (Released 4/14/2005)

- Added code to properly enable and disable hardware interrupt routing.


Version 1.2 (Released 12/16/2004)

-Added support for the FC2 labeled kernel series.
- Included PDF manual in the release.

Version 1.1 - Released 7/30/2004

- Added PDF manual.
- Changed the release tar file name to the correct name.
- Fixed bugs with bitfield masks in the IOCTL calls.
- Fixed channel mask bugs in test application.
- Added DMA for write channel.

Version 1.0 - Released 7/26/2004

- Ported from 24DSI32 driver.
- Output looping not fully supported.
- Output DMA not implemented.

3) Files included
=================

Makefile            -- driver and test program make file
app.mak             -- makefile for test apps
gsc_start           -- script to install driver
README.TXT          -- this file
*.h                 -- driver include files
*.c                 -- driver source code
testapp             -- test application 
testapp.c           -- source for test application 
plx_regs.h          -- PLX register defs
sysdep.h            -- 2.2/2.x compatibility file

4) Building the driver
======================

The driver in the distribution may not be built for the version of Linux
you are running. To build for your version, the steps are:

- Ensure that the proper kernel sources are installed on your system.
- Edit Makefile and modify the KERNEL_DIR line to point to the top
  of the kernel source tree.
- Type 'make clean'
- Type 'make'  This will build the driver.

For the test applications,

- Type 'make -f app.mak clean'
- Type 'make -f app.mak'

5) Driver installation
======================

Become super user. Change to the directory containing the distribution files. Type

  ./gsc_start

6) Using the driver
===================

Run the attached test programs. They both take "index" of the board to use
as the command line argument.


Examples:

----------------------------------------

> testapp 0

----------------------------------------

Consult the source of the test programs for examples on how to open, close,
control and read the A/D board. The 'ioctl()' calls, which implement most
of the functionality of the driver have the same parameters as in the
Windows NT driver. Download the NT driver manual from the General Standards
web site to get started.  The IOCTL interface is also described in the
gsc16aio168_ioctl.h file.
