freebsd-dev/sys/sys/dataacq.h
Bruce Evans ebedb5ad97 Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header.  Include <sys/ioccom.h>
  instead.  This was already done in 4.4Lite for the most important
  ioctl headers.  Header spam currently increases kernel build
  times by 10-20%.  There are more than 30000 #includes (not counting
  duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
  almost self-sufficient (some ioctl headers still need structs from
  elsewhere).
- uniformized idempotency ifdefs.  Copied the style in the 4.4Lite
  ioctl headers.
1996-09-21 14:59:43 +00:00

35 lines
1.0 KiB
C

/* Header for general data acquisition definitions.
*/
#ifndef _SYS_DATAACQ_H_
#define _SYS_DATAACQ_H_
#include <sys/ioccom.h>
/* Period in microseconds between analog I/O samples.
*/
#define AD_MICRO_PERIOD_SET _IOW('A', 1, long)
#define AD_MICRO_PERIOD_GET _IOR('A', 2, long)
/* Gain list support. Initially all gains are 1. If the board
* supports no gains at all then AD_NGAINS_GET will return a 0.
*
* AD_NGAINS_GET: Return the number of gains the board supports
*
* AD_SUPPORTED_GAINS: Get the supported gains.
* The driver will copy out "ngains" doubles,
* where "ngains" is obtained with AD_NGAINS_GET.
*
* AD_GAINS_SET: Set the gain list. The driver will copy in "ngains" ints.
*
* AD_GAINS_GET: Get the gain list. The driver will copy out "ngains" ints.
*/
#define AD_NGAINS_GET _IOR('A', 3, int)
#define AD_NCHANS_GET _IOR('A', 4, int)
#define AD_SUPPORTED_GAINS _IO('A', 5)
#define AD_GAINS_SET _IO('A', 6)
#define AD_GAINS_GET _IO('A', 7)
#endif /* !_SYS_DATAACQ_H_ */