flinklib
flinklib: flink C library for Linux
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
flinkioctl.h
Go to the documentation of this file.
1
/*******************************************************************
2
* _________ _____ _____ ____ _____ ___ ____ *
3
* |_ ___ | |_ _| |_ _| |_ \|_ _| |_ ||_ _| *
4
* | |_ \_| | | | | | \ | | | |_/ / *
5
* | _| | | _ | | | |\ \| | | __'. *
6
* _| |_ _| |__/ | _| |_ _| |_\ |_ _| | \ \_ *
7
* |_____| |________| |_____| |_____|\____| |____||____| *
8
* *
9
*******************************************************************
10
* *
11
* fLink userspace library, ioctl definitions *
12
* *
13
*******************************************************************/
14
23
#ifndef FLINKLIB_IOCTL_H_
24
#define FLINKLIB_IOCTL_H_
25
26
typedef
enum
{
27
SELECT_SUBDEVICE
= 0x10,
28
SELECT_SUBDEVICE_EXCL
= 0x11,
29
READ_NOF_SUBDEVICES
= 0x20,
30
READ_SUBDEVICE_INFO
= 0x21,
31
READ_SINGLE_BIT
= 0x30,
32
WRITE_SINGLE_BIT
= 0x31,
33
SELECT_AND_READ_BIT
= 0x40,
34
SELECT_AND_WRITE_BIT
= 0x41,
35
SELECT_AND_READ
= 0x42,
36
SELECT_AND_WRITE
= 0x43
37
}
ioctl_cmd_t
;
38
39
typedef
struct
_ioctl_bit_container_t
{
40
uint32_t
offset
;
41
uint8_t
bit
;
42
uint8_t
value
;
43
uint8_t
subdevice
;
44
}
ioctl_bit_container_t
;
45
46
typedef
struct
_ioctl_container_t
{
47
uint8_t
subdevice
;
48
uint32_t
offset
;
49
uint8_t
size
;
50
void
*
data
;
51
}
ioctl_container_t
;
52
53
#endif // FLINKLIB_IOCTL_H_
READ_SINGLE_BIT
Definition:
flinkioctl.h:31
ioctl_container_t
struct _ioctl_container_t ioctl_container_t
_ioctl_bit_container_t
Definition:
flinkioctl.h:39
_ioctl_bit_container_t::bit
uint8_t bit
Offset of byte containing the single bit, taken from subdevice base address.
Definition:
flinkioctl.h:41
ioctl_cmd_t
ioctl_cmd_t
Definition:
flinkioctl.h:26
_ioctl_container_t
Definition:
flinkioctl.h:46
READ_SUBDEVICE_INFO
Definition:
flinkioctl.h:30
_ioctl_container_t::subdevice
uint8_t subdevice
Definition:
flinkioctl.h:47
_ioctl_container_t::data
void * data
size of data
Definition:
flinkioctl.h:50
READ_NOF_SUBDEVICES
Definition:
flinkioctl.h:29
ioctl_bit_container_t
struct _ioctl_bit_container_t ioctl_bit_container_t
_ioctl_container_t::offset
uint32_t offset
subdevice to read from / write to
Definition:
flinkioctl.h:48
SELECT_AND_READ
Definition:
flinkioctl.h:35
_ioctl_bit_container_t::value
uint8_t value
Bit number in byte.
Definition:
flinkioctl.h:42
_ioctl_bit_container_t::offset
uint32_t offset
Definition:
flinkioctl.h:40
_ioctl_bit_container_t::subdevice
uint8_t subdevice
Value of the bit.
Definition:
flinkioctl.h:43
_ioctl_container_t::size
uint8_t size
offset to base address of subdevice
Definition:
flinkioctl.h:49
SELECT_SUBDEVICE
Definition:
flinkioctl.h:27
SELECT_AND_READ_BIT
Definition:
flinkioctl.h:33
WRITE_SINGLE_BIT
Definition:
flinkioctl.h:32
SELECT_AND_WRITE
Definition:
flinkioctl.h:36
SELECT_SUBDEVICE_EXCL
Definition:
flinkioctl.h:28
SELECT_AND_WRITE_BIT
Definition:
flinkioctl.h:34
include
flinkioctl.h
Generated on Sun Apr 5 2015 12:38:32 for flinklib by
1.8.6