]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - arch/x86/include/asm/sysfb.h
x86: provide platform-devices for boot-framebuffers
[mirror_ubuntu-kernels.git] / arch / x86 / include / asm / sysfb.h
CommitLineData
e3263ab3
DH
1#ifndef _ARCH_X86_KERNEL_SYSFB_H
2#define _ARCH_X86_KERNEL_SYSFB_H
3
4/*
5 * Generic System Framebuffers on x86
6 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com>
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
11 * any later version.
12 */
13
14#include <linux/kernel.h>
15#include <linux/platform_data/simplefb.h>
16#include <linux/screen_info.h>
17
18#ifdef CONFIG_X86_SYSFB
19
20bool parse_mode(const struct screen_info *si,
21 struct simplefb_platform_data *mode);
22int create_simplefb(const struct screen_info *si,
23 const struct simplefb_platform_data *mode);
24
25#else /* CONFIG_X86_SYSFB */
26
27static inline bool parse_mode(const struct screen_info *si,
28 struct simplefb_platform_data *mode)
29{
30 return false;
31}
32
33static inline int create_simplefb(const struct screen_info *si,
34 const struct simplefb_platform_data *mode)
35{
36 return -EINVAL;
37}
38
39#endif /* CONFIG_X86_SYSFB */
40
41#endif /* _ARCH_X86_KERNEL_SYSFB_H */