linux/include/video/udlfb.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef UDLFB_H
#define UDLFB_H

/*
 * TODO: Propose standard fb.h ioctl for reporting damage,
 * using _IOWR() and one of the existing area structs from fb.h
 * Consider these ioctls deprecated, but they're still used by the
 * DisplayLink X server as yet - need both to be modified in tandem
 * when new ioctl(s) are ready.
 */
#define DLFB_IOCTL_RETURN_EDID
#define DLFB_IOCTL_REPORT_DAMAGE
struct dloarea {};

struct urb_node {};

struct urb_list {};

struct dlfb_data {};

#define NR_USB_REQUEST_I2C_SUB_IO
#define NR_USB_REQUEST_CHANNEL

/* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */
#define BULK_SIZE
#define MAX_TRANSFER
#define WRITES_IN_FLIGHT

#define MAX_VENDOR_DESCRIPTOR_SIZE

#define GET_URB_TIMEOUT
#define FREE_URB_TIMEOUT

#define BPP
#define MAX_CMD_PIXELS

#define RLX_HEADER_BYTES
#define MIN_RLX_PIX_BYTES
#define MIN_RLX_CMD_BYTES

#define RLE_HEADER_BYTES
#define MIN_RLE_PIX_BYTES
#define MIN_RLE_CMD_BYTES

#define RAW_HEADER_BYTES
#define MIN_RAW_PIX_BYTES
#define MIN_RAW_CMD_BYTES

#define DL_DEFIO_WRITE_DELAY
#define DL_DEFIO_WRITE_DISABLE

/* remove these once align.h patch is taken into kernel */
#define DL_ALIGN_UP(x, a)
#define DL_ALIGN_DOWN(x, a)

#endif