ChimeraTK-DeviceAccess  03.18.00
pciedev_io_compat.h File Reference
#include <linux/ioctl.h>
#include <linux/types.h>
#include <sys/time.h>
+ Include dependency graph for pciedev_io_compat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  device_rw
 
struct  device_ioctrl_data
 
struct  device_ioctrl_dma
 
struct  device_ioctrl_time
 

Macros

#define RW_D8   0x0
 
#define RW_D16   0x1
 
#define RW_D32   0x2
 
#define RW_DMA   0x3
 
#define RW_INFO   0x4
 
#define DMA_DATA_OFFSET   6
 
#define DMA_DATA_OFFSET_BYTE   24
 
#define PCIEDEV_DMA_SYZE   4096
 
#define PCIEDEV_DMA_MIN_SYZE   128
 
#define IOCTRL_R   0x00
 
#define IOCTRL_W   0x01
 
#define IOCTRL_ALL   0x02
 
#define BAR0   0
 
#define BAR1   1
 
#define BAR2   2
 
#define BAR3   3
 
#define BAR4   4
 
#define BAR5   5
 
#define PCIEDOOCS_IOC   '0'
 
#define PCIEDEV_PHYSICAL_SLOT   _IOWR(PCIEDOOCS_IOC, 60, int)
 
#define PCIEDEV_DRIVER_VERSION   _IOWR(PCIEDOOCS_IOC, 61, int)
 
#define PCIEDEV_FIRMWARE_VERSION   _IOWR(PCIEDOOCS_IOC, 62, int)
 
#define PCIEDEV_GET_DMA_TIME   _IOWR(PCIEDOOCS_IOC, 70, int)
 
#define PCIEDEV_WRITE_DMA   _IOWR(PCIEDOOCS_IOC, 71, int)
 
#define PCIEDEV_READ_DMA   _IOWR(PCIEDOOCS_IOC, 72, int)
 
#define PCIEDEV_SET_IRQ   _IOWR(PCIEDOOCS_IOC, 73, int)
 
#define PCIEDOOCS_IOC_MINNR   60
 
#define PCIEDOOCS_IOC_MAXNR   63
 
#define PCIEDOOCS_IOC_DMA_MINNR   70
 
#define PCIEDOOCS_IOC_DMA_MAXNR   74
 

Typedefs

typedef struct device_rw device_rw
 
typedef struct device_ioctrl_data device_ioctrl_data
 
typedef struct device_ioctrl_dma device_ioctrl_dma
 
typedef struct device_ioctrl_time device_ioctrl_time
 

Macro Definition Documentation

◆ BAR0

#define BAR0   0

Definition at line 26 of file pciedev_io_compat.h.

◆ BAR1

#define BAR1   1

Definition at line 27 of file pciedev_io_compat.h.

◆ BAR2

#define BAR2   2

Definition at line 28 of file pciedev_io_compat.h.

◆ BAR3

#define BAR3   3

Definition at line 29 of file pciedev_io_compat.h.

◆ BAR4

#define BAR4   4

Definition at line 30 of file pciedev_io_compat.h.

◆ BAR5

#define BAR5   5

Definition at line 31 of file pciedev_io_compat.h.

◆ DMA_DATA_OFFSET

#define DMA_DATA_OFFSET   6

Definition at line 17 of file pciedev_io_compat.h.

◆ DMA_DATA_OFFSET_BYTE

#define DMA_DATA_OFFSET_BYTE   24

Definition at line 18 of file pciedev_io_compat.h.

◆ IOCTRL_ALL

#define IOCTRL_ALL   0x02

Definition at line 24 of file pciedev_io_compat.h.

◆ IOCTRL_R

#define IOCTRL_R   0x00

Definition at line 22 of file pciedev_io_compat.h.

◆ IOCTRL_W

#define IOCTRL_W   0x01

Definition at line 23 of file pciedev_io_compat.h.

◆ PCIEDEV_DMA_MIN_SYZE

#define PCIEDEV_DMA_MIN_SYZE   128

Definition at line 20 of file pciedev_io_compat.h.

◆ PCIEDEV_DMA_SYZE

#define PCIEDEV_DMA_SYZE   4096

Definition at line 19 of file pciedev_io_compat.h.

◆ PCIEDEV_DRIVER_VERSION

#define PCIEDEV_DRIVER_VERSION   _IOWR(PCIEDOOCS_IOC, 61, int)

Definition at line 73 of file pciedev_io_compat.h.

◆ PCIEDEV_FIRMWARE_VERSION

#define PCIEDEV_FIRMWARE_VERSION   _IOWR(PCIEDOOCS_IOC, 62, int)

Definition at line 74 of file pciedev_io_compat.h.

◆ PCIEDEV_GET_DMA_TIME

#define PCIEDEV_GET_DMA_TIME   _IOWR(PCIEDOOCS_IOC, 70, int)

Definition at line 75 of file pciedev_io_compat.h.

◆ PCIEDEV_PHYSICAL_SLOT

#define PCIEDEV_PHYSICAL_SLOT   _IOWR(PCIEDOOCS_IOC, 60, int)

Definition at line 72 of file pciedev_io_compat.h.

◆ PCIEDEV_READ_DMA

#define PCIEDEV_READ_DMA   _IOWR(PCIEDOOCS_IOC, 72, int)

Definition at line 77 of file pciedev_io_compat.h.

◆ PCIEDEV_SET_IRQ

#define PCIEDEV_SET_IRQ   _IOWR(PCIEDOOCS_IOC, 73, int)

Definition at line 78 of file pciedev_io_compat.h.

◆ PCIEDEV_WRITE_DMA

#define PCIEDEV_WRITE_DMA   _IOWR(PCIEDOOCS_IOC, 71, int)

Definition at line 76 of file pciedev_io_compat.h.

◆ PCIEDOOCS_IOC

#define PCIEDOOCS_IOC   '0'

Definition at line 71 of file pciedev_io_compat.h.

◆ PCIEDOOCS_IOC_DMA_MAXNR

#define PCIEDOOCS_IOC_DMA_MAXNR   74

Definition at line 82 of file pciedev_io_compat.h.

◆ PCIEDOOCS_IOC_DMA_MINNR

#define PCIEDOOCS_IOC_DMA_MINNR   70

Definition at line 81 of file pciedev_io_compat.h.

◆ PCIEDOOCS_IOC_MAXNR

#define PCIEDOOCS_IOC_MAXNR   63

Definition at line 80 of file pciedev_io_compat.h.

◆ PCIEDOOCS_IOC_MINNR

#define PCIEDOOCS_IOC_MINNR   60

Definition at line 79 of file pciedev_io_compat.h.

◆ RW_D16

#define RW_D16   0x1

Definition at line 13 of file pciedev_io_compat.h.

◆ RW_D32

#define RW_D32   0x2

Definition at line 14 of file pciedev_io_compat.h.

◆ RW_D8

#define RW_D8   0x0

Definition at line 12 of file pciedev_io_compat.h.

◆ RW_DMA

#define RW_DMA   0x3

Definition at line 15 of file pciedev_io_compat.h.

◆ RW_INFO

#define RW_INFO   0x4

Definition at line 16 of file pciedev_io_compat.h.

Typedef Documentation

◆ device_ioctrl_data

Definition at line 50 of file pciedev_io_compat.h.

◆ device_ioctrl_dma

Definition at line 62 of file pciedev_io_compat.h.

◆ device_ioctrl_time

Definition at line 68 of file pciedev_io_compat.h.

◆ device_rw

typedef struct device_rw device_rw

Definition at line 42 of file pciedev_io_compat.h.