diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-15 08:46:13 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-15 08:46:13 +0100 |
commit | 7fe60435bce6595a9c58a9bfd8244d74b5320e96 (patch) | |
tree | 1ac714a916e02fc90901ddac8bc2a3c6d051d28c /Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h | |
download | directfb-voodoo-7fe60435bce6595a9c58a9bfd8244d74b5320e96.tar.gz directfb-voodoo-7fe60435bce6595a9c58a9bfd8244d74b5320e96.tar.bz2 directfb-voodoo-7fe60435bce6595a9c58a9bfd8244d74b5320e96.zip |
Import DirectFB141_2k11R3_beta5
Diffstat (limited to 'Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h')
-rwxr-xr-x | Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h b/Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h new file mode 100755 index 0000000..7836024 --- /dev/null +++ b/Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h @@ -0,0 +1,35 @@ +// Definitions of framebuffer ioctls + +#ifndef __UC_IOCTL_H__ +#define __UC_IOCTL_H__ + +#include <fbdev/fbdev.h> +#include <sys/ioctl.h> +#include <dfb_types.h> + +// Parameters for FBIO_FLIPONVSYNC ioctl +struct fb_flip { + u32 device; + u32 field; + u32 count; + u32 offset[6]; +}; + +#define VIAFB_FLIP_GRAPHICS 0 +#define VIAFB_FLIP_V1 1 +#define VIAFB_FLIP_V3 2 +#define VIAFB_FLIP_SPIC 3 +#define VIAFB_FLIP_NOP 255 + +#ifndef FBIO_FLIPONVSYNC +#define FBIO_FLIPONVSYNC _IOWR('F', 0x21, struct fb_flip) +#endif + +// Parameters for FBIO_WAITFORVSYNC ioctl +#define VIAFB_WAIT_ANY 0 +#define VIAFB_WAIT_TOPFIELD 1 +#define VIAFB_WAIT_BOTTOMFIELD 2 +#define VIAFB_WAIT_FLIP 3 + +#endif // __UC_IOCTL_H__ + |