xref: /dflybsd-src/sys/dev/drm/include/uapi/linux/fb.h (revision 4be47400997875399098ad904fb4ca65b3244cca)
183b4b9b9SFrançois Tigeot /*
2*4be47400SFrançois Tigeot  * Copyright (c) 2015-2020 François Tigeot <ftigeot@wolfpond.org>
383b4b9b9SFrançois Tigeot  * All rights reserved.
483b4b9b9SFrançois Tigeot  *
583b4b9b9SFrançois Tigeot  * Redistribution and use in source and binary forms, with or without
683b4b9b9SFrançois Tigeot  * modification, are permitted provided that the following conditions
783b4b9b9SFrançois Tigeot  * are met:
883b4b9b9SFrançois Tigeot  * 1. Redistributions of source code must retain the above copyright
983b4b9b9SFrançois Tigeot  *    notice unmodified, this list of conditions, and the following
1083b4b9b9SFrançois Tigeot  *    disclaimer.
1183b4b9b9SFrançois Tigeot  * 2. Redistributions in binary form must reproduce the above copyright
1283b4b9b9SFrançois Tigeot  *    notice, this list of conditions and the following disclaimer in the
1383b4b9b9SFrançois Tigeot  *    documentation and/or other materials provided with the distribution.
1483b4b9b9SFrançois Tigeot  *
1583b4b9b9SFrançois Tigeot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1683b4b9b9SFrançois Tigeot  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1783b4b9b9SFrançois Tigeot  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1883b4b9b9SFrançois Tigeot  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1983b4b9b9SFrançois Tigeot  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2083b4b9b9SFrançois Tigeot  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2183b4b9b9SFrançois Tigeot  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2283b4b9b9SFrançois Tigeot  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2383b4b9b9SFrançois Tigeot  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2483b4b9b9SFrançois Tigeot  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2583b4b9b9SFrançois Tigeot  */
2683b4b9b9SFrançois Tigeot 
2783b4b9b9SFrançois Tigeot #ifndef _UAPI_LINUX_FB_H_
2883b4b9b9SFrançois Tigeot #define _UAPI_LINUX_FB_H_
2983b4b9b9SFrançois Tigeot 
3083b4b9b9SFrançois Tigeot #include <linux/types.h>
3183b4b9b9SFrançois Tigeot #include <linux/i2c.h>
3283b4b9b9SFrançois Tigeot 
3383b4b9b9SFrançois Tigeot struct fb_var_screeninfo {
3483b4b9b9SFrançois Tigeot };
3583b4b9b9SFrançois Tigeot 
3683b4b9b9SFrançois Tigeot struct fb_cmap {
3783b4b9b9SFrançois Tigeot };
3883b4b9b9SFrançois Tigeot 
3983b4b9b9SFrançois Tigeot #define VESA_NO_BLANKING        0
4083b4b9b9SFrançois Tigeot #define VESA_POWERDOWN          3
4183b4b9b9SFrançois Tigeot 
4283b4b9b9SFrançois Tigeot enum {
4383b4b9b9SFrançois Tigeot 	FB_BLANK_UNBLANK       = VESA_NO_BLANKING,
4483b4b9b9SFrançois Tigeot 	FB_BLANK_POWERDOWN     = VESA_POWERDOWN + 1
4583b4b9b9SFrançois Tigeot };
4683b4b9b9SFrançois Tigeot 
4783b4b9b9SFrançois Tigeot struct fb_copyarea {
4883b4b9b9SFrançois Tigeot };
4983b4b9b9SFrançois Tigeot 
5083b4b9b9SFrançois Tigeot struct fb_fillrect {
5183b4b9b9SFrançois Tigeot };
5283b4b9b9SFrançois Tigeot 
5383b4b9b9SFrançois Tigeot struct fb_image {
5483b4b9b9SFrançois Tigeot };
5583b4b9b9SFrançois Tigeot 
56*4be47400SFrançois Tigeot struct fb_fix_screeninfo {
57*4be47400SFrançois Tigeot 	char id[16];
58*4be47400SFrançois Tigeot };
59*4be47400SFrançois Tigeot 
6083b4b9b9SFrançois Tigeot #endif /* _UAPI_LINUX_FB_H_ */
61