#ifndef _SCREEN_INFO_H
#define _SCREEN_INFO_H
#include <uapi/linux/screen_info.h>
#include <linux/bits.h>
#define SCREEN_INFO_MAX_RESOURCES …
struct pci_dev;
struct resource;
static inline bool __screen_info_has_lfb(unsigned int type)
{ … }
static inline u64 __screen_info_lfb_base(const struct screen_info *si)
{ … }
static inline void __screen_info_set_lfb_base(struct screen_info *si, u64 lfb_base)
{ … }
static inline u64 __screen_info_lfb_size(const struct screen_info *si, unsigned int type)
{ … }
static inline bool __screen_info_vbe_mode_nonvga(const struct screen_info *si)
{ … }
static inline unsigned int __screen_info_video_type(unsigned int type)
{ … }
static inline unsigned int screen_info_video_type(const struct screen_info *si)
{ … }
ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num);
#if defined(CONFIG_PCI)
void screen_info_apply_fixups(void);
struct pci_dev *screen_info_pci_dev(const struct screen_info *si);
#else
static inline void screen_info_apply_fixups(void)
{ }
static inline struct pci_dev *screen_info_pci_dev(const struct screen_info *si)
{
return NULL;
}
#endif
extern struct screen_info screen_info;
#endif