flinklib
flinklib: flink C library for Linux
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
types.h
Go to the documentation of this file.
1 /*******************************************************************
2  * _________ _____ _____ ____ _____ ___ ____ *
3  * |_ ___ | |_ _| |_ _| |_ \|_ _| |_ ||_ _| *
4  * | |_ \_| | | | | | \ | | | |_/ / *
5  * | _| | | _ | | | |\ \| | | __'. *
6  * _| |_ _| |__/ | _| |_ _| |_\ |_ _| | \ \_ *
7  * |_____| |________| |_____| |_____|\____| |____||____| *
8  * *
9  *******************************************************************
10  * *
11  * flink userspace library, types *
12  * *
13  *******************************************************************/
14 
22 #ifndef FLINKLIB_TYPES_H_
23 #define FLINKLIB_TYPES_H_
24 
25 #include "stdint.h"
26 #include "flinklib.h"
27 
28 struct _flink_dev {
29  int fd;
30  uint8_t nof_subdevices;
32 };
33 
34 struct _flink_subdev {
35  uint8_t id;
36  uint16_t function_id;
37  uint8_t sub_function_id;
38  uint8_t function_version;
39  uint32_t base_addr;
40  uint32_t mem_size;
41  uint32_t nof_channels;
42  uint32_t unique_id;
44 };
45 
46 #endif // FLINKLIB_TYPES_H_