AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
ACQPROC
afhba-llcontrol.h
Go to the documentation of this file.
1
/* ------------------------------------------------------------------------- */
2
/* afhba-llcontrol-common.h D-TACQ ACQ400 FMC DRIVER
3
* Project: AFHBA404
4
* Created: 5 Mar 2018 / User: pgm
5
* ------------------------------------------------------------------------- *
6
* Copyright (C) 2018 Peter Milne, D-TACQ Solutions Ltd *
7
* <peter dot milne at D hyphen TACQ dot com> *
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of Version 2 of the GNU General Public License *
11
* as published by the Free Software Foundation; *
12
* *
13
* This program is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16
* GNU General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU General Public License *
19
* along with this program; if not, write to the Free Software *
20
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21
*
22
* TODO
23
* TODO
24
/* ------------------------------------------------------------------------- */
25
26
#ifndef LLCONTROL_AFHBA_LLCONTROL_COMMON_H_
27
#define LLCONTROL_AFHBA_LLCONTROL_COMMON_H_
28
29
#ifndef _GNU_SOURCE
30
#define _GNU_SOURCE
31
#endif
32
#include <sched.h>
33
34
#include <stdio.h>
35
#include <stdlib.h>
36
#include <unistd.h>
37
#include <string.h>
38
#include <sched.h>
39
#include <errno.h>
40
#include <fcntl.h>
41
#include <sys/ioctl.h>
42
#include <sys/mman.h>
43
#include <sys/types.h>
44
45
unsigned
difftime_us
(
void
);
46
void
*
get_mapping
(dev_t devnum,
int
*pfd);
47
void
clear_mapping
(
int
fd,
void
* hb);
48
void
setAffinity
(
unsigned
cpu_mask);
49
void
goRealTime
(
void
);
50
51
52
53
#endif
/* LLCONTROL_AFHBA_LLCONTROL_COMMON_H_ */
clear_mapping
void clear_mapping(int fd, void *hb)
Definition:
afhba-llcontrol.c:108
get_mapping
void * get_mapping(dev_t devnum, int *pfd)
Definition:
afhba-llcontrol.c:86
goRealTime
void goRealTime(void)
Definition:
afhba-llcontrol.c:138
setAffinity
void setAffinity(unsigned cpu_mask)
Definition:
afhba-llcontrol.c:113
difftime_us
unsigned difftime_us(void)
Definition:
afhba-llcontrol.c:63
Generated by
1.8.18