diff options
| author | 2009-09-19 11:54:16 +0000 | |
|---|---|---|
| committer | 2009-09-19 11:54:16 +0000 | |
| commit | fa695a51f088dafb75c41cb5aae639a65ad2793c (patch) | |
| tree | 6bdce0ce8948f25246d857ee3985e2ba4ae080d7 /sys/dev/usb/udl.h | |
| parent | Zero out IPv6 mask before using it. This fixes expressions like (diff) | |
| download | wireguard-openbsd-fa695a51f088dafb75c41cb5aae639a65ad2793c.tar.xz wireguard-openbsd-fa695a51f088dafb75c41cb5aae639a65ad2793c.zip | |
Add bits for X11 support over the wsdisplay framework (fully Huffman
compressed). The upcoming X11 driver mmaps its framebuffer from the
kernel and sends updates via the Damage mechanism.
Committed from a X session on udl, of course.
Diffstat (limited to 'sys/dev/usb/udl.h')
| -rw-r--r-- | sys/dev/usb/udl.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/usb/udl.h b/sys/dev/usb/udl.h index 2a225bc7d98..32f8fa1d036 100644 --- a/sys/dev/usb/udl.h +++ b/sys/dev/usb/udl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.h,v 1.8 2009/09/13 10:40:08 mglocker Exp $ */ +/* $OpenBSD: udl.h,v 1.9 2009/09/19 11:54:16 mglocker Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -70,6 +70,7 @@ struct udl_softc { uint16_t sc_height; uint8_t sc_depth; uint8_t sc_cursor_on; + uint8_t *sc_fbmem; /* framebuffer for X11 */ /* * We use function pointers to the framebuffer manipulation @@ -100,6 +101,17 @@ struct udl_softc { }; /* + * udl IOCTLs. + */ +struct udl_ioctl_damage { + int x1; + int x2; + int y1; + int y2; +}; +#define UDLIO_DAMAGE _IOWR('W', 0, struct udl_ioctl_damage) + +/* * Chip commands. */ #define UDL_CTRL_CMD_READ_EDID 0x02 |
