File custom.c

Defines

_GNU_SOURCE

Functions

static int modeset_find_crtc(int fd, drmModeRes *res, drmModeConnector *conn, struct modeset_dev *dev)
static int modeset_create_fb(int fd, struct modeset_dev *dev)
static int modeset_setup_dev(int fd, drmModeRes *res, drmModeConnector *conn, struct modeset_dev *dev)
static int modeset_open(int *out, const char *node)
static int modeset_prepare(int fd)
static void modeset_draw(int dlen, uint8_t *data)
static void modeset_cleanup(int fd)
char *str_reverse_in_place(char *str, int len)
int fpga_write(uint8_t *argv, uint32_t dlen)

Write data to FPGA.

FPGA write function

Author

Firstname Lastname

Parameters:
  • argv – argument list

  • dlen – length of data

static uint8_t next_color(bool *up, uint8_t cur, unsigned int mod)

Variables

static struct modeset_dev *modeset_list = NULL
struct modeset_dev

Public Members

struct modeset_dev *next
uint32_t width
uint32_t height
uint32_t stride
uint32_t size
uint32_t handle
uint8_t *map
drmModeModeInfo mode
uint32_t fb
uint32_t conn
uint32_t crtc
drmModeCrtc *saved_crtc