/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef UDL_PROTO_H
#define UDL_PROTO_H
#include <linux/bits.h>
#define UDL_MSG_BULK 0 xaf
/* Register access */
#define UDL_CMD_WRITEREG 0 x20 /* See register constants below */
/* Framebuffer access */
#define UDL_CMD_WRITERAW8 0 x60 /* 8 bit raw write command. */
#define UDL_CMD_WRITERL8 0 x61 /* 8 bit run length command. */
#define UDL_CMD_WRITECOPY8 0 x62 /* 8 bit copy command. */
#define UDL_CMD_WRITERLX8 0 x63 /* 8 bit extended run length command. */
#define UDL_CMD_WRITERAW16 0 x68 /* 16 bit raw write command. */
#define UDL_CMD_WRITERL16 0 x69 /* 16 bit run length command. */
#define UDL_CMD_WRITECOPY16 0 x6a /* 16 bit copy command. */
#define UDL_CMD_WRITERLX16 0 x6b /* 16 bit extended run length command. */
/* Color depth */
#define UDL_REG_COLORDEPTH 0 x00
#define UDL_COLORDEPTH_16BPP 0
#define UDL_COLORDEPTH_24BPP 1
/* Display-mode settings */
#define UDL_REG_XDISPLAYSTART 0 x01
#define UDL_REG_XDISPLAYEND 0 x03
#define UDL_REG_YDISPLAYSTART 0 x05
#define UDL_REG_YDISPLAYEND 0 x07
#define UDL_REG_XENDCOUNT 0 x09
#define UDL_REG_HSYNCSTART 0 x0b
#define UDL_REG_HSYNCEND 0 x0d
#define UDL_REG_HPIXELS 0 x0f
#define UDL_REG_YENDCOUNT 0 x11
#define UDL_REG_VSYNCSTART 0 x13
#define UDL_REG_VSYNCEND 0 x15
#define UDL_REG_VPIXELS 0 x17
#define UDL_REG_PIXELCLOCK5KHZ 0 x1b
/* On/Off for driving the DisplayLink framebuffer to the display */
#define UDL_REG_BLANKMODE 0 x1f
#define UDL_BLANKMODE_ON 0 x00 /* hsync and vsync on, visible */
#define UDL_BLANKMODE_BLANKED 0 x01 /* hsync and vsync on, blanked */
#define UDL_BLANKMODE_VSYNC_OFF 0 x03 /* vsync off, blanked */
#define UDL_BLANKMODE_HSYNC_OFF 0 x05 /* hsync off, blanked */
#define UDL_BLANKMODE_POWERDOWN 0 x07 /* powered off; requires modeset */
/* Framebuffer address */
#define UDL_REG_BASE16BPP_ADDR2 0 x20
#define UDL_REG_BASE16BPP_ADDR1 0 x21
#define UDL_REG_BASE16BPP_ADDR0 0 x22
#define UDL_REG_BASE8BPP_ADDR2 0 x26
#define UDL_REG_BASE8BPP_ADDR1 0 x27
#define UDL_REG_BASE8BPP_ADDR0 0 x28
#define UDL_BASE_ADDR0_MASK GENMASK(7 , 0 )
#define UDL_BASE_ADDR1_MASK GENMASK(15 , 8 )
#define UDL_BASE_ADDR2_MASK GENMASK(23 , 16 )
/* Lock/unlock video registers */
#define UDL_REG_VIDREG 0 xff
#define UDL_VIDREG_LOCK 0 x00
#define UDL_VIDREG_UNLOCK 0 xff
#endif
Messung V0.5 in Prozent C=96 H=94 G=94
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland