xref: /dflybsd-src/sys/dev/drm/include/linux/fb.h (revision 83b4b9b96d578e400ab5890b64f60d69d4429e75)
1fb76cd81SFrançois Tigeot /*
2*83b4b9b9SFrançois Tigeot  * Copyright (c) 2015-2018 François Tigeot <ftigeot@wolfpond.org>
3fb76cd81SFrançois Tigeot  * All rights reserved.
4fb76cd81SFrançois Tigeot  *
5fb76cd81SFrançois Tigeot  * Redistribution and use in source and binary forms, with or without
6fb76cd81SFrançois Tigeot  * modification, are permitted provided that the following conditions
7fb76cd81SFrançois Tigeot  * are met:
8fb76cd81SFrançois Tigeot  * 1. Redistributions of source code must retain the above copyright
9fb76cd81SFrançois Tigeot  *    notice unmodified, this list of conditions, and the following
10fb76cd81SFrançois Tigeot  *    disclaimer.
11fb76cd81SFrançois Tigeot  * 2. Redistributions in binary form must reproduce the above copyright
12fb76cd81SFrançois Tigeot  *    notice, this list of conditions and the following disclaimer in the
13fb76cd81SFrançois Tigeot  *    documentation and/or other materials provided with the distribution.
14fb76cd81SFrançois Tigeot  *
15fb76cd81SFrançois Tigeot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16fb76cd81SFrançois Tigeot  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17fb76cd81SFrançois Tigeot  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18fb76cd81SFrançois Tigeot  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19fb76cd81SFrançois Tigeot  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20fb76cd81SFrançois Tigeot  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21fb76cd81SFrançois Tigeot  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22fb76cd81SFrançois Tigeot  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23fb76cd81SFrançois Tigeot  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24fb76cd81SFrançois Tigeot  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25fb76cd81SFrançois Tigeot  */
26fb76cd81SFrançois Tigeot 
27fb76cd81SFrançois Tigeot #ifndef _LINUX_FB_H_
28fb76cd81SFrançois Tigeot #define _LINUX_FB_H_
29fb76cd81SFrançois Tigeot 
30*83b4b9b9SFrançois Tigeot #include <uapi/linux/fb.h>
314281e57dSFrançois Tigeot 
32fe1d53e2SFrançois Tigeot #include <linux/fs.h>
33*83b4b9b9SFrançois Tigeot #include <linux/init.h>
34*83b4b9b9SFrançois Tigeot #include <linux/workqueue.h>
35fe1d53e2SFrançois Tigeot #include <linux/notifier.h>
36fe1d53e2SFrançois Tigeot #include <linux/list.h>
37fb76cd81SFrançois Tigeot #include <linux/backlight.h>
38*83b4b9b9SFrançois Tigeot #include <asm/io.h>
39fb76cd81SFrançois Tigeot 
40233d54adSImre Vadász #include <machine/framebuffer.h>
41233d54adSImre Vadász 
429edbd4a0SFrançois Tigeot #define	KHZ2PICOS(a)	(1000000000UL/(a))
439edbd4a0SFrançois Tigeot 
44ba55f2f5SFrançois Tigeot extern int fb_get_options(const char *name, char **option);
45ba55f2f5SFrançois Tigeot 
461b13d190SFrançois Tigeot #define FBINFO_STATE_RUNNING	0
471b13d190SFrançois Tigeot 
48fb76cd81SFrançois Tigeot #endif	/* _LINUX_FB_H_ */
49