summaryrefslogtreecommitdiff
path: root/Source/DirectFB/gfxdrivers/unichrome/uc_ioctl.h
blob: 78360247bbd57a9808df48c501271dcbda494e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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__