# ADDI-DATA APCI-1016 Linux Driver

**Copyright 2007 - ADDI-DATA**

See the main [README.md](../../../README.md) for general information about:
- User rights management for driver usage
- Driver build and installation process
- Troubleshooting (udev, kernel bumps, permission errors, Comedi conflicts)
- Loading drivers automatically at boot time

## API and Kernel Interface

### Header Files

See the ADDI-DATA header files in `include/linux/addidata/`:
- See `apci1016.h` for description of the IOCTL commands provided
- See `apci1016-kapi.h` for description of the kernel functions provided

### Deprecated Commands

The following commands are deprecated as the same information can be retrieved from OS facilities:
- `CMD_APCI1016_CheckAndGetPCISlotNumber`
- `CMD_APCI1016_GetHardwareInformation`

## Device Files

For each board detected, the driver dynamically creates a special character device file:

- **Kernel 2.4**: File created in `/proc/sys/apci1016`
  - Major device number: provided by the operating system
  - Minor device number: ordinal in the PCI device list (order of detection)
  - File name: PCI slot identification (BUS/SLOT/FUNCTION in hexadecimal)

- **Kernel >= 2.6**: Node created under `/dev/apci1016`

**WARNING**: This driver has not been tested with a true PCI hotplug system.

## Support

For any request or remark, please contact: info@addi-data.com
