57#ifndef LIBBSP_ARM_XILINX_ZYNQ_DEVCFG_H
58#define LIBBSP_ARM_XILINX_ZYNQ_DEVCFG_H
66#define ZYNQ_DEVCFG_NAME "/dev/fpga"
70#define ZYNQ_DEVCFG_DRIVER_TABLE_ENTRY \
71 { zynq_devcfg_init, zynq_devcfg_open, zynq_devcfg_close, zynq_devcfg_read, \
72 zynq_devcfg_write, zynq_devcfg_control }
77#define ZYNQ_DEVCFG_PCAP_DMA_ALIGN 64
80#define ZYNQ_DEVCFG_CFG_DUMMY ( 0xffffffff )
81#define ZYNQ_DEVCFG_CFG_BUS_WIDTH_SYNC ( 0x000000bb )
82#define ZYNQ_DEVCFG_CFG_BUS_WIDTH_DETECT ( 0x11220044 )
83#define ZYNQ_DEVCFG_CFG_SYNC ( 0xaa995566 )
86#define ZYNQ_DEVCFG_CONFIG_FRAME_LEN ( 101 * 4 )
88#define ZYNQ_DEVCFG_IOCTL_VERSION_MAX_LEN 16
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
rtems_device_driver zynq_devcfg_write(rtems_device_major_number major, rtems_device_minor_number minor, void *args)
Write to the PCAP controller.
Definition: zynq-devcfg.c:661
rtems_device_driver zynq_devcfg_read(rtems_device_major_number major, rtems_device_minor_number minor, void *args)
Read from the PCAP controller.
Definition: zynq-devcfg.c:570
zynq_devcfg_ioctl
Definition: zynq-devcfg.h:90
@ ZYNQ_DEVCFG_IOCTL_SET_WRITE_MODE_RESTRICTED
Argument: bool.
Definition: zynq-devcfg.h:104
@ ZYNQ_DEVCFG_IOCTL_VERSION
Argument: Buffer for character string of at least ZYNQ_DEVCFG_IOCTL_VERSION_MAX_LEN bytes.
Definition: zynq-devcfg.h:94
@ ZYNQ_DEVCFG_IOCTL_FPGA_PROGRAM_POST
Argument: None.
Definition: zynq-devcfg.h:98
@ ZYNQ_DEVCFG_IOCTL_FPGA_PROGRAM_PRE
Argument: None.
Definition: zynq-devcfg.h:96
@ ZYNQ_DEVCFG_IOCTL_FPGA_PROGRAM_WAIT_DONE
Argument: None.
Definition: zynq-devcfg.h:100
@ ZYNQ_DEVCFG_IOCTL_SET_SECURE
Argument: bool.
Definition: zynq-devcfg.h:102