Xenomai 3.3.2
Loading...
Searching...
No Matches
instruction.h
1/*
2 * Analogy for Linux, instruction related features
3 *
4 * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org>
5 * Copyright (C) 2008 Alexis Berlemont <alexis.berlemont@free.fr>
6 *
7 * Xenomai is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * Xenomai is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with Xenomai; if not, write to the Free Software Foundation,
19 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21#ifndef _COBALT_RTDM_ANALOGY_INSTRUCTION_H
22#define _COBALT_RTDM_ANALOGY_INSTRUCTION_H
23
24struct a4l_kernel_instruction {
25 unsigned int type;
26 unsigned int idx_subd;
27 unsigned int chan_desc;
28 unsigned int data_size;
29 void *data;
30 void *__udata;
31};
32
33struct a4l_kernel_instruction_list {
34 unsigned int count;
35 struct a4l_kernel_instruction *insns;
36 a4l_insn_t *__uinsns;
37};
38
39/* Instruction related functions */
40
41/* Upper layer functions */
42int a4l_ioctl_insnlist(struct a4l_device_context * cxt, void *arg);
43int a4l_ioctl_insn(struct a4l_device_context * cxt, void *arg);
44
45#endif /* !_COBALT_RTDM_ANALOGY_BUFFER_H */
Structure describing the synchronous instruction.
Definition analogy.h:680