#ifndef _LINUX_SYSFB_H
#define _LINUX_SYSFB_H
#include <linux/kernel.h>
#include <linux/platform_data/simplefb.h>
struct screen_info;
enum { … };
struct efifb_dmi_info { … };
#ifdef CONFIG_SYSFB
void sysfb_disable(void);
#else
static inline void sysfb_disable(void)
{
}
#endif
#ifdef CONFIG_EFI
extern struct efifb_dmi_info efifb_dmi_list[];
void sysfb_apply_efi_quirks(void);
void sysfb_set_efifb_fwnode(struct platform_device *pd);
#else
static inline void sysfb_apply_efi_quirks(void)
{
}
static inline void sysfb_set_efifb_fwnode(struct platform_device *pd)
{
}
#endif
#ifdef CONFIG_SYSFB_SIMPLEFB
bool sysfb_parse_mode(const struct screen_info *si,
struct simplefb_platform_data *mode);
struct platform_device *sysfb_create_simplefb(const struct screen_info *si,
const struct simplefb_platform_data *mode,
struct device *parent);
#else
static inline bool sysfb_parse_mode(const struct screen_info *si,
struct simplefb_platform_data *mode)
{
return false;
}
static inline struct platform_device *sysfb_create_simplefb(const struct screen_info *si,
const struct simplefb_platform_data *mode,
struct device *parent)
{
return ERR_PTR(-EINVAL);
}
#endif
#endif